#Hiding items with specific tag from specific mod in JEI
27 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
You can't use hide like that
You can try event.hide('#refinedstorage:disks'), but idk how you'd deal with a specific mod
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?
That sounds possible
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?
Ai?
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.
just did it all manually
Ticket closed!
Sorry for pinging you after that much time but how did your code turn out I am trying do to something similar
Hide all items with a tag? Or just hide items?
I gave up with the tag and just hid them all by typing out the code for each one
I wasn't experienced with js at the time but if I was at home I'd test a few things for you
Sorry
No, it's really not a problem i'll try things out thank you for your time
Good luck