Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/tag: Difference between revisions

From SAS Gaming Wiki
imported>RedX
No edit summary
 
SyncBot (talk | contribs)
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 = [[Minecraft:Cheat]] only{{only|bedrock|short=1}}
| others = Cheat only{{only|bedrock|short=1}}
}}
}}


Controls [[Minecraft:scoreboard tag]]s on individual [[Minecraft:entities]]. {{IN|java}}, the number of tags owned by an entity cannot exceed 1024.
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 [[Minecraft:tags|entity type tags]], which are applied to [[Minecraft:Entity#Types of entities|entity types]] and can't be changed by commands.
{{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}}


[[Minecraft:de:Befehl/tag]]
de:Befehl/tag
[[Minecraft:ja:コマンド/tag]]
ja:コマンド/tag
[[Minecraft:pt:Comandos/tag]]
pt:Comandos/tag
[[Minecraft:ru:Команды консоли/tag]]
ru:Команды консоли/tag
[[Minecraft:zh:命令/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

Template:Argument

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.

Template:Argument

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

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

See also

External links

Navigation

Template:Navbox commands

de:Befehl/tag ja:コマンド/tag pt:Comandos/tag ru:Команды консоли/tag zh:命令/tag