Skip to content

DataGen

Eric edited this page Nov 19, 2023 · 1 revision

Vanilla Minecraft includes a built-in utility which programmatically generates the required JSON files for Recipes, Language Files, Loot Tables, Advancements, World Generation, and more.

There are implementations to extend this with your own values for both Fabric and Forge, and PickHaxe provides a common API for accessing it as well.

Enabling Data Generation

Open up your project.xml and add the following tag under the <pickhaxe> tag. Note that the <loader> and <minecraft> subtags are optional filters which allow conditional use of different data generators.

  <mod-data-generator
    value="ResourceTreesDataGenerator">
    <loader value="fabric" />
    <minecraft op="gteq" value="1.20.2" />
  </mod-data-generator>
Clone this wiki locally