Minecraft – way to remove all tags from an entity

minecraft-commandsminecraft-java-edition

With 1.13's new /tag command there seems to be no way remove all tags from an entity, only specific tags.

tag <targets> remove <name>

https://minecraft.fandom.com/Commands/tag

Best Answer

Of course there's also the way of manually inputting all tags that you want to remove and tagging yourself for removal of all Tags to remove all tags that you want to remove before removing the tag of removal of tags functioning as basically a clear tag

Basically:

tag @p add removeTags

then, a Repeating command block detects if any player has a tag and also has the tag of removal

tag @a[tag=removeTag] remove Tag1
tag @a[tag=removeTag] remove Tag2
tag @a[tag=removeTag] remove Tag3
tag @a[tag=removeTag] remove removeTag

in a chain command block