Will `/scoreboard players tag` remove tags from ineligible players/entities that were previously tagged?

Will `/scoreboard players tag` remove tags from ineligible players/entities that were previously tagged? - Players Holding Laser Guns

Say I put the following command, which is used as an example in the 15w32b wiki article, in a repeating command block and set it to run:

/scoreboard players tag @a add InAir {OnGround:0b}

Anyone who is not on the ground will get the InAir tag, but will the tag automatically be removed when they hit the ground? If the tag is not removed automatically, how do I remove them? The linked article doesn't seem to provide a way.



Best Answer

Just add this command: /scoreboard players tag @a remove InAir {OnGround:1b}

This command will remove the tag from anyone who is one the ground {OnGround:1b}

Obviously, You should make sure the command blocks are set to always-active and repeating on both commands: Mine and Yours




Pictures about "Will `/scoreboard players tag` remove tags from ineligible players/entities that were previously tagged?"

Will `/scoreboard players tag` remove tags from ineligible players/entities that were previously tagged? - Players Wearing Laser Tag Equipment
Will `/scoreboard players tag` remove tags from ineligible players/entities that were previously tagged? - People Holding Laser Guns
Will `/scoreboard players tag` remove tags from ineligible players/entities that were previously tagged? - Cattle Near Barn





Minecraft TAG Command Tutorial [Working 1.19]




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Laserblast Laser Tag Equipment, Laserblast Laser Tag Equipment, Laserblast Laser Tag Equipment, Mark Stebnicki