#is there any good way to remove one specific item from all loot chests in the world?
16 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
LootJS is an addon for KubeJS that allows modifying loot from all sources dynamically (much nicer than loot tables)!
It also supports removing loot added by mods, unlike KubeJS' current loot table events.
onEvent("tags.items", (event) => {
event.removeAllTagsFrom(/.pickaxe./)
})
maybe this could work?
that would just remove tags, has nothing to do with loot tables
so there isn't any other way to permaban all pickaxes than using datapacks for every single worldgen loot table out there?
yes I looked at the wiki, but I can't find the event I need. Sorry I'm stupid
onEvent("lootjs", event => {
event.addLootTableModifier(/.*/).removeLoot(ItemFilter.PICKAXE)
});
:D
you also maybe just prefer to ban from chest loot
onEvent("lootjs", event => {
event.addLootTypeModifier(LootType.CHEST).removeLoot(ItemFilter.PICKAXE)
});
wow ty ty. Now I get it 😄

