#Trying to add the forge:onion tag to a custom kubejs item, is this the right script?
40 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
should be like this js ServerEvents.tags('item', event => { event.add('forge:vegetables/onion', 'modid:pikmin_item') })
ohhh so its literally 'item'
you need to put in the mod id in place of where i put modid as well
yeah cause its an item tag
ah okay
youd put block there for block tags
ServerEvents.tags('item', event => {
event.add('forge:onion', 'kubejs:pikmin_item')
})
ok, did this and its still not working
the 'forge:onion' should be the correct tag
is it a block tag youre after or an item tag
also do you have this event in server_scripts?
and did you do a /reload
item tag, it is in server scripts and i have been reloading
ServerEvents.tags('item', event => {
event.add('forge:onion', 'pikmin_item')
})
this is what i have now
is pikmin_item an item you made with kubejs?
yeah
ok so you need to put kubejs:pikmin_item in there
ok gotcha
always put the namespace of the mod

hold the pikmin item in your hand and run /kjs hand and then screenshot the result and send it here
looks like the tag event worked and it has the forge onion tag
dang what
well yeah you put forge:onion instead of forge:onions
literally
lemme see if this works
it did 🤦♂️
thank u for the help i really appreciate it
np
Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue! This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.
Do you have any other questions regarding your issue? Feel free to ask!
Note: You generally should create a new post for unrelated issues.