/tag
In this tutorial, I will be showing you how to use the /tag command along with showing some example commands.
/tag <targets> (add|remove) <tag>
/tag <targets> list
'/tag' can be used to tag entities to track them and target them specifically. It is used as a boolean in coding terms (for true or false). If you need multiple values instead of just true or false that is where scoreboards come into play.
/tag <targets> (add|remove) <tag>
Simply choose a player or entity to tag, whether you want to add or remove the tag, then choose a name (You can choose it on the spot you do not need to have one set up like scoreboard objectives).
/tag <targets> (add|remove) <tag>
/tag <targets> list
'/tag' can be used to tag entities to track them and target them specifically. It is used as a boolean in coding terms (for true or false). If you need multiple values instead of just true or false that is where scoreboards come into play.
/tag <targets> (add|remove) <tag>
Simply choose a player or entity to tag, whether you want to add or remove the tag, then choose a name (You can choose it on the spot you do not need to have one set up like scoreboard objectives).
/tag <targets> list
Use this command to check what tags an entity or player has!
Use this command to check what tags an entity or player has!
How do I check for a tag?
Well if you check back on my selectors tutorial you will see a complete list of them all. However to save you the effort, for tags you put:
@e[tag=NAME]
Or if you want to check if they do not have a tag you can do
@e[tag=!NAME]
Using the exclamation mark as an opposite.
This command is very easy to use and very useful so I suggest you try learn this one by heart! ~Blue
Well if you check back on my selectors tutorial you will see a complete list of them all. However to save you the effort, for tags you put:
@e[tag=NAME]
Or if you want to check if they do not have a tag you can do
@e[tag=!NAME]
Using the exclamation mark as an opposite.
This command is very easy to use and very useful so I suggest you try learn this one by heart! ~Blue