KubeJS

KubeJS

69M Downloads

[1.16.5] Adding a tag to all items with a specific tag, then removing it from items with ANOTHER tag doesn't actually remove it

aaronhowser1 opened this issue ยท 2 comments

commented
onEvent('item.tags', tag => {
    tag.add("ftbuniversity:etech_generate_flowers", "#minecraft:flowers")
    tag.remove("ftbuniversity:etech_generate_flowers", "#botania:special_flowers")
})

image

commented

We have decided against implementing this explicitly. Tags are only ever meant to be added to in Vanilla, and if you do want to remove from tags recursively, we can just add a method to get all the current items along with their sources

commented

This also doesn't work:

onEvent('item.tags', tag => {
    tag.add("ftbuniversity:etech_generate_flowers", "#minecraft:flowers")
    tag.remove("ftbuniversity:etech_generate_flowers", [
        "#botania:special_flowers",
        "byg:pollen_block"
    ])
})

image