Skip to content

Modifying Vanilla Loot Tables but only enabling one item or the other to drop #2778

Discussion options

You must be logged in to vote

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:

tableBuilder.modifyPools(poolBuilder -> poolBuilder.with(ItemEntry.builder(Items.EMERALD)));

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DiscordantHarmony1
Comment options

Answer selected by DiscordantHarmony1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants