#Cannot remove item tags

14 messages · Page 1 of 1 (latest)

tawny ivy
#

I have a script that looks like this in my server scripts folder:

ServerEvents.tags('item', event => {

event.remove('extractinator:rare_drops', 'galosphere:raw_silver')
event.remove('extractinator:rare_sand_drops', 'galosphere:raw_silver')

})

But even though I'm reloading and it says I have no KubeJS errors, the item 'galosphere:raw_silver' still has those two tags. They haven't been removed. Not sure what's wrong?

chilly pastureBOT
#

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

glad nymph
#

How do you check if a tag has been removed?

tawny ivy
#

I can see the tags using the advanced tooltips if I press shift while mousing over it.

shut cypressBOT
#

[Quote ➤](#1115879613533528114 message) tags don't get flattened, so if an item is added to a tag by another tag, you cannot directly remove just the item

tawny ivy
#

Thanks, it worked when I instead removed 'galosphere:raw_silver' from the 'forge:raw_materials/silver' tag. That sadly messed up the ore unification via the Almost Unified mod, since that relies on those tags, but that's a separate problem I guess.

zealous scroll
#

you could remove it from that yes, but you should also be able to remove the forge:raw_materials/silver tag from the extractinator:rare_drops tag

tawny ivy
#

Yeah, I tried that first, but that didn't actually remove the extractinator tags from the item.

zealous scroll
#

seems like it may actually be a different tag, extractinator_platform:raw_materials/silver

placid cedar
#

if you follow my quote you can see where to look to be able to drill down into how the tags are arranged

tawny ivy
#

Thanks, I'll look at that. I think I can figure this out on my own now. I just didn't know about the whole tags aren't flattened thing.

placid cedar
#

but your unification is definitely more important than that tag 🙂 so definitely go with removing the tags from the tag and readding single items you want to stay

#

vs removing the single item from a tag that has other uses