1. Wiki
  2. /Entities
  3. /minecraft:strength

minecraft:strength

Don't want to write this by hand? GodCraft sets minecraft:strength for you with a switch.Get GodCraft

Overview

minecraft:strength is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Sets how strong the entity is, which decides how many items it can carry, like a llama's chest size.

Fields

FieldTypeDefaultDescription
maxInteger"5"The highest strength this entity can have.
valueInteger"1"The strength the entity starts with.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:strength": {
    "max": "5",
    "value": "1"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more