As of currently the syntax for the tag command is
- tag <targets> <add> <tag>
- tag <targets> <remove> <tag>
- tag <targets> <list>
If we want to switch the tags on an entity the easiest way to do so is adding then removing a tag; I would love to see another sub command added called Replace.
The syntax could be as easy as
- tag <target> <replace> <tag to replace> <new tag>
As an example I give you this /tag @e[tag=foo] replace foo bar it's pretty self explanatory but in this instance any entity with the tag foo would have the foo tag replaced with bar.
This would save time in datapacks, map makers and general command use so you can change an entities tag with one command.
Please sign in to leave a comment.
1 Comments