<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=98.96.110.100</id>
	<title>SAS Gaming Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=98.96.110.100"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/wiki/Special:Contributions/98.96.110.100"/>
	<updated>2026-04-09T20:33:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/attribute&amp;diff=49557</id>
		<title>Minecraft:Commands/attribute</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/attribute&amp;diff=49557"/>
		<updated>2025-09-24T14:57:30Z</updated>

		<summary type="html">&lt;p&gt;98.96.110.100: /* Examples */ added another example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{exclusive|java}}&lt;br /&gt;
{{Infobox command&lt;br /&gt;
|name=attribute&lt;br /&gt;
|oplevel=2&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Used to change or read [[Minecraft:attribute]]s.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
:&amp;lt;code&amp;gt;attribute &amp;lt;target&amp;gt; &amp;lt;attribute&amp;gt; get [&amp;lt;scale&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
::Returns the total value of the specified attribute.&lt;br /&gt;
:&amp;lt;code&amp;gt;attribute &amp;lt;target&amp;gt; &amp;lt;attribute&amp;gt; base get [&amp;lt;scale&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
::Returns the base value of the specified attribute.&lt;br /&gt;
:&amp;lt;code&amp;gt;attribute &amp;lt;target&amp;gt; &amp;lt;attribute&amp;gt; base set &amp;lt;value&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::Overwrites the base value of the specified attribute with the given value.&lt;br /&gt;
:&amp;lt;code&amp;gt;attribute &amp;lt;target&amp;gt; &amp;lt;attribute&amp;gt; base reset&amp;lt;/code&amp;gt;&lt;br /&gt;
::Resets the base value of the specified attribute to its default value.&lt;br /&gt;
:&amp;lt;code&amp;gt;attribute &amp;lt;target&amp;gt; &amp;lt;attribute&amp;gt; modifier add &amp;lt;id&amp;gt; &amp;lt;value&amp;gt; (add_value|add_multiplied_base|add_multiplied_total)&amp;lt;/code&amp;gt;&lt;br /&gt;
::Adds an attribute modifier with the specified properties if no modifier with the same ID already existed.&lt;br /&gt;
:&amp;lt;code&amp;gt;attribute &amp;lt;target&amp;gt; &amp;lt;attribute&amp;gt; modifier remove &amp;lt;id&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::Removes the attribute modifier with the specified ID.&lt;br /&gt;
:&amp;lt;code&amp;gt;attribute &amp;lt;target&amp;gt; &amp;lt;attribute&amp;gt; modifier value get &amp;lt;id&amp;gt; [&amp;lt;scale&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
::Returns the value of the modifier with the specified ID.&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
{{argument|target|entity}}&lt;br /&gt;
: The [[Minecraft:entity]] that the [[Minecraft:attribute]] is applied to. Only [[Minecraft:player]]s, [[Minecraft:armor stand]]s, and [[Minecraft:mob]]s have attributes.&lt;br /&gt;
: {{arg desc|je=entity|type=entities|amount=single}}&lt;br /&gt;
&lt;br /&gt;
{{argument|attribute|resource}}&lt;br /&gt;
: Specifies the [[Minecraft:Attribute#Attributes|attribute]].&lt;br /&gt;
: {{arg desc|je=resource|registry=minecraft:attribute}}&lt;br /&gt;
&lt;br /&gt;
{{argument|scale|double}}&lt;br /&gt;
: The number the value is multiplied with before being stored with {{cmd|execute}} command.&lt;br /&gt;
: {{arg desc|je=double}}&lt;br /&gt;
&lt;br /&gt;
{{argument|id|resource_location}}&lt;br /&gt;
: Specifies the id of a [[Minecraft:Attribute#Modifiers|modifier]].&lt;br /&gt;
: {{arg desc|je=resource_location}}&lt;br /&gt;
&lt;br /&gt;
{{argument|value|double}}&lt;br /&gt;
: Specifies the value to use.&lt;br /&gt;
: {{arg desc|je=double}}&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
{{Result table|onlyje=1}}&lt;br /&gt;
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;&amp;lt;targets&amp;gt;&amp;lt;/code&amp;gt; fails to resolve to a player, an armor stand, or a mob.|fail}}&lt;br /&gt;
{{Result table|The attribute doesn&#039;t exist for the entity (for example, a player entity has no &amp;lt;code&amp;gt;minecraft:flying_speed&amp;lt;/code&amp;gt;).}}&lt;br /&gt;
{{Result table|cmd=/... modifier add ...|A modifier with the specified ID is already present.}}&lt;br /&gt;
{{Result table|cmd=/... modifier remove ...&amp;lt;br&amp;gt;/... modifier value get ...|The modifier with the specified ID doesn&#039;t exist.}}&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=/... get [&amp;lt;scale&amp;gt;]|On success|1|1|The attribute value (multiplied by {{cd|&amp;lt;scale&amp;gt;}}, then cast to int)}}&lt;br /&gt;
{{Output table|cmd=/... base get [&amp;lt;scale&amp;gt;]|On success|1|1|The attribute base value (multiplied by {{cd|&amp;lt;scale&amp;gt;}}, then cast to int)}}&lt;br /&gt;
{{Output table|cmd=/... modifier value get &amp;lt;id&amp;gt; [&amp;lt;scale&amp;gt;]|On success|1|1|The modifier value (multiplied by {{cd|&amp;lt;scale&amp;gt;}}, then cast to int)}}&lt;br /&gt;
{{Output table|cmd=/... base set ...&amp;lt;br&amp;gt;/... modifier add ...&amp;lt;br&amp;gt;/... modifier remove ...|On success|1|1|1}}&lt;br /&gt;
{{Output table}}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* To set the minimum armor value of the current entity to 5:&lt;br /&gt;
*: &amp;lt;code&amp;gt;/attribute @s minecraft:armor base set 5&amp;lt;/code&amp;gt;&lt;br /&gt;
*: To set the minimum scale value of the current entity to .5:&lt;br /&gt;
*:: &amp;lt;code&amp;gt;/attribute @s minecraft:armor base set .5&amp;lt;/code&amp;gt;&lt;br /&gt;
*:&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.16|dev=20w17a|Added {{cmd|attribute|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.18.2|dev=1.18.2-pre3|Changed from {{cd|resource_location}} to {{cd|resource}} [[Minecraft:argument type]] for the attribute argument.}}&lt;br /&gt;
|{{HistoryLine||1.20.5|dev=24w09a|Modifier operations have been renamed: &amp;lt;code&amp;gt;add&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;lt;code&amp;gt;add_value&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;multiply_base&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;lt;code&amp;gt;add_multiplied_base&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;multiply&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;lt;code&amp;gt;add_multiplied_total&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
|{{HistoryLine||1.21|The &amp;lt;code&amp;gt;uuid&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; arguments have been replaced with a singular &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; argument.|dev=24w21b}}&lt;br /&gt;
|{{HistoryLine||1.21.4|dev=24w44a|Added {{cmd|attribute &amp;lt;target&amp;gt; &amp;lt;attribute&amp;gt; base reset|link=none}}.&lt;br /&gt;
|Suggestions will now be shown for attribute modifier IDs existing on the target.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/attribute]]&lt;br /&gt;
[[Minecraft:es:Comandos/attribute]]&lt;br /&gt;
[[Minecraft:ja:コマンド/attribute]]&lt;br /&gt;
[[Minecraft:pt:Comandos/attribute]]&lt;br /&gt;
[[Minecraft:zh:命令/attribute]]&lt;/div&gt;</summary>
		<author><name>98.96.110.100</name></author>
	</entry>
</feed>