Minecraft:Commands/tag: Difference between revisions
From SAS Gaming Wiki
More actions
imported>RedX No edit summary |
Remove broken links to missing pages |
||
| Line 5: | Line 5: | ||
* 2 {{only|java|short=1}} | * 2 {{only|java|short=1}} | ||
* 1 {{only|bedrock|short=1}} | * 1 {{only|bedrock|short=1}} | ||
| others = | | others = Cheat only{{only|bedrock|short=1}} | ||
}} | }} | ||
Controls | Controls scoreboard tags on individual entities. {{IN|java}}, the number of tags owned by an entity cannot exceed 1024. | ||
{{el|je}} note: This is distinct from | {{el|je}} note: This is distinct from entity type tags, which are applied to entity types and can't be changed by commands. | ||
== Syntax == | == Syntax == | ||
| Line 84: | Line 84: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/tag | |||
ja:コマンド/tag | |||
pt:Comandos/tag | |||
ru:Команды консоли/tag | |||
zh:命令/tag | |||
Revision as of 15:45, 9 April 2026
Template:For Template:Infobox command
Controls scoreboard tags on individual entities. Template:IN, the number of tags owned by an entity cannot exceed 1024.
Template:El note: This is distinct from entity type tags, which are applied to entity types and can't be changed by commands.
Syntax
- Java Edition
tag <targets> add <name>- Adds a tag to the targets.
tag <targets> remove <name>- Removes a tag from the targets.
tag <targets> list- Lists all tags on the targets.
- Bedrock Edition
tag <entity: targets> add <name: string>- Adds a tag to the targets.
tag <entity: targets> remove <name: string>- Removes a tag from the targets.
tag <entity: targets> list- Lists all tags on the targets.
Arguments
- Specifies the command's target.
- Template:IN, Template:Arg desc
- Template:IN, must be either a target selector, a player name, or
*for all score holders.
- Specifies the name of the tag to be added into or removed from the targets.
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
History
Java Edition
Bedrock Edition
See also
External links
de:Befehl/tag ja:コマンド/tag pt:Comandos/tag ru:Команды консоли/tag zh:命令/tag