#how do i remove an item from a tag?

73 messages · Page 1 of 1 (latest)

glacial imp
#

i've tried using this script, but it doesn't do anything. i'm pretty sure i'm calling upon the wrong tag, which one would be the correct one?

nimble garnetBOT
#

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

vivid oriole
#

sec

wintry bridgeBOT
#

This is a list of all the events. Choose your version.

vivid oriole
#

ah theres an updated page on it

wintry bridgeBOT
#

You can modify tags with KubeJS, and the wiki has a page on that!

vivid oriole
#

second line on the wiki

#

the event.get().remove() should still be valid i think, but its an old notation that basically nobody uses anymore

glacial imp
#

this is the new script, it still doesn't work

wintry bridgeBOT
#

Please send your server.txt log file.
You can find it here: minecraft/logs/kubejs/server.txt

vivid oriole
#

this might help

glacial imp
wintry bridgeBOT
#

Paste version of server.txt from @glacial imp

vivid oriole
#

yeah dont worry about those, theyre not from you

#

theyre caused by mods with silly and lazy modders

#

KJS just picks up the errors

#

can you show me the ingame tooltip of that item, something doesnt make sense here hmmm

glacial imp
#

one sec

#

i tried deleting the file that gives said elytra it's curios:back tag, and the Slot: Back line was gone

vivid oriole
#

theres no tags on that tooltip tho hmmm

glacial imp
#

well uh

#

what's th

#

this

#

i don't understand

vivid oriole
#

yeah i saw that now on github

#

but in the screnshot the tag is removed

#

or at least i dont see it on the tooltip

glacial imp
#

some testing is needed

#

this is without the script

#

now i'm deleting the back.json from the enigmatic legacy mod

vivid oriole
#

if you look at other items, can you see tags on them?

#

like if you look at cobble, do you see forge:cobblestone

#

or stone or something

glacial imp
#

not really

#

but i deleted only the back.json this time and the line is still there

#

interesting

vivid oriole
#

so you cant see tags on the items?

#

KJS should have an option somewhere in configs to turn on tag tooltips, but i dont remember where
i cant check cuz im at work

glacial imp
#

found it

glacial imp
#

this is really weird, i tried deleting the back.json but it didn't work, then i tried enabling the script again and poof it's gone

#

it still doesn't work with an uneddited version of enigmatic legacy though

glacial imp
#

i haven't gotten anywhere close to solving this didn't i

#

from what i understood out of this, kubejs has removed the item from the tag but not in a way that would make curios think this elytra doesn't have the tag?

vivid oriole
#

if thats the case, it means Curio isnt looking for tags, but something else

#

i'll check their repo again

#

are there no configs for this?

glacial imp
#

for curios there's only a client one

vivid oriole
#

not for curios, for enigmatic legacy

#

on their repo, the elytra is registered as a curio item

#

i think the tag only tells it what kind of curio item it is (like what slot)

glacial imp
#

checked and there's no config for the elytra being a curio

glacial imp
vivid oriole
#

in that case i dont know how to remove it, or if you even can

glacial imp
#

i'll ask c4 about that maybe

glacial imp
#

Whatever removing the item from the tag will accomplish i'll be happy with that

#

Still, kubejs doesn't seem to do what it's supposed to do, correct? It should've already done this

vivid oriole
#

it did seem like it did what you told it to

#

but it cannot change how an item is registered

#

thats just not possible

#

its exactly what that person said

#

the KJS part worked perfectly

#

it removed the slot

#

thats what the tag does, like i said before

glacial imp
#

as i said, kjs didn't remove the slot

#

it only did so when i manually removed it from the mod's datapack

#

again, it should look like this

#

if it doesn't look like this and has the slot: back line, it means it's still in the curios:back tag

#

this is what it looks like with no alterations to the enigmatic legacy mod file and just the script performing

#

and also i enabled the kjs tooltips, here it is

glacial imp
#

started working for some reason