<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Ftag</id>
	<title>Minecraft:Commands/tag - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Ftag"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/tag&amp;action=history"/>
	<updated>2026-04-09T14:37:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/tag&amp;diff=49820&amp;oldid=prev</id>
		<title>imported&gt;RedX at 21:34, 29 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/tag&amp;diff=49820&amp;oldid=prev"/>
		<updated>2025-11-29T21:34:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{for||Tag}}&lt;br /&gt;
{{Infobox command&lt;br /&gt;
| name = tag&lt;br /&gt;
| oplevel = &lt;br /&gt;
* 2 {{only|java|short=1}}&lt;br /&gt;
* 1 {{only|bedrock|short=1}}&lt;br /&gt;
| others = [[Minecraft:Cheat]] only{{only|bedrock|short=1}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Controls [[Minecraft:scoreboard tag]]s on individual [[Minecraft:entities]]. {{IN|java}}, the number of tags owned by an entity cannot exceed 1024.&lt;br /&gt;
&lt;br /&gt;
{{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&amp;#039;t be changed by commands.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;tag &amp;lt;targets&amp;gt; add &amp;lt;name&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Adds a tag to the targets.&lt;br /&gt;
: &amp;lt;code&amp;gt;tag &amp;lt;targets&amp;gt; remove &amp;lt;name&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Removes a tag from the targets.&lt;br /&gt;
: &amp;lt;code&amp;gt;tag &amp;lt;targets&amp;gt; list&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Lists all tags on the targets.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;tag &amp;lt;entity: targets&amp;gt; add &amp;lt;name: string&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Adds a tag to the targets.&lt;br /&gt;
: &amp;lt;code&amp;gt;tag &amp;lt;entity: targets&amp;gt; remove &amp;lt;name: string&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Removes a tag from the targets.&lt;br /&gt;
: &amp;lt;code&amp;gt;tag &amp;lt;entity: targets&amp;gt; list&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Lists all tags on the targets.&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
{{argument|targets|entity|entity: target|WildcardCommandSelector&amp;lt;Actor&amp;gt;}}&lt;br /&gt;
: Specifies the command&amp;#039;s target.&lt;br /&gt;
: {{IN|java}}, {{lcfirst:{{arg desc|je=entity|amount=multiple|type=entities}}}}&lt;br /&gt;
: {{IN|bedrock}}, must be either a [[Minecraft:Commands#Target_selectors|target selector]], a player name, or &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; for all score holders.&lt;br /&gt;
&lt;br /&gt;
{{argument|name|string|name: string|basic_string}}&lt;br /&gt;
: Specifies the name of the tag to be added into or removed from the targets.&lt;br /&gt;
: {{arg desc|je=string|type=word|be=string}}&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
{{Result table}}&lt;br /&gt;
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;&amp;lt;targets&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;player: target&amp;lt;/code&amp;gt; fails to resolve to one or more entities (named players must be online).|fail|fail}}&lt;br /&gt;
{{Result table|cmd=/tag ... add ...|All selected entities meet one or more of the following conditions:&lt;br /&gt;
* It already has the specified tag.&lt;br /&gt;
* It already has 1024 tags{{only|java}}.}}&lt;br /&gt;
{{Result table|cmd=/tag ... remove ...|There&amp;#039;s no entity whose tag is removed.}}&lt;br /&gt;
{{Result table|cmd=/tag ... list ...|There&amp;#039;s no entity that has any tag.||success}}&lt;br /&gt;
{{Result table|cmd=|succeed}}&lt;br /&gt;
{{Result table}}&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
{{Output table}}&lt;br /&gt;
{{Output table|edition=je|On fail|0|0|0}}&lt;br /&gt;
{{Output table|cmd=/tag ... add ...|On success|1|1|the number of entities who get a new tag}}&lt;br /&gt;
{{Output table|cmd=/tag ... remove ...|On success|1|1|the number of entities whose tag is remove}}&lt;br /&gt;
{{Output table|cmd=/tag ... list|On success|1|1|the number of all tags the specified entities have}}&lt;br /&gt;
{{Output table|cmd=|edition=be|On fail|0}}&lt;br /&gt;
{{Output table|On success|1}}&lt;br /&gt;
{{Output table}}&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
=== &amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.13|dev=17w45a|Added {{cmd|tag|link=none}}.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|bedrock}}&lt;br /&gt;
|{{HistoryLine||1.9|dev=beta 1.9.0.2|Added {{cmd|tag|link=none}}.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{cmd|function}}&lt;br /&gt;
* {{cmd|team}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* {{Cite|url=https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/tag?view=minecraft-bedrock-stable|title=&amp;lt;code&amp;gt;/tag&amp;lt;/code&amp;gt; Command|website=Microsoft Learn|date=September 18, 2024}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/tag]]&lt;br /&gt;
[[Minecraft:ja:コマンド/tag]]&lt;br /&gt;
[[Minecraft:pt:Comandos/tag]]&lt;br /&gt;
[[Minecraft:ru:Команды консоли/tag]]&lt;br /&gt;
[[Minecraft:zh:命令/tag]]&lt;/div&gt;</summary>
		<author><name>imported&gt;RedX</name></author>
	</entry>
</feed>