Minejango2 (토론 | 기여) 잔글편집 요약 없음 |
Minejango2 (토론 | 기여) 잔글편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
− | {{For| |
+ | {{For|the command|Commands/attribute}} |
− | '''속성'''은 몹과 플레이어의 버프와 디버프를 조정하는 시스템이다. Attributes also have '''modifiers''' that adjust the strength of their effect. |
+ | '''속성'''(Attributes)은 몹과 플레이어의 버프와 디버프를 조정하는 시스템이다.. Attributes also have '''modifiers''' that adjust the strength of their effect. |
== Applying attributes == |
== Applying attributes == |
||
6번째 줄: | 6번째 줄: | ||
When applied to an item, a modifier adjusts the corresponding attribute if the item is held or worn.<ref>{{tweet|dinnerbone|337540303647027201}}</ref><ref>{{tweet|dinnerbone|337543314435878913}}</ref> Attributes/modifiers can be added to items or mobs without the use of third-party NBT editing software by adding data tags to the give and summon commands. The [[UUID]]s for these modifiers should be randomly chosen, to prevent accidentally using the same UUID as another modifier. |
When applied to an item, a modifier adjusts the corresponding attribute if the item is held or worn.<ref>{{tweet|dinnerbone|337540303647027201}}</ref><ref>{{tweet|dinnerbone|337543314435878913}}</ref> Attributes/modifiers can be added to items or mobs without the use of third-party NBT editing software by adding data tags to the give and summon commands. The [[UUID]]s for these modifiers should be randomly chosen, to prevent accidentally using the same UUID as another modifier. |
||
− | The following command gives the player a |
+ | The following command gives the player a netherite sword that deals {{hp|20}} extra damage. If the player changes the operation from 0 to 1 it multiplies the attack damage instead: |
− | + | {{cmd|long=1|give @s netherite_sword{AttributeModifiers:[{AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; 42853, 1689024593, -201178, -1559272105]}]} 1 }} |
|
− | {{upcoming|java 1.16}}{{cmd|long=1|give @s diamond_sword{AttributeModifiers:[{AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; 42853, 1689024593, -201178, -1559272105]}]} 1 }} |
||
− | The following command summons a zombie that follows players when they are 100 blocks or less from it instead of the usual 40 |
+ | The following command summons a zombie that follows players when they are 100 blocks or less from it instead of the usual 40: |
− | + | {{cmd|long=1|summon zombie ~ ~ ~ {Attributes:[{Name:"generic.follow_range", Base:100.0}]} }} |
|
− | {{upcoming|java 1.16}}{{cmd|long=1|summon zombie ~ ~ ~ {Attributes:[{Name:"generic.follow_range", Base:100.0}]} }} |
||
− | The player can also specify what slot has certain attributes |
+ | The player can also specify what slot has certain attributes: |
− | + | {{cmd|long=1|give @p diamond_axe{AttributeModifiers:[{Slot:"mainhand", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; -192596, -61963, -161679, -10288428]}]} 1 }} |
|
− | {{upcoming|java 1.16}}{{cmd|long=1|give @p diamond_axe{AttributeModifiers:[{Slot:"mainhand", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; -192596, -61963, -161679, -10288428]}]} 1 }} |
||
The slot can be mainhand, offhand, head, chest, legs or feet. |
The slot can be mainhand, offhand, head, chest, legs or feet. |
||
− | Also in case |
+ | Also, in case the player wants the attack speed of 1.8 with the style of 1.9, try this: |
− | + | {{cmd|long=1|/give @s shield{Unbreakable:1,AttributeModifiers:[{Slot:"offhand", AttributeName:"generic.attack_speed", Name:"generic.attack_speed", Amount:1000.0, Operation:0, UUID:[I; -110663, 103297, -1423577, 206238]}]} 1 }} |
|
− | {{upcoming|java 1.16}}{{cmd|long=1|/give @s shield{Unbreakable:1,AttributeModifiers:[{Slot:"offhand", AttributeName:"generic.attack_speed", Name:"generic.attack_speed", Amount:1000.0, Operation:0, UUID:[I; -110663, 103297, -1423577, 206238]}]} 1 }} |
||
+ | As of 1.16, the player can also use the /attribute command to apply attributes. This command example makes the Luck attribute high enough to fish treasures nearly every time: |
||
− | It gives you the attack speed of 1.8 with the style of 1.9. |
||
+ | |||
+ | {{cmd|long=1|attribute @p minecraft:generic.luck base set 1024 }} |
||
== Attributes == |
== Attributes == |
||
38번째 줄: | 36번째 줄: | ||
Note that attribute modifiers that have the same UUID and affect the same attribute do not stack; only the one that most recently affected a player or mob has an effect, overriding the previously affecting modifier(s). |
Note that attribute modifiers that have the same UUID and affect the same attribute do not stack; only the one that most recently affected a player or mob has an effect, overriding the previously affecting modifier(s). |
||
− | === Attributes available on all living |
+ | === Attributes available on all living entities === |
These attributes are found on all living entities, including players. |
These attributes are found on all living entities, including players. |
||
49번째 줄: | 47번째 줄: | ||
! width="13%" align="center" | Maximum |
! width="13%" align="center" | Maximum |
||
|- |
|- |
||
− | | |
+ | | generic.max_health |
| The maximum [[health]] of this mob (in half-hearts); determines the highest health they may be healed to. If the player is using this to summon a mob with high health, use this and the Health tag <code>{Health:200.0f}</code> for example. |
| The maximum [[health]] of this mob (in half-hearts); determines the highest health they may be healed to. If the player is using this to summon a mob with high health, use this and the Health tag <code>{Health:200.0f}</code> for example. |
||
| 20.0 |
| 20.0 |
||
55번째 줄: | 53번째 줄: | ||
| 1024.0 |
| 1024.0 |
||
|- |
|- |
||
− | | |
+ | | generic.follow_range |
| The range in blocks within which a mob with this attribute targets players or other mobs to track. Exiting this range causes the mob to cease following the player/mob. Actual value used by most mobs is 16; for zombies it is 40. |
| The range in blocks within which a mob with this attribute targets players or other mobs to track. Exiting this range causes the mob to cease following the player/mob. Actual value used by most mobs is 16; for zombies it is 40. |
||
| 32.0 |
| 32.0 |
||
61번째 줄: | 59번째 줄: | ||
| 2048.0 |
| 2048.0 |
||
|- |
|- |
||
− | | {{anchor|knockbackResistance}} |
+ | | {{anchor|knockbackResistance}}generic.knockback_resistance |
− | | The |
+ | | The scale of horizontal knockback resisted from attacks and projectiles. Vertical knockback is not affected. Does not affect explosions.<ref>{{bug|MC-32578}}</ref> 1.0 is 100% knockback resistance. 0.4 means 60% of knockback is applied. |
| 0.0 |
| 0.0 |
||
| 0.0 |
| 0.0 |
||
| 1.0 |
| 1.0 |
||
|- |
|- |
||
− | | {{anchor|movementSpeed}} |
+ | | {{anchor|movementSpeed}}generic.movement_speed |
− | | Speed of movement in some unknown metric. The mob's maximum speed in blocks/second is a bit over 43 times this value, but can be affected by various conditions, such as: being ridden (if a horse), sprinting, fleeing (if a passive mob), attacking (if an |
+ | | Speed of movement in some unknown metric. The mob's maximum speed in blocks/second is a bit over 43 times this value, but can be affected by various conditions, such as: being ridden (if a horse), sprinting, fleeing (if a passive mob), attacking (if an [[Enderman]] or [[Zombified Piglin]]), being led by a leash, being under the effect of a Speed or Slowness potion, being a baby zombie, or being a witch and drinking a potion.<br> |
{| class="wikitable" |
{| class="wikitable" |
||
! Mob |
! Mob |
||
79번째 줄: | 77번째 줄: | ||
| 0.1 |
| 0.1 |
||
|- |
|- |
||
− | | {{EntityLink|Panda}}, {{EntityLink| |
+ | | {{EntityLink|Panda}}, {{EntityLink|Player}} (sprinting) |
| 0.15 |
| 0.15 |
||
|- |
|- |
||
85번째 줄: | 83번째 줄: | ||
| random value between 0.1125 and 0.3375 |
| random value between 0.1125 and 0.3375 |
||
|- |
|- |
||
− | | {{EntityLink|Donkey}}, {{EntityLink| |
+ | | {{EntityLink|Donkey}}, {{EntityLink|Llama}}, {{EntityLink|Mule}}, {{EntityLink|Strider}} |
| 0.175 |
| 0.175 |
||
|- |
|- |
||
91번째 줄: | 89번째 줄: | ||
| {{cd|0.2 + 0.1 * Size}} |
| {{cd|0.2 + 0.1 * Size}} |
||
|- |
|- |
||
− | | {{EntityLink|Cow}}, {{EntityLink| |
+ | | {{EntityLink|Cow}}, {{EntityLink|Magma Cube}}, {{EntityLink|Mooshroom}}, {{EntityLink|Parrot}}, {{EntityLink|Skeleton Horse}}, {{EntityLink|Snow Golem}}, {{EntityLink|Zombie Horse}} |
| 0.2 |
| 0.2 |
||
|- |
|- |
||
− | | {{EntityLink|Blaze}}, {{EntityLink| |
+ | | {{EntityLink|Blaze}}, {{EntityLink|Drowned}}, {{EntityLink|Husk}}, {{EntityLink|Sheep}}, {{EntityLink|Zombie}}, {{EntityLink|Zombie Villager}}, |
− | {{EntityLink| |
+ | {{EntityLink|Zombified Piglin}} |
| 0.23 |
| 0.23 |
||
|- |
|- |
||
− | | {{EntityLink|Chicken}}, {{EntityLink| |
+ | | {{EntityLink|Chicken}}, {{EntityLink|Creeper}}, {{EntityLink|Endermite}}, {{EntityLink|Iron Golem}}, {{EntityLink|Pig}}, {{EntityLink|Polar Bear}}, {{EntityLink|Silverfish}}, {{EntityLink|Skeleton}}, {{EntityLink|Stray}}, {{EntityLink|Turtle}}, {{EntityLink|Witch}}, {{EntityLink|Wither Skeleton}} |
| 0.25 |
| 0.25 |
||
|- |
|- |
||
− | | {{EntityLink|Bee}}, {{EntityLink| |
+ | | {{EntityLink|Bee}}, {{EntityLink|Cat}}, {{EntityLink|Cave Spider}}, {{EntityLink|Elder Guardian}}, {{EntityLink|Enderman}}, {{EntityLink|Fox}}, {{EntityLink|Ocelot}}, {{EntityLink|Rabbit}}, {{EntityLink|Ravager}}, {{EntityLink|Spider}}, {{EntityLink|Wolf}} |
| 0.3 |
| 0.3 |
||
|- |
|- |
||
− | | {{EntityLink|Pillager}}, {{EntityLink| |
+ | | {{EntityLink|Pillager}}, {{EntityLink|Vindicator}} |
| 0.35 |
| 0.35 |
||
|- |
|- |
||
− | | {{EntityLink|Hoglin |
+ | | {{EntityLink|Hoglin}} |
| 0.4 |
| 0.4 |
||
|- |
|- |
||
− | | {{EntityLink|Evoker}}, {{EntityLink| |
+ | | {{EntityLink|Evoker}}, {{EntityLink|Giant}}, {{EntityLink|Guardian}}, {{EntityLink|Illusioner}}, {{EntityLink|Piglin}}, {{EntityLink|Villager}}, {{EntityLink|Wandering Trader}} |
| 0.5 |
| 0.5 |
||
|- |
|- |
||
116번째 줄: | 114번째 줄: | ||
| 0.6 |
| 0.6 |
||
|- |
|- |
||
− | | {{EntityLink|Bat}}, {{EntityLink| |
+ | | {{EntityLink|Bat}}, {{EntityLink|Cod}}, {{EntityLink|Ender Dragon}}, {{EntityLink|Ghast}}, {{EntityLink|Pufferfish}}, {{EntityLink|Salmon}}, {{EntityLink|Shulker}}, {{EntityLink|Squid}}, {{EntityLink|Tropical Fish}}, {{EntityLink|Vex}} |
| 0.7 |
| 0.7 |
||
|- |
|- |
||
122번째 줄: | 120번째 줄: | ||
| 1.2 |
| 1.2 |
||
|} |
|} |
||
+ | | 0.7 |
||
− | | <abbr title="Exact value is 0.699999988079071">0.7*</abbr> |
||
| 0.0 |
| 0.0 |
||
| 1024.0 |
| 1024.0 |
||
|- |
|- |
||
− | | |
+ | | generic.attack_damage |
| Damage dealt by attacks, in half-hearts. This attribute is not found on passive mobs and golems. |
| Damage dealt by attacks, in half-hearts. This attribute is not found on passive mobs and golems. |
||
− | | |
+ | | 2.0 |
| 0.0 |
| 0.0 |
||
| 2048.0 |
| 2048.0 |
||
138번째 줄: | 136번째 줄: | ||
| 30.0 |
| 30.0 |
||
|- |
|- |
||
− | | |
+ | | generic.armor_toughness |
+ | | How much damage an armor point can block (100 generic.armor but 0 armor toughness should block nothing) in some unknown value. |
||
− | | Armor Toughness. |
||
| 0.0 |
| 0.0 |
||
| 0.0 |
| 0.0 |
||
| 20.0 |
| 20.0 |
||
|- |
|- |
||
− | | |
+ | | generic.attack_knockback |
− | | Knockback applied to attacks. Applies only to [[mob]]s with physical attacks.<ref>{{bug|MC-138868}}</ref><br>{{EntityLink|Ravager}}: 1.5<br>{{EntityLink|Hoglin}}: |
+ | | Knockback applied to attacks. Applies only to [[mob]]s with physical attacks.<ref>{{bug|MC-138868}}</ref><br>{{EntityLink|Ravager}}: 1.5<br>{{EntityLink|Hoglin}} and {{EntityLink|Zoglin}}: 1.0 |
| 0.0 |
| 0.0 |
||
| 0.0 |
| 0.0 |
||
− | | |
+ | | 5.0 |
|- |
|- |
||
|} |
|} |
||
− | === |
+ | === 플레이어 속성 === |
These attributes apply to [[player]]s. |
These attributes apply to [[player]]s. |
||
163번째 줄: | 161번째 줄: | ||
! width="13%" align="center" | Maximum |
! width="13%" align="center" | Maximum |
||
|- |
|- |
||
− | | |
+ | | generic.attack_speed |
| Determines recharging rate of attack strength. Value is the number of full-strength attacks per second. |
| Determines recharging rate of attack strength. Value is the number of full-strength attacks per second. |
||
| 4.0 |
| 4.0 |
||
177번째 줄: | 175번째 줄: | ||
|} |
|} |
||
− | === |
+ | === 말 속성 === |
These attributes apply to [[horse]]s. |
These attributes apply to [[horse]]s. |
||
188번째 줄: | 186번째 줄: | ||
! width="13%" align="center" | Maximum |
! width="13%" align="center" | Maximum |
||
|- |
|- |
||
− | | |
+ | | horse.jump_strength |
| Horse jump strength in some unknown metric. |
| Horse jump strength in some unknown metric. |
||
+ | | 0.7 |
||
− | | <abbr title="Exact value is 0.69999999999999996">0.7*</abbr> |
||
| 0.0 |
| 0.0 |
||
| 2.0 |
| 2.0 |
||
196번째 줄: | 194번째 줄: | ||
|} |
|} |
||
− | === |
+ | === 앵무새와 꿀벌 속성 === |
− | These attributes apply to [[parrot]]s. |
+ | These attributes apply to [[bee]]s and [[parrot]]s. |
{| class="wikitable" style="width:100%" data-description="Parrot-only attributes" |
{| class="wikitable" style="width:100%" data-description="Parrot-only attributes" |
||
207번째 줄: | 205번째 줄: | ||
! width="13%" align="center" | Maximum |
! width="13%" align="center" | Maximum |
||
|- |
|- |
||
− | | |
+ | | generic.flying_speed |
− | | Flight speed modifier in some unknown metric. |
+ | | Flight speed modifier in some unknown metric. Set to 0.6 for bees and 0.4 for parrots. |
+ | | 0.4 |
||
− | | <abbr title="Exact value is 0.4000000059604645">0.4*</abbr> |
||
| 0.0 |
| 0.0 |
||
| 1024.0 |
| 1024.0 |
||
215번째 줄: | 213번째 줄: | ||
|} |
|} |
||
− | === |
+ | === 좀비 속성 === |
These attributes apply to [[zombie]]s. |
These attributes apply to [[zombie]]s. |
||
226번째 줄: | 224번째 줄: | ||
! width="13%" align="center" | Maximum |
! width="13%" align="center" | Maximum |
||
|- |
|- |
||
− | | |
+ | | zombie.spawn_reinforcements |
| Chance for a zombie to spawn another zombie when attacked. |
| Chance for a zombie to spawn another zombie when attacked. |
||
| 0.0 |
| 0.0 |
||
238번째 줄: | 236번째 줄: | ||
When the game finds an attribute with an unrecognized name, it applies these properties to it. |
When the game finds an attribute with an unrecognized name, it applies these properties to it. |
||
− | '''Warning:''' The default values for unknown attributes cause Minecraft to crash.<ref>{{bug|MC-150405}}</ref> |
||
<!-- developer commentary: |
<!-- developer commentary: |
||
265번째 줄: | 262번째 줄: | ||
| Unknown |
| Unknown |
||
| 0.0 |
| 0.0 |
||
− | | |
+ | | -1.8×10<sup>308</sup> (Negative <code>[https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html#MAX_VALUE Double.MAX_VALUE]</code>) |
− | | 1.8×10<sup>308</sup> (<code>[https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html#MAX_VALUE |
+ | | 1.8×10<sup>308</sup> (<code>[https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html#MAX_VALUE Double.MAX_VALUE]</code>) |
|- |
|- |
||
|} |
|} |
||
278번째 줄: | 275번째 줄: | ||
A modifier's operation dictates how it modifies an attribute's base value. Three operations exist: |
A modifier's operation dictates how it modifies an attribute's base value. Three operations exist: |
||
− | '''add''': Saved as operation 0. Adds all of the modifiers' amounts to the current value of the attribute. For example, modifying an attribute with {Amount:2,Operation:0} and {Amount:4,Operation:0} with a Base of 3 results in 9 (3 + 2 + 4 = 9). |
+ | '''add''' (amount +/-): Saved as operation 0. Adds all of the modifiers' amounts to the current value of the attribute. For example, modifying an attribute with {Amount:2,Operation:0} and {Amount:4,Operation:0} with a Base of 3 results in 9 (3 + 2 + 4 = 9). |
− | '''multiply_base''': Saved as operation 1. Multiplies the current value of the attribute by (1 + x), where x is the sum of the modifiers' amounts. For example, modifying an attribute with {Amount:2,Operation:1} and {Amount:4,Operation:1} with a Base of 3 results in 21 (3 * (1 + 2 + 4) = 21). |
+ | '''multiply_base''' (amount % +/-, additive): Saved as operation 1. Multiplies the current value of the attribute by (1 + x), where x is the sum of the modifiers' amounts. For example, modifying an attribute with {Amount:2,Operation:1} and {Amount:4,Operation:1} with a Base of 3 results in 21 (3 * (1 + 2 + 4) = 21). |
− | '''multiply''': Saved as operation 2. For every modifier, multiplies the current value of the attribute by (1 + x), where x is the amount of the particular modifier. Functions the same as Operation 1 if there is only a single modifier with operation 1 or 2. However, for multiple modifiers it multiplies the modifiers rather than adding them. For example, modifying an attribute with {Amount:2,Operation:2} and {Amount:4,Operation:2} with a Base of 3 results in 45 (3 * (1 + 2) * (1 + 4) = 45).<ref>{{tweet|dinnerbone|337542071386783744}}</ref> |
+ | '''multiply''' (amount % +/-, multiplicative): Saved as operation 2. For every modifier, multiplies the current value of the attribute by (1 + x), where x is the amount of the particular modifier. Functions the same as Operation 1 if there is only a single modifier with operation 1 or 2. However, for multiple modifiers it multiplies the modifiers rather than adding them. For example, modifying an attribute with {Amount:2,Operation:2} and {Amount:4,Operation:2} with a Base of 3 results in 45 (3 * (1 + 2) * (1 + 4) = 45).<ref>{{tweet|dinnerbone|337542071386783744}}</ref> |
The mathematical behavior is as follows: |
The mathematical behavior is as follows: |
||
292번째 줄: | 289번째 줄: | ||
=== Vanilla modifiers === |
=== Vanilla modifiers === |
||
− | As stated before, a modifier's name can be anything, and this does not affect its behavior. The following are known modifier names and values used in vanilla Minecraft. Note that some UUIDs are generated on-the-fly, while others are represented as fixed strings in the code - these have been listed as well. Do not add UUIDs to this table for modifiers where they are not listed - if a UUID is not listed, this means that it is different every time the modifier is created |
+ | As stated before, a modifier's name can be anything, and this does not affect its behavior. The following are known modifier names and values used in vanilla Minecraft. Note that some UUIDs are generated on-the-fly, while others are represented as fixed strings in the code - these have been listed as well. Do not add UUIDs to this table for modifiers where they are not listed - if a UUID is not listed, this means that it is different every time the modifier is created. |
{| class="wikitable" style="width:100%" data-description="Modifiers" |
{| class="wikitable" style="width:100%" data-description="Modifiers" |
||
300번째 줄: | 297번째 줄: | ||
|- |
|- |
||
| Random spawn bonus |
| Random spawn bonus |
||
− | | Generated upon spawning; a random number from a Gaussian distribution ranging from 0.0 to |
+ | | Generated upon spawning; a random number from a Gaussian distribution ranging from 0.0 to 0.05. For Zombie Knockback Resistance, another value between 0.0 and 0.05 is also generated. |
− | | generic. |
+ | | generic.follow_range (Operation 1; all mobs), Knockback Resistance (Operation 0; Villagers and Zombies only) |
|- |
|- |
||
| Tool modifier |
| Tool modifier |
||
| Value varies based on tool and tier. |
| Value varies based on tool and tier. |
||
− | | generic. |
+ | | generic.attack_damage (Operation 0; tridents, shovels, pickaxes, axes, hoes; UUID CB3F55D3-645C-4F38-A497-9C13A33DB5CF), generic.attack_speed (Operation 0; tridents, shovels, pickaxes, axes, hoes; UUID FA233E1C-4180-4865-B01B-BCCE9785ACA3) |
|- |
|- |
||
| Weapon modifier |
| Weapon modifier |
||
| Value varies based on weapon tier. |
| Value varies based on weapon tier. |
||
− | | generic. |
+ | | generic.attack_damage (Operation 0; swords; UUID CB3F55D3-645C-4F38-A497-9C13A33DB5CF), generic.attack_speed (Operation 0; swords; UUID FA233E1C-4180-4865-B01B-BCCE9785ACA3) (same UUIDs as Tool modifier) |
|- |
|- |
||
| Armor modifier |
| Armor modifier |
||
317번째 줄: | 314번째 줄: | ||
| Armor toughness |
| Armor toughness |
||
| Value varies based on tier. |
| Value varies based on tier. |
||
− | | generic. |
+ | | generic.armor_toughness (Operation 0; boots - UUID 845DB27C-C624-495F-8C9F-6020A9A58B6B, leggings - UUID D8499B04-0E66-4726-AB29-64469D734E0D, chestplate - UUID 9F3D476D-C118-4544-8365-64846904B48E, helmet - UUID 2AD3F246-FEE1-4E67-B886-69FD380BB150) |
|- |
|- |
||
| Sprinting speed boost |
| Sprinting speed boost |
||
− | | Fixed value of |
+ | | Fixed value of 0.3 used by all mobs (including players) when sprinting. |
− | | generic. |
+ | | generic.movement_speed (Operation 2; all living entities; UUID 662A6B8D-DA3E-4C1C-8813-96EA6097278D) |
|- |
|- |
||
| Fleeing speed boost |
| Fleeing speed boost |
||
| Fixed value of 2 used by all passive mobs when fleeing. |
| Fixed value of 2 used by all passive mobs when fleeing. |
||
− | | generic. |
+ | | generic.movement_speed (Operation 2; all passive mobs; UUID E199AD21-BA8A-4C53-8D13-6182D5C69D3A) |
|- |
|- |
||
| Attacking speed boost |
| Attacking speed boost |
||
− | | Fixed value of |
+ | | Fixed value of 6.2 for Endermen and 0.45 for Zombie Pigmen; exists only when attacking. |
− | | generic. |
+ | | generic.movement_speed (Operation 0; [[Endermen]] - UUID 020E0DFB-87AE-4653-9556-831010E291A0, [[Zombified Piglin]]s - UUID 49455A49-7EC5-45BA-B886-3B90B23A1718) |
|- |
|- |
||
| Covered armor bonus |
| Covered armor bonus |
||
341번째 줄: | 338번째 줄: | ||
| Baby speed boost |
| Baby speed boost |
||
| Fixed value of 0.5; exists only for baby Zombies and baby Zombie Villagers. |
| Fixed value of 0.5; exists only for baby Zombies and baby Zombie Villagers. |
||
− | | generic. |
+ | | generic.movement_speed (Operation 1; Baby Zombies; UUID B9766B59-9566-4402-BC1F-2EE2A276D836) |
|- |
|- |
||
| Drinking speed penalty |
| Drinking speed penalty |
||
| Fixed value of -0.25 for Witches when drinking a potion. |
| Fixed value of -0.25 for Witches when drinking a potion. |
||
− | | generic. |
+ | | generic.movement_speed (Operation 0; Witches; UUID 5CD17E52-A79A-43D3-A529-90FDE04B181E) |
|- |
|- |
||
| Random zombie-spawn bonus |
| Random zombie-spawn bonus |
||
| Generated upon spawning; a random number between 0.0 and 1.5. |
| Generated upon spawning; a random number between 0.0 and 1.5. |
||
− | | generic. |
+ | | generic.follow_range (Operation 2; Zombies) |
|- |
|- |
||
| Leader zombie bonus |
| Leader zombie bonus |
||
− | | Has a (small) random chance of being generated on a zombie when spawned. For Spawn Reinforcements Chance, random number between 0.5 and 0.75. For generic. |
+ | | Has a (small) random chance of being generated on a zombie when spawned. For Spawn Reinforcements Chance, random number between 0.5 and 0.75. For generic.max_health, random number between 1.0 and 4.0. |
− | | zombie. |
+ | | zombie.spawn_reinforcements (Operation 0; Zombies), generic.maxHealth (Operation 2; Zombies) |
|- |
|- |
||
| Zombie reinforcement caller charge |
| Zombie reinforcement caller charge |
||
− | | Fixed value of |
+ | | Fixed value of -0.05 created each time a zombie spawns another zombie as reinforcement. |
− | | zombie. |
+ | | zombie.spawn_reinforcements (Operation 0; Zombies) |
|- |
|- |
||
| Zombie reinforcement callee charge |
| Zombie reinforcement callee charge |
||
− | | Fixed value of |
+ | | Fixed value of -0.05 created for each zombie spawned as a reinforcement. |
− | | zombie. |
+ | | zombie.spawn_reinforcements (Operation 0; Zombies) |
|- |
|- |
||
| effect.moveSpeed '''or''' effect.moveSpeed # <small>(where # is the potion's amplifier)</small> |
| effect.moveSpeed '''or''' effect.moveSpeed # <small>(where # is the potion's amplifier)</small> |
||
− | | Fixed value of |
+ | | Fixed value of 0.2 when under the Speed effect, multiplied by the effect's ''level'' (amplifier + 1). |
− | | generic. |
+ | | generic.movement_speed (Operation 2; All living entities; UUID 91AEAA56-376B-4498-935B-2F7F68070635) |
|- |
|- |
||
| effect.moveSlowdown '''or''' effect.moveSlowdown # <small>(where # is the potion's amplifier)</small> |
| effect.moveSlowdown '''or''' effect.moveSlowdown # <small>(where # is the potion's amplifier)</small> |
||
− | | Fixed value of |
+ | | Fixed value of -0.15 when under the Slowness effect, multiplied by the effect's level. |
− | | generic. |
+ | | generic.movement_speed (Operation 2; All living entities; UUID 7107DE5E-7CE8-4030-940E-514C1F160890) |
|- |
|- |
||
| effect.digSpeed '''or''' effect.digSpeed# <small>(where # is the potion's amplifier)</small> |
| effect.digSpeed '''or''' effect.digSpeed# <small>(where # is the potion's amplifier)</small> |
||
− | | Fixed value of |
+ | | Fixed value of 0.1 when under the Haste effect, multiplied by the effect's level. |
− | | generic. |
+ | | generic.attack_speed (Operation 2; All living entities; UUID AF8B6E3F-3328-4C0A-AA36-5BA2BB9DBEF3) |
|- |
|- |
||
| effect.digSlowDown '''or''' effect.digSlowDown# <small>(where # is the potion's amplifier)</small> |
| effect.digSlowDown '''or''' effect.digSlowDown# <small>(where # is the potion's amplifier)</small> |
||
− | | Fixed value of |
+ | | Fixed value of -0.1 when under the Mining fatigue effect, multiplied by the effect's level. |
− | | generic. |
+ | | generic.attack_speed (Operation 2; All living entities; UUID 55FCED67-E92A-486E-9800-B47F202C4386) |
|- |
|- |
||
| effect.damageBoost '''or''' effect.damageBoost # <small>(where # is the potion's amplifier)</small> |
| effect.damageBoost '''or''' effect.damageBoost # <small>(where # is the potion's amplifier)</small> |
||
| Fixed value of 3 when under the Strength effect, multiplied by the effect's level. |
| Fixed value of 3 when under the Strength effect, multiplied by the effect's level. |
||
− | | generic. |
+ | | generic.attack_damage (Operation 0; All living entities; UUID 648D7064-6A60-4F59-8ABE-C2C23A6DD7A9) |
|- |
|- |
||
| effect.weakness '''or''' effect.weakness # <small>(where # is the potion's amplifier)</small> |
| effect.weakness '''or''' effect.weakness # <small>(where # is the potion's amplifier)</small> |
||
| Fixed value of -4 when under the Weakness effect, multiplied by the effect's level. |
| Fixed value of -4 when under the Weakness effect, multiplied by the effect's level. |
||
− | | generic. |
+ | | generic.attack_damage (Operation 0; All living entities; UUID 22653B89-116E-49DC-9B6B-9971489B5BE5) |
|- |
|- |
||
| effect.healthBoost # <small>(where # is the potion's amplifier. May be 0.)</small> |
| effect.healthBoost # <small>(where # is the potion's amplifier. May be 0.)</small> |
||
| Fixed value of 4 when under the Health Boost effect, multiplied by the effect's level. |
| Fixed value of 4 when under the Health Boost effect, multiplied by the effect's level. |
||
− | | generic. |
+ | | generic.max_health (Operation 0; All living entities; UUID 5D6F0BA2-1186-46AC-B896-C61C5CEE99CC) |
|- |
|- |
||
| effect.luck '''or''' effect.luck# <small>(where # is the potion's amplifier)</small> |
| effect.luck '''or''' effect.luck# <small>(where # is the potion's amplifier)</small> |
||
409번째 줄: | 406번째 줄: | ||
{{History||1.6.1|snap=13w16a|Added attributes and modifiers.|The following attributes existed: "Max Health", "Follow Range", "Knockback Resistance"; furthermore, "Jump Strength" and "Speed" existed as horse-specific attributes.|The only modifiers were both "Random spawn bonus", one used on Zombies to knockback resistance with operation 0, and the other on all mobs to follow range with operation 1.}} |
{{History||1.6.1|snap=13w16a|Added attributes and modifiers.|The following attributes existed: "Max Health", "Follow Range", "Knockback Resistance"; furthermore, "Jump Strength" and "Speed" existed as horse-specific attributes.|The only modifiers were both "Random spawn bonus", one used on Zombies to knockback resistance with operation 0, and the other on all mobs to follow range with operation 1.}} |
||
{{History|||snap=13w17a|Added "Spawn Reinforcements Chance" attribute for Zombies.|Added "Zombie reinforcement charge" (to spawn reinforcements charge), "Random zombie-spawn bonus" (to follow range), and "Leader zombie bonus" (to both reinforcements charge and max health).}} |
{{History|||snap=13w17a|Added "Spawn Reinforcements Chance" attribute for Zombies.|Added "Zombie reinforcement charge" (to spawn reinforcements charge), "Random zombie-spawn bonus" (to follow range), and "Leader zombie bonus" (to both reinforcements charge and max health).}} |
||
− | {{History|||snap=13w18a|Replaced "Zombie reinforcement charge" with |
+ | {{History|||snap=13w18a|Replaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge"}} |
{{History|||snap=13w21a|Attributes now can be specified in NBT.|Attributes now have IDs and corresponding translation keys.|Modifiers now display on items.|Added "Attack Damage" and made "Speed" generic.|Added "potion.moveSpeed", "potion.moveSlowdown", "potion.damageBoost", and "potion.weakness" modifiers.|Added "Sprinting speed boost", "Fleeing speed bonus", "Attacking speed boost" (for both pigmen and endermen), "Drinking speed penalty", and "Baby speed boost".|Added "Tool modifier" and "Weapon modifier".}} |
{{History|||snap=13w21a|Attributes now can be specified in NBT.|Attributes now have IDs and corresponding translation keys.|Modifiers now display on items.|Added "Attack Damage" and made "Speed" generic.|Added "potion.moveSpeed", "potion.moveSlowdown", "potion.damageBoost", and "potion.weakness" modifiers.|Added "Sprinting speed boost", "Fleeing speed bonus", "Attacking speed boost" (for both pigmen and endermen), "Drinking speed penalty", and "Baby speed boost".|Added "Tool modifier" and "Weapon modifier".}} |
||
{{History|||snap=13w23b|Added "potion.healthBoost" modifier.}} |
{{History|||snap=13w23b|Added "potion.healthBoost" modifier.}} |
||
418번째 줄: | 415번째 줄: | ||
{{History||1.9.1|snap=pre1|Added armorToughness attribute.}} |
{{History||1.9.1|snap=pre1|Added armorToughness attribute.}} |
||
{{History||1.14|snap=18w43a|Added attackKnockback attribute.}} |
{{History||1.14|snap=18w43a|Added attackKnockback attribute.}} |
||
+ | {{History||1.16|snap=20w06a|Knockback resistance is now a scale rather than probability.}} |
||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|Names of some attributes have been renamed to meet [[Namespaced ID]] requirements (i.e., lowercase separated by underscores instead of camel case). |
|Names of some attributes have been renamed to meet [[Namespaced ID]] requirements (i.e., lowercase separated by underscores instead of camel case). |
||
|Renamed {{cd|generic.maxHealth|d=to|generic.max_health}}. |
|Renamed {{cd|generic.maxHealth|d=to|generic.max_health}}. |
||
435번째 줄: | 430번째 줄: | ||
|Renamed {{cd|generic.armorToughness|d=to|generic.armor_toughness}}.}} |
|Renamed {{cd|generic.armorToughness|d=to|generic.armor_toughness}}.}} |
||
{{History|||snap=20w17a|Added the {{cmd|attribute}} command, which can query and change attributes.}} |
{{History|||snap=20w17a|Added the {{cmd|attribute}} command, which can query and change attributes.}} |
||
⚫ | |||
⚫ | |||
{{History|pocket alpha}} |
{{History|pocket alpha}} |
||
− | {{History|| |
+ | {{History||v0.12.1|snap=build 1|Added attributes.}} |
{{History|foot}} |
{{History|foot}} |
||
445번째 줄: | 442번째 줄: | ||
{{gameplay}} |
{{gameplay}} |
||
⚫ | |||
[[de:Attribut]] |
[[de:Attribut]] |
||
⚫ | |||
[[fr:Attribut]] |
[[fr:Attribut]] |
||
[[ja:属性]] |
[[ja:属性]] |
2021년 5월 15일 (토) 00:53 판
속성(Attributes)은 몹과 플레이어의 버프와 디버프를 조정하는 시스템이다.. Attributes also have modifiers that adjust the strength of their effect.
Applying attributes
When applied to an item, a modifier adjusts the corresponding attribute if the item is held or worn.[1][2] Attributes/modifiers can be added to items or mobs without the use of third-party NBT editing software by adding data tags to the give and summon commands. The UUIDs for these modifiers should be randomly chosen, to prevent accidentally using the same UUID as another modifier.
The following command gives the player a netherite sword that deals 20 ( × 10) extra damage. If the player changes the operation from 0 to 1 it multiplies the attack damage instead:
/give @s netherite_sword{AttributeModifiers:[{AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; 42853, 1689024593, -201178, -1559272105]}]} 1
The following command summons a zombie that follows players when they are 100 blocks or less from it instead of the usual 40:
/summon zombie ~ ~ ~ {Attributes:[{Name:"generic.follow_range", Base:100.0}]}
The player can also specify what slot has certain attributes:
/give @p diamond_axe{AttributeModifiers:[{Slot:"mainhand", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; -192596, -61963, -161679, -10288428]}]} 1
The slot can be mainhand, offhand, head, chest, legs or feet.
Also, in case the player wants the attack speed of 1.8 with the style of 1.9, try this:
/give @s shield{Unbreakable:1,AttributeModifiers:[{Slot:"offhand", AttributeName:"generic.attack_speed", Name:"generic.attack_speed", Amount:1000.0, Operation:0, UUID:[I; -110663, 103297, -1423577, 206238]}]} 1
As of 1.16, the player can also use the /attribute command to apply attributes. This command example makes the Luck attribute high enough to fish treasures nearly every time:
/attribute @p minecraft:generic.luck base set 1024
Attributes
An individual attribute controls some property, described by its name. An attribute always has a base value, and may have any number of modifiers. Attributes also have a default value (used when spawning a mob with an undefined attribute base), and hard-coded minimum and maximum values. Modifiers act on an attribute's base, but the calculated value is always capped by the minimum and maximum.
Minimum and maximum are inclusive unless specified otherwise or they are equal to 1.7×10308.
Note that attribute modifiers that have the same UUID and affect the same attribute do not stack; only the one that most recently affected a player or mob has an effect, overriding the previously affecting modifier(s).
Attributes available on all living entities
These attributes are found on all living entities, including players.
Attribute Name | Description | Default Base | Minimum | Maximum | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
generic.max_health | The maximum health of this mob (in half-hearts); determines the highest health they may be healed to. If the player is using this to summon a mob with high health, use this and the Health tag {Health:200.0f} for example.
|
20.0 | 0.0 | 1024.0 | ||||||||||||||||||||||||||||||||||
generic.follow_range | The range in blocks within which a mob with this attribute targets players or other mobs to track. Exiting this range causes the mob to cease following the player/mob. Actual value used by most mobs is 16; for zombies it is 40. | 32.0 | 0.0 | 2048.0 | ||||||||||||||||||||||||||||||||||
generic.knockback_resistance | The scale of horizontal knockback resisted from attacks and projectiles. Vertical knockback is not affected. Does not affect explosions.[3] 1.0 is 100% knockback resistance. 0.4 means 60% of knockback is applied. | 0.0 | 0.0 | 1.0 | ||||||||||||||||||||||||||||||||||
generic.movement_speed | Speed of movement in some unknown metric. The mob's maximum speed in blocks/second is a bit over 43 times this value, but can be affected by various conditions, such as: being ridden (if a horse), sprinting, fleeing (if a passive mob), attacking (if an Enderman or Zombified Piglin), being led by a leash, being under the effect of a Speed or Slowness potion, being a baby zombie, or being a witch and drinking a potion.
|
0.7 | 0.0 | 1024.0 | ||||||||||||||||||||||||||||||||||
generic.attack_damage | Damage dealt by attacks, in half-hearts. This attribute is not found on passive mobs and golems. | 2.0 | 0.0 | 2048.0 | ||||||||||||||||||||||||||||||||||
generic.armor | Armor defense points. | 0.0 | 0.0 | 30.0 | ||||||||||||||||||||||||||||||||||
generic.armor_toughness | How much damage an armor point can block (100 generic.armor but 0 armor toughness should block nothing) in some unknown value. | 0.0 | 0.0 | 20.0 | ||||||||||||||||||||||||||||||||||
generic.attack_knockback | Knockback applied to attacks. Applies only to mobs with physical attacks.[4] 파괴수: 1.5 호글린 and 조글린: 1.0 |
0.0 | 0.0 | 5.0 |
플레이어 속성
These attributes apply to players.
Attribute Name | Description | Default Base | Minimum | Maximum |
---|---|---|---|---|
generic.attack_speed | Determines recharging rate of attack strength. Value is the number of full-strength attacks per second. | 4.0 | 0.0 | 1024.0 |
generic.luck | Affects the results of loot tables using the quality or bonus_rolls tag (e.g. when opening chests or chest minecarts, fishing, and killing mobs).
|
0.0 | -1024.0 | 1024.0 |
말 속성
These attributes apply to horses.
Attribute Name | Description | Default Base | Minimum | Maximum |
---|---|---|---|---|
horse.jump_strength | Horse jump strength in some unknown metric. | 0.7 | 0.0 | 2.0 |
앵무새와 꿀벌 속성
These attributes apply to bees and parrots.
Attribute Name | Description | Default Base | Minimum | Maximum |
---|---|---|---|---|
generic.flying_speed | Flight speed modifier in some unknown metric. Set to 0.6 for bees and 0.4 for parrots. | 0.4 | 0.0 | 1024.0 |
좀비 속성
These attributes apply to zombies.
Attribute Name | Description | Default Base | Minimum | Maximum |
---|---|---|---|---|
zombie.spawn_reinforcements | Chance for a zombie to spawn another zombie when attacked. | 0.0 | 0.0 | 1.0 |
Properties of unknown attributes
When the game finds an attribute with an unrecognized name, it applies these properties to it.
Attribute Name | Description | Default Base | Minimum | Maximum |
---|---|---|---|---|
Any non-Vanilla Attribute name | Unknown | 0.0 | -1.8×10308 (Negative Double.MAX_VALUE )
|
1.8×10308 (Double.MAX_VALUE )
|
Modifiers
Modifiers act upon the base value of an attribute, increasing or decreasing it. Note that the resulting value after modification is capped by the attribute's minimum and maximum. Like attributes, modifiers have a name, however, this name does not define the modifier's behavior. Instead, a modifier's behavior is determined by its operation. Modifiers also carry an amount to their modification, and a UUID to uniquely identify the modifier.
Operations
A modifier's operation dictates how it modifies an attribute's base value. Three operations exist:
add (amount +/-): Saved as operation 0. Adds all of the modifiers' amounts to the current value of the attribute. For example, modifying an attribute with {Amount:2,Operation:0} and {Amount:4,Operation:0} with a Base of 3 results in 9 (3 + 2 + 4 = 9).
multiply_base (amount % +/-, additive): Saved as operation 1. Multiplies the current value of the attribute by (1 + x), where x is the sum of the modifiers' amounts. For example, modifying an attribute with {Amount:2,Operation:1} and {Amount:4,Operation:1} with a Base of 3 results in 21 (3 * (1 + 2 + 4) = 21).
multiply (amount % +/-, multiplicative): Saved as operation 2. For every modifier, multiplies the current value of the attribute by (1 + x), where x is the amount of the particular modifier. Functions the same as Operation 1 if there is only a single modifier with operation 1 or 2. However, for multiple modifiers it multiplies the modifiers rather than adding them. For example, modifying an attribute with {Amount:2,Operation:2} and {Amount:4,Operation:2} with a Base of 3 results in 45 (3 * (1 + 2) * (1 + 4) = 45).[5]
The mathematical behavior is as follows:
- add: Increment X by Amount
- multiply_base: Increment Y by X * Amount
- multiply: Y = Y * (1 + Amount) (equivalent to Increment Y by Y * Amount).
The game first sets X = Base, then executes all Operation add, then sets Y = X, then executes all multiply_base modifiers, and finally executes all multiply modifiers.
Vanilla modifiers
As stated before, a modifier's name can be anything, and this does not affect its behavior. The following are known modifier names and values used in vanilla Minecraft. Note that some UUIDs are generated on-the-fly, while others are represented as fixed strings in the code - these have been listed as well. Do not add UUIDs to this table for modifiers where they are not listed - if a UUID is not listed, this means that it is different every time the modifier is created.
Modifier Name | Description and Known Values | Known Attributes Modified |
---|---|---|
Random spawn bonus | Generated upon spawning; a random number from a Gaussian distribution ranging from 0.0 to 0.05. For Zombie Knockback Resistance, another value between 0.0 and 0.05 is also generated. | generic.follow_range (Operation 1; all mobs), Knockback Resistance (Operation 0; Villagers and Zombies only) |
Tool modifier | Value varies based on tool and tier. | generic.attack_damage (Operation 0; tridents, shovels, pickaxes, axes, hoes; UUID CB3F55D3-645C-4F38-A497-9C13A33DB5CF), generic.attack_speed (Operation 0; tridents, shovels, pickaxes, axes, hoes; UUID FA233E1C-4180-4865-B01B-BCCE9785ACA3) |
Weapon modifier | Value varies based on weapon tier. | generic.attack_damage (Operation 0; swords; UUID CB3F55D3-645C-4F38-A497-9C13A33DB5CF), generic.attack_speed (Operation 0; swords; UUID FA233E1C-4180-4865-B01B-BCCE9785ACA3) (same UUIDs as Tool modifier) |
Armor modifier | Value varies based on slot and tier. | generic.armor (Operation 0; boots - UUID 845DB27C-C624-495F-8C9F-6020A9A58B6B, leggings - UUID D8499B04-0E66-4726-AB29-64469D734E0D, chestplate - UUID 9F3D476D-C118-4544-8365-64846904B48E, helmet - UUID 2AD3F246-FEE1-4E67-B886-69FD380BB150) |
Armor toughness | Value varies based on tier. | generic.armor_toughness (Operation 0; boots - UUID 845DB27C-C624-495F-8C9F-6020A9A58B6B, leggings - UUID D8499B04-0E66-4726-AB29-64469D734E0D, chestplate - UUID 9F3D476D-C118-4544-8365-64846904B48E, helmet - UUID 2AD3F246-FEE1-4E67-B886-69FD380BB150) |
Sprinting speed boost | Fixed value of 0.3 used by all mobs (including players) when sprinting. | generic.movement_speed (Operation 2; all living entities; UUID 662A6B8D-DA3E-4C1C-8813-96EA6097278D) |
Fleeing speed boost | Fixed value of 2 used by all passive mobs when fleeing. | generic.movement_speed (Operation 2; all passive mobs; UUID E199AD21-BA8A-4C53-8D13-6182D5C69D3A) |
Attacking speed boost | Fixed value of 6.2 for Endermen and 0.45 for Zombie Pigmen; exists only when attacking. | generic.movement_speed (Operation 0; Endermen - UUID 020E0DFB-87AE-4653-9556-831010E291A0, Zombified Piglins - UUID 49455A49-7EC5-45BA-B886-3B90B23A1718) |
Covered armor bonus | Fixed value of 20.0 for Shulker exists only when fully closed. | generic.armor (Operation 0; Shulker; UUID 7E0292F2-9434-48D5-A29F-9583AF7DF27F) |
Horse armor bonus | Value varies based on the armor of the horse (None = 0; Iron = 5; Gold = 7;Diamond = 11) | generic.armor (Operation 0; EntityHorse; 556E1665-8B10-40C8-8F9D-CF9B1667F295) |
Baby speed boost | Fixed value of 0.5; exists only for baby Zombies and baby Zombie Villagers. | generic.movement_speed (Operation 1; Baby Zombies; UUID B9766B59-9566-4402-BC1F-2EE2A276D836) |
Drinking speed penalty | Fixed value of -0.25 for Witches when drinking a potion. | generic.movement_speed (Operation 0; Witches; UUID 5CD17E52-A79A-43D3-A529-90FDE04B181E) |
Random zombie-spawn bonus | Generated upon spawning; a random number between 0.0 and 1.5. | generic.follow_range (Operation 2; Zombies) |
Leader zombie bonus | Has a (small) random chance of being generated on a zombie when spawned. For Spawn Reinforcements Chance, random number between 0.5 and 0.75. For generic.max_health, random number between 1.0 and 4.0. | zombie.spawn_reinforcements (Operation 0; Zombies), generic.maxHealth (Operation 2; Zombies) |
Zombie reinforcement caller charge | Fixed value of -0.05 created each time a zombie spawns another zombie as reinforcement. | zombie.spawn_reinforcements (Operation 0; Zombies) |
Zombie reinforcement callee charge | Fixed value of -0.05 created for each zombie spawned as a reinforcement. | zombie.spawn_reinforcements (Operation 0; Zombies) |
effect.moveSpeed or effect.moveSpeed # (where # is the potion's amplifier) | Fixed value of 0.2 when under the Speed effect, multiplied by the effect's level (amplifier + 1). | generic.movement_speed (Operation 2; All living entities; UUID 91AEAA56-376B-4498-935B-2F7F68070635) |
effect.moveSlowdown or effect.moveSlowdown # (where # is the potion's amplifier) | Fixed value of -0.15 when under the Slowness effect, multiplied by the effect's level. | generic.movement_speed (Operation 2; All living entities; UUID 7107DE5E-7CE8-4030-940E-514C1F160890) |
effect.digSpeed or effect.digSpeed# (where # is the potion's amplifier) | Fixed value of 0.1 when under the Haste effect, multiplied by the effect's level. | generic.attack_speed (Operation 2; All living entities; UUID AF8B6E3F-3328-4C0A-AA36-5BA2BB9DBEF3) |
effect.digSlowDown or effect.digSlowDown# (where # is the potion's amplifier) | Fixed value of -0.1 when under the Mining fatigue effect, multiplied by the effect's level. | generic.attack_speed (Operation 2; All living entities; UUID 55FCED67-E92A-486E-9800-B47F202C4386) |
effect.damageBoost or effect.damageBoost # (where # is the potion's amplifier) | Fixed value of 3 when under the Strength effect, multiplied by the effect's level. | generic.attack_damage (Operation 0; All living entities; UUID 648D7064-6A60-4F59-8ABE-C2C23A6DD7A9) |
effect.weakness or effect.weakness # (where # is the potion's amplifier) | Fixed value of -4 when under the Weakness effect, multiplied by the effect's level. | generic.attack_damage (Operation 0; All living entities; UUID 22653B89-116E-49DC-9B6B-9971489B5BE5) |
effect.healthBoost # (where # is the potion's amplifier. May be 0.) | Fixed value of 4 when under the Health Boost effect, multiplied by the effect's level. | generic.max_health (Operation 0; All living entities; UUID 5D6F0BA2-1186-46AC-B896-C61C5CEE99CC) |
effect.luck or effect.luck# (where # is the potion's amplifier) | Fixed value of 1 when under the Luck effect, multiplied by the effect's level. | generic.luck(Operation 0; All living entities; UUID 03C3C89D-7037-4B42-869F-B146BCB64D2E) |
effect.unluck or effect.unluck # (where # is the potion's amplifier) | Fixed value of -1 when under the Unluck effect, multiplied by the effect's level. | generic.luck(Operation 0; All living entities; UUID CC5AF142-2BD2-4215-B636-2605AED11727) |
Unknown synced attribute modifier | Unknown; created when client reads attribute data sent by server. | varies |
History
Java Edition | |||||
---|---|---|---|---|---|
1.6.1 | 13w16a | Added attributes and modifiers. | |||
The following attributes existed: "Max Health", "Follow Range", "Knockback Resistance"; furthermore, "Jump Strength" and "Speed" existed as horse-specific attributes. | |||||
The only modifiers were both "Random spawn bonus", one used on Zombies to knockback resistance with operation 0, and the other on all mobs to follow range with operation 1. | |||||
13w17a | Added "Spawn Reinforcements Chance" attribute for Zombies. | ||||
Added "Zombie reinforcement charge" (to spawn reinforcements charge), "Random zombie-spawn bonus" (to follow range), and "Leader zombie bonus" (to both reinforcements charge and max health). | |||||
13w18a | Replaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge" | ||||
13w21a | Attributes now can be specified in NBT. | ||||
Attributes now have IDs and corresponding translation keys. | |||||
Modifiers now display on items. | |||||
Added "Attack Damage" and made "Speed" generic. | |||||
Added "potion.moveSpeed", "potion.moveSlowdown", "potion.damageBoost", and "potion.weakness" modifiers. | |||||
Added "Sprinting speed boost", "Fleeing speed bonus", "Attacking speed boost" (for both pigmen and endermen), "Drinking speed penalty", and "Baby speed boost". | |||||
Added "Tool modifier" and "Weapon modifier". | |||||
13w23b | Added "potion.healthBoost" modifier. | ||||
1.7.2 | 13w36a | Attributes/modifiers can be added to items or mobs without the use of third-party NBT editing software by adding data tags to the /give and /summon commands. | |||
1.9 | 15w34b | Added attack speed attribute. | |||
15w36d | Added armor attribute. | ||||
15w44b | Added luck attribute. | ||||
1.9.1 | pre1 | Added armorToughness attribute. | |||
1.14 | 18w43a | Added attackKnockback attribute. | |||
1.16 | 20w06a | Knockback resistance is now a scale rather than probability. | |||
20w14a | Items and entities no longer keep unknown attributes. | ||||
Names of some attributes have been renamed to meet Namespaced ID requirements (i.e., lowercase separated by underscores instead of camel case). | |||||
Renamed generic.maxHealth to generic.max_health . | |||||
Renamed zombie.spawnReinforcements to zombie.spawn_reinforcements . | |||||
Renamed horse.jumpStrength to horse.jump_strength . | |||||
Renamed generic.followRange to generic.follow_range . | |||||
Renamed generic.knockbackResistance to generic.knockback_resistance . | |||||
Renamed generic.movementSpeed to generic.movement_speed . | |||||
Renamed generic.flyingSpeed to generic.flying_speed . | |||||
Renamed generic.attackDamage to generic.attack_damage | |||||
Renamed generic.attackKnockback to generic.attack_knockback | |||||
Renamed generic.attackSpeed to generic.attack_speed | |||||
Renamed generic.armorToughness to generic.armor_toughness . | |||||
20w17a | Added the /attribute command, which can query and change attributes. | ||||
차기 Java Edition | |||||
Combat Tests | 1.14.3 - Combat Test | Added attackReach attribute. | |||
Pocket Edition 알파 | |||||
v0.12.1 | build 1 | Added attributes. |