tutorial:datagen_loot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
tutorial:datagen_loot [2023/06/05 17:45] – mcrafterzz | tutorial:datagen_loot [2023/06/16 17:29] – 1.20+ addProvider change slainlight | ||
---|---|---|---|
Line 26: | Line 26: | ||
public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { | public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { | ||
// ... | // ... | ||
- | fabricDataGenerator.addProvider(MyBlockLootTables:: | + | |
+ | myPack.addProvider(MyBlockLootTables:: | ||
// ... | // ... | ||
} | } | ||
</ | </ | ||
+ | |||
+ | If you're using versions pre-1.20, please replace '' | ||
Let's just create a simple ore block and an item to drop from it for a block loot table. Add this to your block init or '' | Let's just create a simple ore block and an item to drop from it for a block loot table. Add this to your block init or '' | ||
Line 89: | Line 92: | ||
@Override | @Override | ||
public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { | public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { | ||
- | fabricDataGenerator.addProvider(MyChestLootTables:: | + | |
+ | myPack.addProvider(MyChestLootTables:: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | If you're using versions pre-1.20, please replace '' |
tutorial/datagen_loot.txt · Last modified: 2024/06/10 20:02 by lunathegaymer