- [Float] AbsorptionAmount: number of extra health added by Absorption effect.
- [NBT List / JSON Array] active_effects: The list of potion effects on this mob. May not exist.
- [NBT Compound / JSON Object] A potion effect
- [Boolean] ambient: 1 or 0 (
true
/false
) - if true
, this effect is provided by a Beacon and therefore should be less intrusive on screen.
- [Byte] amplifier: The potion effect level. 0 is level 1.
- [Int] duration: The number of game ticks before the effect wears off. -1 when infinite.
- [NBT Compound / JSON Object] hidden_effect: Lower amplifier effect of the same type, this replaces the above effect when it expires. (The duration of the effect still decreases in here too)
- [String] id: The effect name.
- [Boolean] show_icon: 1 or 0 (
true
/false
) - if true
, effect icon is shown; if false
, no icon is shown.
- [Boolean] show_particles: 1 or 0 (
true
/false
) - if true
, particles are shown (affected by ambient
); if false
, no particles are shown.
- [NBT List / JSON Array] attributes: A list of Attributes for this mob. These are used for many purposes in internal calculations, and can be considered a mob's "statistics". Valid attributes for a given mob are listed in the main article.
- [NBT Compound / JSON Object] An individual attribute.
- [String] id: The name of this attribute.
- [Double] base: The base value of this attribute.
- [NBT List / JSON Array] modifiers: A list of Modifiers acting on this attribute. Modifiers alter the base value in internal calculations, without changing the original copy. Note that a modifier never modifies base to be higher than its maximum or lower than its minimum for a given attribute.
- [NBT Compound / JSON Object] An individual modifier.
- [Double] amount: The amount by which this modifier modifies the base value in calculations.
- [String] id: A Resource location unique to this modifier. Used to identify the modifier so that the correct modifier can be added or removed.
- [String] operation:
add_value
, add_multiplied_base
, add_multiplied_total
. Defines the operation this modifier executes on the attribute's base value.
add_value
: Increment X
byAmount
.
add_multiplied_base
: Increment Y
byX*Amount
.
add_multiplied_total
: Set Y = Y * (1 + Amount)
(equivalent to Increment Y
byY * Amount
).
- The specified modifiers are applied to the attribute, probably whenever the attribute is modified.[more information needed] To compute the effective value of the attribute, the game:
- Sets
X = Base
.
- Executes all add_value modifiers.
- Sets
Y = X
.
- Executes all add_multiplied_base modifiers.
- Executes all add_multiplied_total modifiers.
- [NBT Compound / JSON Object] Brain: Everything this entity has to keep in mind.
- [NBT Compound / JSON Object] memories: Used for complex behaviors.[more information needed] The only mobs that have this tag are described below.
Piglin memories:
- [NBT Compound / JSON Object] minecraft:admiring_disabled: Piglins with this tag do not barter by right-clicking and are not distracted by gold items on the ground; set when converting, when attacked or when admiring an item.
- [Boolean] value: 1 or 0 (
true
/false
) - if true
, admiring is disabled.
- [Long] ttl: The number of game ticks before this memory is removed.
- [NBT Compound / JSON Object] minecraft:admiring_item: If the piglin is admiring an item.
- [Boolean] value: 1 or 0 (
true
/false
) - if true
, admiring an item.
- [Long] ttl: The number of game ticks before this memory is removed, the piglin throws back another item when this reaches 0, if it held a gold ingot.
- [NBT Compound / JSON Object] minecraft:angry_at: The target of this piglin or this piglin brute.
- [Int Array] value: Universally Unique IDentifier of the entity that the piglin targets, stored as four ints.
- [Long] ttl: The number of game ticks before this memory is removed.
- [NBT Compound / JSON Object] minecraft:hunted_recently: If the piglin just hunted, and as such, don't hunt for a while. Set after hunting or spawning in a bastion remnant.
- [Boolean] value: 1 or 0 (
true
/false
) - if true
, the piglin just hunted and cannot hunt.
- [Long] ttl: The number of game ticks before this memory is removed.
- [NBT Compound / JSON Object] minecraft:universal_anger: If the piglin is being universally angered. Only used when universal anger gamerule is enabled.
- [Boolean] value: 1 or 0 (
true
/false
) - if true
, universally angered.
- [Long] ttl: The number of game ticks before this memory is removed.
Warden memories:
- [NBT Compound / JSON Object] minecraft:is_emerging: Exists if the warden is emerging.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [NBT Compound / JSON Object] minecraft:dig_cooldown: The warden doesn't dig down if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 1200 game ticks (60 seconds).
- [NBT Compound / JSON Object] minecraft:is_sniffing: Exists if the warden is sniffing.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [NBT Compound / JSON Object] minecraft:recent_projectile: Exists if the warden was stimulated by a projectile recently.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 100 game ticks (5 seconds).
- [NBT Compound / JSON Object] minecraft:roar_sound_cooldown: The warden doesn't roar if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 60 game ticks (3 seconds).
- [NBT Compound / JSON Object] minecraft:roar_sound_delay: The warden doesn't roar if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 25 game ticks (1.25 seconds).
- [NBT Compound / JSON Object] minecraft:touch_cooldown: The warden doesn't increase anger at an entity by touching it if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 20 game ticks (1 second).
- [NBT Compound / JSON Object] minecraft:vibration_cooldown: The warden doesn't listen for vibrations if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 40 game ticks (2 seconds).
Camel memories:
- [NBT Compound / JSON Object] minecraft:gaze_cooldown_ticks: Optional. If the camel is in a cool down for randomly looking around.
- [Int] value: The number of game ticks before the camel can randomly look around again and this tag is removed.
Axolotl memories:
- [NBT Compound / JSON Object] minecraft:has_hunting_cooldown: If the axolotl is in a hunting cooldown [needs testing].
- [Boolean] value: 1 or 0 (
true
/false
) - if true
, the axolotl just hunted.
- [Long] ttl: The number of game ticks before this memory is removed.
- [NBT Compound / JSON Object] minecraft:play_dead_ticks: Optional. If the axolotl is pretending to be dead.
- [Int] value: The number of game ticks before the axolotl stops to play dead and this tag is removed.
Villager memories:
- [NBT Compound / JSON Object] minecraft:home: Where this villager's bed is or where the piglin brute's patrol point is.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the bed or of the patrol point.
- [Int Array] pos: The X, Y, and Z coordinates of the bed or the patrol point
- [NBT Compound / JSON Object] minecraft:job_site: Where this villager's job site block is.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the job site block.
- [Int Array] pos: The X, Y, and Z coordinates of the job site block.
- [NBT Compound / JSON Object] minecraft:last_slept: The game tick that the villager last slept in a bed.
- [Long] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:last_woken: The game tick that the villager last woke up from a bed.
- [Long] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:last_worked_at_poi: The game tick that the villager last worked at their job site.
- [Long] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:meeting_point: Where this villager's meeting point is.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the meeting point.
- [Int Array] pos: The X, Y, and Z coordinates of the meeting point.
- [NBT Compound / JSON Object] minecraft:potential_job_site: Where this villager's potential job site block is.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the potential job site block.
- [Int Array] pos: The X, Y, and Z coordinates of the potential job site block.
- [NBT Compound / JSON Object] minecraft:golem_detected_recently: If the villager has detected an iron golem recently.
- [Boolean] value: 1 or 0 (
true
/false
) - if true
, the villager just saw an iron golem.
- [Long] ttl: The number of game ticks before this memory is removed.
Frog memories:
- [NBT Compound / JSON Object] minecraft:is_in_water: Only exists if the frog is in water.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [NBT Compound / JSON Object] minecraft:is_pregnant: Only exists if the frog is pregnant.
- [NBT Compound / JSON Object] value: An empty compound tag.
Allay memories:
- [NBT Compound / JSON Object] minecraft:item_pickup_cooldown_ticks: The number of game ticks before the allay goes to pick up item again.
- [Int] value: The value of this memory, initially set to 100 game ticks (5 seconds), decreasing by 1 every tick.
- [NBT Compound / JSON Object] minecraft:liked_noteblock: The note block that the allay likes.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The ID of the dimension where the note block is.
- [Int Array] pos: The X, Y, and Z coordinates of the note block.
- [NBT Compound / JSON Object] minecraft:liked_noteblock_cooldown_ticks: The number of ticks before the allay stops putting items at the liked note block.
- [Int] value: The value of this memory, initially set to 600 game ticks (30 seconds), decreasing by 1 every tick.
- [NBT Compound / JSON Object] minecraft:liked_player: The player that the allay likes.
- [Int Array] value: The player's UUID, stored as four ints.
Goat memories:
- [NBT Compound / JSON Object] minecraft:long_jump_cooling_down: Optional. If the goat is in a cool down after a long jump.
- [Int] value: The number of game ticks before the goat can long jump again and this tag is removed.
- [NBT Compound / JSON Object] minecraft:ram_cooldown_ticks: Optional. If the goat is in a cool down after ram.
- [Int] value: The number of game ticks before the goat can ram again and this tag is removed.
Sniffer memories:
- [NBT Compound / JSON Object] minecraft:sniffer_explored_positions: The last 20 positions in which the sniffer has dug, cannot dig in these positions.
- [Int Array] value: The coordinates of a block at which the sniffer has dug. Can have up to 20 blocks stored.
- Memories shared by multiple mobs:
- [NBT Compound / JSON Object] minecraft:is_tempted: If the axolotl, camel, or goat is tempted by the player.
- [Boolean] value: 1 or 0 (
true
/false
) - if true
, the mob is tempted.
- [NBT Compound / JSON Object] minecraft:sniff_cooldown: The warden and sniffer don't sniff if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 100 game ticks (5 seconds).
- [NBT Compound / JSON Object] minecraft:temptation_cooldown_ticks: Optional. If the axolotl, camel, or goat is in a cool down after being tempted.
- [Int] value: The number of game ticks before the mob can be tempted again and this tag is removed.
- [Boolean] CanPickUpLoot: 1 or 0 (
true
/false
) - if true
, the mob can pick up loot (wear armor it picks up, use weapons it picks up).
- [Short] DeathTime: Number of ticks the mob has been dead for. Controls death animations. 0 when alive.
- [NBT Compound / JSON Object] drop_chances: Map between equipment slot type and chance value. If not specified or removed, chance is assumed as default (0.085f).
- [Float] head : Chance value for the head item to drop.
- [Float] chest : Chance value for the chest item to drop.
- [Float] legs : Chance value for the legs item to drop.
- [Float] feet : Chance value for the feet item to drop.
- [Float] mainhand : Chance value for the mainhand item to drop.
- [Float] offhand : Chance value for the offhand item to drop.
- [Float] body : Chance value for the body item to drop.
- [Float] saddle : Chance value for the saddle item to drop.
- [NBT Compound / JSON Object] equipment: Map between equipment slot type and item stack.
- [NBT Compound / JSON Object] head: The item being held in mob's head slot.
- [NBT Compound / JSON Object] chest: The item being held in the mob's chest slot.
- [NBT Compound / JSON Object] legs: The item being held in the mob's legs slot.
- [NBT Compound / JSON Object] feet: The item being held in the mob's feet slot.
- [NBT Compound / JSON Object] mainhand: The item being held in the mob's main hand.
- [NBT Compound / JSON Object] offhand: The item being held in the mob's off hand.
- [NBT Compound / JSON Object] body: The item being held in the mob's body slot.
- [NBT Compound / JSON Object] saddle: The item being held in the mob's saddle slot.
- [Byte] FallFlying: Setting to 1 for non-player entities causes the entity to glide as long as they are wearing elytra in the chest slot. Can be used to detect when the player is gliding without using scoreboard statistics.
- [Float] Health: number of health the entity has.
- [Int] HurtByTimestamp: The last time the mob was damaged, measured in the number of ticks since the mob's creation. Updates to a new value whenever the mob is damaged, then updates again 101 ticks later for reasons unknown. Can be changed with commands, but the specified value does not affect natural updates in any way, and is overwritten if the mob receives damage.
- [Short] HurtTime: Number of ticks the mob turns red for after being hit. 0 when not recently hit.
- [NBT Compound / JSON Object][Int Array] leash: Information about where this leash connects to. Does not exist if the entity is not leashed.
- The int array form ([Int Array]) represents the block location of the fence post that the leash is attached to (3 integers representing the X, Y, and Z coordinates respectively), or a compound containing information about the entity the leash is attached to.
- The compound form ([NBT Compound / JSON Object]) contains the UUID of the entity that the leash is attached to.
- [Int Array] UUID: This Universally Unique IDentifier of the entity that the leash is attached to.
- [Boolean] LeftHanded: 1 or 0 (
true
/false
) - if true
, the mob renders the main hand as being left.
- [Boolean] NoAI: 1 or 0 (
true
/false
) - Setting to true
disables the mob's AI. The mob does not and cannot move, to the extent of not falling when normally able.
- [Boolean] PersistenceRequired: 1 or 0 (
true
/false
) - if true
, the mob must not despawn naturally.
- [Int Array] sleeping_pos: The coordinate of where the entity is sleeping, absent if not sleeping.
- [String] Team: This tag is actually not part of the NBT data of a mob, but instead used when spawning it, so it cannot be tested for. It makes the mob instantly join the scoreboard team with that name.