#Hiding items with specific tag from specific mod in JEI

27 messages · Page 1 of 1 (latest)

lucid garnet
#

i want to hide all the items from the mod reborn storage with the tag #refinedstorage:disks

    event.hide({tag: '#refinedstorage:disks', mod: 'rebornstorage'})

is what im currently trying but its not working and im getting no errors

stiff meadowBOT
#

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

snow raven
#

You can't use hide like that

#

You can try event.hide('#refinedstorage:disks'), but idk how you'd deal with a specific mod

lucid garnet
#

hmm okay

#

could i do a foreach loop? if the mod AND the tag are equal then it does it for each item with both of those conditions?

snow raven
#

That sounds possible

lucid garnet
#

okay time to learn js :)

#
global.itemTags.get('#refinedstorage:disks').items.forEach(item => {
        if (item.getMod() === 'rebornstorage') {
            event.hide(item);
        }
    });
#

no idea how correct that even is

#

but its not working :D

#

is the ai making up methods?

snow raven
#

Ai?

timid sierraBOT
#

NEVER use any AI to generate KubeJS code. They currently know very little about it, and what they do know is often outdated or false. You can instead look at the KubeJS wiki or ask for help in #1047320998199955458.

lucid garnet
#

fair enough

#

i had low hopes anyway

lucid garnet
#

just did it all manually

stiff meadowBOT
#

Ticket closed!

ocean venture
lucid garnet
#

I gave up with the tag and just hid them all by typing out the code for each one

ocean venture
#

items with tag

#

Ehh okay then

lucid garnet
#

I wasn't experienced with js at the time but if I was at home I'd test a few things for you

#

Sorry

ocean venture
#

No, it's really not a problem i'll try things out thank you for your time

lucid garnet
#

Good luck