#Help with tags

1 messages · Page 1 of 1 (latest)

celest saddle
#

im trying to make it so only a give item by a command can summon lightning and im checking that with tags but its not working

fiery ventureBOT
#
Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

celest saddle
#

and it dose nothing when i throw it

indigo sedge
#

Item needs a capital I

wanton sonnet
#

no, this is for a thrown trident, there item is correct

#

unless

#

wait

#

it looks like that in the nbt 🤔 I could swear it was different just a second ago

#

it is item for me 🤔

#

or is this screenshot from a dropped item?

#
/execute as @e[type=trident,nbt={item:{tag:{tag:lightning_trident}}}] run say hi

this works for me

celest saddle
#

hold on

wanton sonnet
celest saddle
#

yea

wanton sonnet
#

then the problem is not in that part of the code 🤔

#

can you send your command?

#

then I dont have to retype it

celest saddle
#

execute as @e[type=trident,nbt={inGround: 1b, Fire: -1s, item: {tag: {tag: lightning_trident}}}] at @s run summon lightning_bolt

wanton sonnet
#

.. it works for me 🤔

#

it is actually running?

#

like - if you put a say hello in there, does that get spammed?

celest saddle
#

ok now its working and i didnt channge anything -_-

wanton sonnet
#

programming ¯_(ツ)_/¯

celest saddle
wanton sonnet
#

🥳