Unique identifier for this mob type (e.g. "dragon", "goblin")
Mob configuration (health, speed, hostile, model, drops, sounds, AI, etc.)
The mob definition index, used internally to spawn this mob type
Spawn a mob instance at the given world coordinates.
Mob type key (e.g. "zombie") or definition index from register()
World X coordinate
World Y coordinate
World Z coordinate
The spawned mob's runtime ID, or -1 if the mob type was not found
Remove a specific mob from the world.
Runtime mob ID returned by spawn()
Get the number of living mobs of a given type.
Mob type key or definition index
Current count of this mob type in the world
Get the world position of a mob.
Runtime mob ID
Position as {x, y, z}, or null if the mob does not exist
Get the current health of a mob.
Runtime mob ID
Current health, or null if the mob does not exist
Deal damage to a mob, reducing its health.
Runtime mob ID
Damage points to inflict
Remaining health after damage, or null if the mob does not exist
Heal a mob, increasing its health.
Runtime mob ID
Health points to restore
New health after healing, or null if the mob does not exist
Teleport a mob to a new position.
Runtime mob ID
World X coordinate
World Y coordinate
World Z coordinate
Set a mob's health to an exact value.
Runtime mob ID
New health value
Get a list of all living mobs in the world.
Array of mob info objects with id, defIndex, position, and health
Enable automatic mob spawning based on registered spawn rules.
Disable automatic mob spawning (mobs already alive stay).
Remove all living mobs from the world.
Tame a mob so it follows and defends the player.
Runtime mob ID
True if the mob was successfully tamed
Check whether a mob is tamed.
Runtime mob ID
True if the mob is tamed
Make a tamed mob sit or stand.
Runtime mob ID
True to sit, false to stand and follow
Feed a mob with a food item (triggers breeding in love-mode mobs).
Runtime mob ID
Item type ID of the food
True if the mob accepted the food
Check whether a mob is a baby.
Runtime mob ID
True if the mob is a baby
Check whether a mob is in love mode (ready to breed).
Runtime mob ID
True if the mob is in love mode
Register a custom mob type with the given key and options.