Mob/ED

From Minecraft Wiki
< Mob
Jump to: navigation, search

All parameters from Entity

    •  Health: Amount of health the entity has.
    •  AbsorptionAmount: Amount of extra health added by Absorption effect.
    •  HurtTime: Number of ticks the mob turns red for after being hit. 0 when not recently hit.
    •  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.
    •  DeathTime: Number of ticks the mob has been dead for. Controls death animations. 0 when alive.
    •  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.
    •  SleepingX: The X coordinate of where the entity is sleeping, absent if not sleeping.
    •  SleepingY: The Y coordinate of where the entity is sleeping, absent if not sleeping.
    •  SleepingZ: The Z coordinate of where the entity is sleeping, absent if not sleeping.
    •  Brain: Everything this entity has to keep in mind.
      •  memories: Empty for all but villagers and piglins.
        •  minecraft:meeting_point: Where this villager's meeting point is.
          •  value: The value of this memory.
            •  pos: The X Y and Z values of the meeting point.
            •  dimension: The dimension ID of the meeting point.
        •  minecraft:home: Where this villager's bed is or where the piglin brute's patrol point is.
          •  value: The value of this memory.
            •  pos: The X Y and Z values of the bed.
            •  dimension: The dimension ID of the bed.
        •  minecraft:job_site: Where this villager's job site block is.
          •  value: The value of this memory.
            •  pos: The X Y and Z values of the job site block.
            •  dimension: The dimension ID of the job site block.
        •  minecraft:last_slept: The tick that the villager last slept in a bed.
          •  value: The value of this memory.
        •  minecraft:last_woken: The tick that the villager last woke up from a bed.
          •  value: The value of this memory.
        •  minecraft:last_worked_at_poi: The tick that the villager last worked at their job site.
          •  value: The value of this memory.
        •  minecraft:angry_at: The target of this piglin or this piglin brute.
          •  value: Universally Unique IDentifier of the entity that the piglin targets, stored as four ints.
          •  ttl: The amount of ticks before this memory is removed.
        •  minecraft:admiring_item: If the piglin is admiring an item.
          •  value: 1 or 0 (true/false) - true if admiring an item.
          •  ttl: The amount of ticks before this memory is removed, the piglin throws back another item when this reaches 0, if it held a gold ingot.
        •  minecraft:admiring_disabled: If the piglin can admire an item at this moment, set when being converting, when hurt or after just admiring an item.
          •  value: 1 or 0 (true/false) - true if admiring is disabled.
          •  ttl: The amount of ticks before this memory is removed.
        •  minecraft:hunted_recently: If the piglin just hunted, and as such, won't for a while. Set after hunting or spawning in a bastion remnant.
          •  value: 1 or 0 (true/false) - true if the piglin just hunted and cannot hunt.
          •  ttl: The amount of ticks before this memory is removed.
    •  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.
      • An individual Attribute.
        •  Name: The name of this Attribute.
        •  Base: The base value of this Attribute.
        •  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.
          • An individual Modifier.
            •  Name: The Modifier's name.
            •  Amount: The amount by which this Modifier modifies the Base value in calculations.
            •  Operation: 0, 1, or 2. Defines the operation this Modifier executes on the Attribute's Base value. 0: Increment X by Amount, 1: Increment Y by X * Amount, 2: Y = Y * (1 + Amount) (equivalent to Increment Y by Y * Amount). The game first sets X = Base, then executes all Operation 0 modifiers, then sets Y = X, then executes all Operation 1 modifiers, and finally executes all Operation 2 modifiers.
            •  UUID: This modifier's Universally Unique IDentifier, stored as four ints. Used to identify the modifier so that the correct modifier can be added or removed.
    •  ActiveEffects: The list of potion effects on this mob. May not exist.
      • A potion effect
        •  Id: The numerical effect ID.
        •  Amplifier: The potion effect level. 0 is level 1.
        •  Duration: The number of ticks before the effect wears off.
        •  Ambient: 1 or 0 (true/false) - true if this effect is provided by a Beacon and therefore should be less intrusive on screen.
        •  ShowParticles: 1 or 0 (true/false) - true if particles are shown (affected by "Ambient"). false if no particles are shown.
        •  ShowIcon: 1 or 0 (true/false) - true if effect icon is shown. false if no icon is shown.
        •  HiddenEffect: 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)
          •  HiddenEffect: The same as the above compound, recursively.
          •  Amplifier: The potion effect level. 0 is level 1.
          •  Duration: The number of ticks before the effect wears off.
          •  Ambient: 1 or 0 (true/false) - true if this effect is provided by a Beacon and therefore should be less intrusive on screen.
          •  ShowParticles: 1 or 0 (true/false) - true if particles are shown (affected by "Ambient"). false if no particles are shown.
          •  ShowIcon: 1 or 0 (true/false) - true if effect icon is shown. false if no icon is shown.
    •  HandItems: The list of items the mob is holding, in the following order: Main hand, Off hand.
    •  ArmorItems: The list of items the mob is wearing as armor, in the following order: feet, legs, chest, head.
    •  HandDropChances: List of float values representing the chance for a handheld item to drop.
      • : Chance to drop the item being carried in the main hand.
      • : Chance to drop the item being carried in the off hand.
    •  ArmorDropChances: List of float values representing the chance for a worn armor item to drop.
      • : Chance to drop the item being worn in the feet slot.
      • : Chance to drop the item being worn in the legs slot.
      • : Chance to drop the item being worn in the chest slot.
      • : Chance to drop the item being worn in the head slot.
    •  DeathLootTable: Optional. Loot table to be used for the items that drop when the entity is killed.
    •  DeathLootTableSeed: Optional. Seed for generating the loot table. If 0 or omitted, a random seed is used.
    •  CanPickUpLoot: 1 or 0 (true/false) - true if the mob can pick up loot (wear armor it picks up, use weapons it picks up).
    •  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.
    •  PersistenceRequired: 1 or 0 (true/false) - true if the mob must not despawn naturally.
    •  LeftHanded: 1 or 0 (true/false) - true if the mob renders the main hand as being left.
    •  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.
    •  Leash: Either contains a UUID int array, if this leash connects to another entity, or an X, Y, Z int trio if this leash connects to a fencepost. Does not exist if the entity is not leashed.
      •  UUID: The Universally Unique IDentifier of the entity this leash connects to, stored as four ints.
      •  X: The X coordinate of the fence this leash connects to.
      •  Y: The Y coordinate of the fence this leash connects to.
      •  Z: The Z coordinate of the fence this leash connects to.