Attribute Modifier v3 - RealMegaMinds/ActionInventoryMod GitHub Wiki

Attribute Modifier

Attribute modifiers are used in the creation of item stacks. See Item Stack v3.

This is an object.
Looks like:

{
  "attribute": "",
  "operation": "",
  "value": 0,
  "name": "",
  "uuid": "",
  "slot": ""
}

Attribute (required)

This is the identifier for the entity attribute to modify. Vanilla Minecraft has:

Types
  • "generic.max_health"
  • "generic.follow_range"
  • "generic.knockback_resistance"
  • "generic.movement_speed"
  • "generic.flying_speed"
  • "generic.attack_damage"
  • "generic.attack_knockback"
  • "generic.attack_speed"
  • "generic.armor"
  • "generic.armor_toughness"
  • "generic.luck"
  • "zombie.spawn_reinforcements"
  • "horse.jump_strength"

Operation (required)

This is the operation to perform on the attribute. This is a string. It can be:

Types
  • "ADDITION"
  • "MULTIPLY_BASE"
  • "MULTIPLY_TOTAL"

Value (default 0)

This is the value of the modification. This is a double.

Name (required)

This is the name of the modifier. It can be anything. This is a string.

UUID (defaults to a random one)

This is the UUID of the modifier. It should be unique.

Slot (defaults to none)

This is the equipment slot that this modifier is effective for. This is a string. It can be:

Types
  • "MAINHAND"
  • "OFFHAND"
  • "FEET"
  • "LEGS"
  • "CHEST"
  • "HEAD"
⚠️ **GitHub.com Fallback** ⚠️