Get the files on 9Minecraft
Functions are the actions applied to the mob once conditions are met. These can modify the mob's physical stats, inventory, or metadata.
Attribute Modification
You can modify the base attributes of any mob using the stats function. These values override the default Minecraft settings.
| Attribute | Description |
|---|---|
max_health |
The maximum HP of the mob. |
follow_range |
How far away the mob can track a target. |
knockback_resistance |
Resistance to being pushed back when hit. |
movement_speed |
The base travel speed of the entity. |
attack_damage |
The amount of damage dealt per hit (for hostile mobs). |
Potion Effects
The potion function applies status effects to the mob upon spawning. You can set the effect ID, duration, and amplifier (strength).
NBT Modification
For advanced users, the nbt function allows direct editing of the mob's NBT tags. This can be used to set specific Creeper fuse times, Sheep wool colors, or Villager
professions.












