#is there any good way to remove one specific item from all loot chests in the world?

16 messages · Page 1 of 1 (latest)

flint sinew
#

need to ban all pickaxes, but doing it manually with datapacks for a big modpack will take ages

boreal violetBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

fading tartanBOT
#

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.

flint sinew
#

onEvent("tags.items", (event) => {
event.removeAllTagsFrom(/.pickaxe./)
})

#

maybe this could work?

dull lantern
#

that would just remove tags, has nothing to do with loot tables

flint sinew
#

so there isn't any other way to permaban all pickaxes than using datapacks for every single worldgen loot table out there?

dull lantern
#

did you check the mod i linked thinking_lex

#

thats literally what it does

flint sinew
#

yes I looked at the wiki, but I can't find the event I need. Sorry I'm stupid

dull lantern
#

@wide mortar dis something you can help with? blushcat_lex

#

^ his mod

wide mortar
#
onEvent("lootjs", event => {
  event.addLootTableModifier(/.*/).removeLoot(ItemFilter.PICKAXE)
});
dull lantern
#

:D

wide mortar
#

you also maybe just prefer to ban from chest loot

onEvent("lootjs", event => {
  event.addLootTypeModifier(LootType.CHEST).removeLoot(ItemFilter.PICKAXE)
});
flint sinew
#

wow ty ty. Now I get it 😄