#Loot Changing/Spawning Mod

3 messages · Page 1 of 1 (latest)

frosty pond
#

If anyone decides to do this, this might be a good approach:

LootTableEvents.MODIFY.register((ResourceKey<LootTable> id, LootTable.Builder builder, LootTableSource source, HolderLookup.Provider holderLookupProvider) -> {
    if (id.location().getPath().contains("chest")) {
        // MODIFY LOOT TABLE HERE
    }
});
tranquil panther
#

I was told to try this out, so I can get how it works, but it didnt work

tranquil panther
#

I did this as a datapack, can anyone let me know if I have any mistakes or whatever?