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 the entitydata command, 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.
        •  minecraft:meeting_point: Where this villager's meeting point is.
          •  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.
          •  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.
          •  pos: The X Y and Z values of the job site block.
          •  dimension: The dimension ID of the job site block.
    •  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.
            •  UUIDMost: The most significant bits of this Modifier's Universally Unique IDentifier. Used to reference modifiers in memory and ensure duplicates are not applied.
            •  UUIDLeast: The least significant bits of this Modifier's Universally Unique IDentifier.
    •  ActiveEffects: The list of potion effects on this mob. May not exist.
      • A potion effect
        •  Id: The 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.
    •  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.
    •  Leashed: 1 or 0 (true/false) - whether the mob is leashed.
    •  Leash: Either contains a UUID long pair, if this leash connects to another entity, or an X, Y, Z int trio if this leash connects to a fencepost.
      •  UUIDMost: The most significant bits of the Universally Unique IDentifier of the entity this leash connects to.
      •  UUIDLeast: The least significant bits of the Universally Unique IDentifier of the entity this leash connects to.
      •  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.