tutorial:datagen_loot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tutorial:datagen_loot [2023/06/16 17:29] – 1.20+ addProvider change slainlight | tutorial:datagen_loot [2024/06/10 20:02] (current) – [Adding Chest Loot] Added a missing parentheses to first .with() statement lunathegaymer | ||
---|---|---|---|
Line 82: | Line 82: | ||
.pool(LootPool.builder().rolls(ConstantLootNumberProvider.create(1.0F)) | .pool(LootPool.builder().rolls(ConstantLootNumberProvider.create(1.0F)) | ||
.with(ItemEntry.builder(Items.DIAMOND) | .with(ItemEntry.builder(Items.DIAMOND) | ||
- | .apply(SetCountLootFunction.builder(ConstantLootNumberProvider.create(1.0F))) | + | .apply(SetCountLootFunction.builder(ConstantLootNumberProvider.create(1.0F)))) |
.with(ItemEntry.builder(Items.DIAMOND_SWORD)).apply(EnchantWithLevelsLootFunction.create(UniformLootNumberProvider.create(20.0F, | .with(ItemEntry.builder(Items.DIAMOND_SWORD)).apply(EnchantWithLevelsLootFunction.create(UniformLootNumberProvider.create(20.0F, | ||
); | ); |
tutorial/datagen_loot.txt · Last modified: 2024/06/10 20:02 by lunathegaymer