Difference between revisions of "Player.dat format/Attribute Modifiers"

From Minecraft Wiki
Jump to: navigation, search
m (present tense)
(Add 1.16 UUID changes, clarify use)
Line 3: Line 3:
 
*** {{nbt|compound}}: A single Attribute Modifier.
 
*** {{nbt|compound}}: A single Attribute Modifier.
 
**** {{nbt|string|AttributeName}}: The name of the Attribute this Modifier is to act upon.
 
**** {{nbt|string|AttributeName}}: The name of the Attribute this Modifier is to act upon.
**** {{nbt|string|Name}}: Name of the Modifier
+
**** {{nbt|string|Name}}: The name of the Modifier. Has no known effect.
 
**** {{nbt|string|Slot}}: Slot the item must be in for the modifier to take effect. "mainhand", "offhand", "feet", "legs", "chest", or "head".
 
**** {{nbt|string|Slot}}: Slot the item must be in for the modifier to take effect. "mainhand", "offhand", "feet", "legs", "chest", or "head".
 
**** {{nbt|int|Operation}}: Modifier Operation. See [[Attribute#Modifiers|Attribute Modifiers]] for info.
 
**** {{nbt|int|Operation}}: Modifier Operation. See [[Attribute#Modifiers|Attribute Modifiers]] for info.
 
**** {{nbt|double|Amount}}: Amount of change from the modifier.
 
**** {{nbt|double|Amount}}: Amount of change from the modifier.
**** {{nbt|long|UUIDMost}}: Uppermost bits of the modifier's UUID.
+
**** {{nbt|long|UUIDMost{{until|java 1.16}}}}: Uppermost bits of the modifier's [[UUID]].
**** {{nbt|long|UUIDLeast}}: Lowermost bits of the modifier's UUID.
+
**** {{nbt|long|UUIDLeast{{until|java 1.16}}}}: Lowermost bits of the modifier's [[UUID]].
  +
**** {{nbt|int-array|UUID{{upcoming|java 1.16}}}}: The modifier's [[UUID]], stored as four ints. Used when equipping and unequipping the item to identify which modifier to add or remove from the entity.
 
</onlyinclude></div><noinclude>
 
</onlyinclude></div><noinclude>
 
[[Category:Top-level data pages]]
 
[[Category:Top-level data pages]]

Revision as of 20:20, 20 March 2020

    •  AttributeModifiers: Contains Attribute Modifiers on this item which modify Attributes of the wearer or holder (if the item is not in the hand or armor slots, it has no effect).
      • : A single Attribute Modifier.
        •  AttributeName: The name of the Attribute this Modifier is to act upon.
        •  Name: The name of the Modifier. Has no known effect.
        •  Slot: Slot the item must be in for the modifier to take effect. "mainhand", "offhand", "feet", "legs", "chest", or "head".
        •  Operation: Modifier Operation. See Attribute Modifiers for info.
        •  Amount: Amount of change from the modifier.
        •  UUIDMost‌[until JE 1.16]: Uppermost bits of the modifier's UUID.
        •  UUIDLeast‌[until JE 1.16]: Lowermost bits of the modifier's UUID.
        •  UUID‌[upcoming: JE 1.16]: The modifier's UUID, stored as four ints. Used when equipping and unequipping the item to identify which modifier to add or remove from the entity.