#LootJS

19 messages · Page 1 of 1 (latest)

dense chasm
#

I'm attempting to make an armor progression system in our pack, and I found that Diamond armor can be found in loot chests. I tried to use LootJS to disable it, but it doesn't do anything.

    event.enableLogging();
    event.addLootTableModifier('minecraft:chests/end_city_treasure')
    .removeLoot("#forge:armors/diamond")
    console.log('Why you no work')
})```
`console.log` sends the message to the console, but the `enableLogging()` thing doesn't log anything, along with not removing the items from the loot table.
*(sorry if I'm asking for help too much, I guess I just suck at this).*
lusty bronzeBOT
#

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

rough olive
#

how are you verifying it was not removed from the loot table?

dense chasm
#

/loot

rough olive
#

if with JER/RER it won't reflect the actual state of the loot table after using LootJS

dense chasm
#

I know yeah. I checked an older post

#

Trying that older method didn't work either

rough olive
#

the tag is #forge:armor/diamond

#

not armors

#

unless you added it yourself

umbral oasis
#

do tags work with removeLoot?

rough olive
#

otherwise forge armor tags are generally armors/<type>/<material>

#

yes, it accepts ingredients

#

tl;dr make sure you're using the right tag and that what you want to remove are a part of it

dense chasm
#

next time I should probably make sure I'm writing things properly...

rough olive
#

so that's what it was? yay we got it figured out

dense chasm
#

yeah. sorry to bother

rough olive
#

not a bother, it happens