Template:Nbt inherit/entity/template

From Minecraft Wiki
Jump to: navigation, search
    •  Air: How much air the entity has, in ticks. Fills to a maximum of 300 in air, giving 15 seconds submerged before the entity starts to drown, and a total of up to 35 seconds before the entity dies (if it has 20 health). Decreases while underwater. If 0 while underwater, the entity loses 1 health per second.
    •  CustomName: The custom name JSON text component of this entity. Appears in player death messages and villager trading interfaces, as well as above the entity when the player's cursor is over it. May be empty or not exist.
    •  CustomNameVisible: 1 or 0 (true/false) - if true, and this entity has a custom name, the name always appears above the entity, regardless of where the cursor points. If the entity does not have a custom name, a default name is shown. May not exist.
    •  FallDistance: Distance the entity has fallen. Larger values cause more damage when the entity lands.
    •  Fire: Number of ticks until the fire is put out. Negative values reflect how long the entity can stand in fire before burning. Default -20 when not on fire.
    •  Glowing: 1 or 0 (true/false) - true if the entity has a glowing outline.
    •  id: String representation of the entity's ID. Does not exist for the Player entity.
    •  Invulnerable: 1 or 0 (true/false) - true if the entity should not take damage. This applies to living and nonliving entities alike: mobs should not take damage from any source (including potion effects), and cannot be moved by fishing rods, attacks, explosions, or projectiles, and objects such as vehicles and item frames cannot be destroyed unless their supports are removed. Invulnerable player entities are also ignored by any hostile mobs. Note that these entities can be damaged by players in Creative mode.
    •  Motion: 3 TAG_Doubles describing the current dX, dY and dZ velocity of the entity in meters per tick.
    •  NoGravity: 1 or 0 (true/false) - if true, the entity does not fall down naturally. Set to true by striders in lava.
    •  OnGround: 1 or 0 (true/false) - true if the entity is touching the ground.
    •  Passengers: The data of the entity that is riding this entity. Note that both entities control movement and the topmost entity controls spawning conditions when created by a mob spawner.
      • See this format (recursive).
    •  PortalCooldown: The number of ticks before which the entity may be teleported back through a nether portal. Initially starts at 300 ticks (15 seconds) after teleportation and counts down to 0.
    •  Pos: 3 TAG_Doubles describing the current X, Y and Z position of the entity.
    •  Rotation: Two TAG_Floats representing rotation in degrees.
      • The entity's rotation clockwise around the Y axis (called yaw). Due south is 0. Does not exceed 360 degrees.
      • The entity's declination from the horizon (called pitch). Horizontal is 0. Positive values look downward. Does not exceed positive or negative 90 degrees.
    •  Silent: 1 or 0 (true/false) - if true, this entity is silenced. May not exist.
    •  Tags: List of scoreboard tags of this entity.
    •  UUID: This entity's Universally Unique IDentifier. The 128-bit UUID is stored as four 32-bit integers, ordered from most to least significant.