tutorial:adding_to_loot_tables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:adding_to_loot_tables [2019/07/29 17:16] – small tweaks juuz | tutorial:adding_to_loot_tables [2019/08/12 23:06] – fixed parenthesis yanis48 | ||
---|---|---|---|
Line 13: | Line 13: | ||
<code java> | <code java> | ||
LootTableLoadingCallback.EVENT.register((resourceManager, | LootTableLoadingCallback.EVENT.register((resourceManager, | ||
- | if (" | + | if (" |
// Our code will go here | // Our code will go here | ||
} | } | ||
Line 21: | Line 21: | ||
===== Adding items to the table ===== | ===== Adding items to the table ===== | ||
- | In loot tables, | + | In loot tables, |
We can make a pool with '' | We can make a pool with '' | ||
Line 27: | Line 27: | ||
<code java> | <code java> | ||
LootTableLoadingCallback.EVENT.register((resourceManager, | LootTableLoadingCallback.EVENT.register((resourceManager, | ||
- | if (" | + | if (" |
FabricLootPoolBuilder poolBuilder = FabricLootPoolBuilder.builder() | FabricLootPoolBuilder poolBuilder = FabricLootPoolBuilder.builder() | ||
.withRolls(ConstantLootTableRange.create(1)); | .withRolls(ConstantLootTableRange.create(1)); | ||
Line 39: | Line 39: | ||
<code java> | <code java> | ||
LootTableLoadingCallback.EVENT.register((resourceManager, | LootTableLoadingCallback.EVENT.register((resourceManager, | ||
- | if (" | + | if (" |
FabricLootPoolBuilder poolBuilder = FabricLootPoolBuilder.builder() | FabricLootPoolBuilder poolBuilder = FabricLootPoolBuilder.builder() | ||
.withRolls(ConstantLootTableRange.create(1)) | .withRolls(ConstantLootTableRange.create(1)) |
tutorial/adding_to_loot_tables.txt · Last modified: 2024/02/05 16:08 by mschae23