#how to get if the item on the mainhand slot of a player is in a item tag list?

1 messages · Page 1 of 1 (latest)

fathom osprey
#

i have a block and i want it to summon a interaction entity on it wherever the nearest player has an item that can be used on it, and then the interaction entity get killed if there isn't any

silk gorgeBOT
#

<@&1201956957406109788>

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

nimble oar
#

You can make a predicate that checks the player's mainhand for an item tag, then check that predicate in an execute command with if <namespace>:predicate

nimble oar
#

Looks right at a glance

#

You'll learn more by, you know, testing it yourself

fathom osprey
#

gonna test it

#

thanks