#Trying to add the forge:onion tag to a custom kubejs item, is this the right script?

40 messages · Page 1 of 1 (latest)

empty maple
#

ServerEvents.tags('pikmin_item', event => {
event.add('forge:vegetables/onion', 'pikmin_item')
})

past dragonBOT
#

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

empty maple
#

the item in question is the 'pikmin_item'

#

though I also tried 'kubejs:pikmin_item'

small stratus
#

should be like this js ServerEvents.tags('item', event => { event.add('forge:vegetables/onion', 'modid:pikmin_item') })

empty maple
#

ohhh so its literally 'item'

small stratus
#

you need to put in the mod id in place of where i put modid as well

#

yeah cause its an item tag

empty maple
#

ah okay

small stratus
#

youd put block there for block tags

empty maple
#

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

small stratus
#

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

empty maple
#

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

small stratus
#

is pikmin_item an item you made with kubejs?

empty maple
#

yeah

small stratus
#

ok so you need to put kubejs:pikmin_item in there

empty maple
#

ok gotcha

small stratus
#

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

empty maple
#

and this is the tag im trying to give it

small stratus
#

looks like the tag event worked and it has the forge onion tag

empty maple
#

dang what

small stratus
#

well yeah you put forge:onion instead of forge:onions

empty maple
#

oh

#

my

#

god

small stratus
empty maple
#

literally

#

lemme see if this works

#

it did 🤦‍♂️

#

thank u for the help i really appreciate it

small stratus
#

np

lilac sorrelBOT
#

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.