#remove specific item in loot chest

13 messages · Page 1 of 1 (latest)

dreamy spruce
#

im using lootjs, this is how i remove all loot in chest

LootJS.modifiers((event) => {
    event
        .addLootTypeModifier([LootType.CHEST])
        .removeLoot(Ingredient.all)
});

but, how do i remove specific item from mod? the mod is LightmansCurrency

hollow windBOT
#

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

dire torrent
#

try js Ingredient.of(/^lightmanscurrency:/)

#

and for "lightmanscurrency" what ever is in front of the item ids of the mod

autumn cobalt
#

reminder that it is not guaranteed that LMC might not use some GENERIC type for some chests too

#

I have seen a lot of mods use generic for chests too

#

IIRC, apotheosis does that

autumn cobalt
#

LootType.CHEST might not be enough, you need to test

dreamy spruce
#

yep, im on test it right now

#

it work! thanks @dire torrent

#

just tried to 3 chest on ruined portal, it removed completely

#

here is the final scripts

LootJS.modifiers(event => {
    event
        .addLootTypeModifier([LootType.CHEST])
        .removeLoot(Ingredient.of(/^lightmanscurrency:/))
});