Modifying Vanilla Loot Tables but only enabling one item or the other to drop #2778
-
Dear Fabric Team or any other helpful developers, I'm fairly new to modding and have been attempting to have a modded item I created to have same behavior as flint from gravel except its from obsidian, I've gotten it to have the chance to drop but the original loot table drop still drops also, I've gathered it has something to do with the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yep, See the testmod code: |
Beta Was this translation helpful? Give feedback.
Yep,
modifyPools
is the correct one. You pass it a lambda where you can modify the loot pools via builders as if you were creating new ones.See the testmod code:
fabric/fabric-loot-api-v2/src/testmod/java/net/fabricmc/fabric/test/loot/LootTest.java
Line 92 in c08c81e