User Tools

Site Tools


tutorial:datagen_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:datagen_setup [2024/03/15 05:05] shnupbupstutorial:datagen_setup [2025/03/25 00:41] (current) – [IDE Integration (Optional)] removed the section solidblock
Line 22: Line 22:
  
 fabricApi { fabricApi {
- configureDataGeneration()+    configureDataGeneration() 
 +
 +</code> 
 + 
 +If you're using version 1.21.4 or above, please replace the ''fabricApi'' section in the code above with the following: 
 + 
 +<code groovy> 
 +fabricApi { 
 +    configureDataGeneration() { 
 +        client = true 
 +    }
 } }
 </code> </code>
Line 90: Line 100:
 There should be a new folder in ''**src/main**'' called ''**generated**''. For now it'll be empty, but once we start generating data (like advancements), that is where it'll be saved. There should be a new folder in ''**src/main**'' called ''**generated**''. For now it'll be empty, but once we start generating data (like advancements), that is where it'll be saved.
  
-==== IDE Integration (Optional) ==== 
- 
-Because we don't want to be opening the terminal all the time, we can setup a configuration in ''**IntelljJ IDEA**'' that will run the command for us through a drop-down menu.  
- 
-First open the ''**Run/Debug Configurations**'' menu. You can open it by opening the drop-down menu next to the run button and clicking ''**Edit Configurations..**'' option or you can double click ''**Shift**'' and type ''**Edit Configuration**'' into the menu that pops up. 
- 
-Next click the ''**'+'**'' button, search for ''**gradle**'', and select it. 
- 
-Inside the ''**Run**'' textbox write ''**runDatagen**''. Click ''**Okay**'' and you should be able to simply run the configuration instead of having to open the terminal. 
  
 ====== Adding Providers ====== ====== Adding Providers ======
tutorial/datagen_setup.1710479149.txt.gz · Last modified: 2024/03/15 05:05 by shnupbups