Minecraft:Entity format/Entity: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
** {{nbt|string|id}}: [[Minecraft:Resource location#Conversion to string|Namespaced ID]] of the entity's [[Minecraft:Java Edition data values#Entities|entity type]]. Does not exist for entities in the world, only stored entities (such as in [[Minecraft:data components]]). | ** {{nbt|string|id}}: [[Minecraft:Resource location#Conversion to string|Namespaced ID]] of the entity's [[Minecraft:Java Edition data values#Entities|entity type]]. Does not exist for entities in the world, only stored entities (such as in [[Minecraft:data components]]). | ||
** {{nbt|bool|Invulnerable}}: {{nbt boolean}} - if <code>true</code>, 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. | ** {{nbt|bool|Invulnerable}}: {{nbt boolean}} - if <code>true</code>, 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. | ||
** {{nbt|int|invulnerable_time}}: | ** {{nbt|int|invulnerable_time}}: Optional, removed if zero or less. When greater than zero, the entity is invulnerable for that many ticks. This behaves the same as setting {{nbt|bool|Invulnerable}} to {{cd|true}}, and the two fields can be enabled or disabled independently. The entity is invulnerable when either {{nbt|bool|Invulnerable}} is {{cd|true}}, {{nbt|int|invulnerable_time}} is positive, or both. Decreases by one every tick. When a [[Minecraft:cushion]] is struck by lightning, the dropped item has this set to {{convert|20|game ticks|seconds}}. When a [[Minecraft:skeleton trap]] is triggered, the three newly spawned [[Minecraft:skeleton]]s and [[Minecraft:skeleton horse]]s have this set to {{convert|60|game ticks|seconds}}. | ||
** {{nbt|list|Motion}}: List of 3 {{nbt|double|}} doubles describing the current {{cd|dX|dY|dZ|d=and}} velocity of the entity in meters per game tick. Only allows between 10.0 and -10.0 (inclusive), else resets to 0. | ** {{nbt|list|Motion}}: List of 3 {{nbt|double|}} doubles describing the current {{cd|dX|dY|dZ|d=and}} velocity of the entity in meters per game tick. Only allows between 10.0 and -10.0 (inclusive), else resets to 0. | ||
** {{nbt|bool|NoGravity}}: {{nbt boolean}} - if <code>true</code>, the entity does not fall down naturally. Does not exist if set to false. Set to <code>true</code> by striders in lava. | ** {{nbt|bool|NoGravity}}: {{nbt boolean}} - if <code>true</code>, the entity does not fall down naturally. Does not exist if set to false. Set to <code>true</code> by striders in lava. | ||
| Line 25: | Line 25: | ||
** {{nbt|bool|Silent}}: {{nbt boolean}} - if <code>true</code>, this entity is silenced. May not exist. | ** {{nbt|bool|Silent}}: {{nbt boolean}} - if <code>true</code>, this entity is silenced. May not exist. | ||
** {{nbt|list|Tags}}: List of [[Minecraft:Scoreboard#Tags|scoreboard tags]] of this entity. It is not preserved if it is removed. | ** {{nbt|list|Tags}}: List of [[Minecraft:Scoreboard#Tags|scoreboard tags]] of this entity. It is not preserved if it is removed. | ||
** {{nbt|int|TicksFrozen}}: Optional. How many game ticks the entity has been | ** {{nbt|int|TicksFrozen}}: Optional. How many game ticks the entity has been freezing (by [[Minecraft:powder snow]] or [[Minecraft:freezing|effect]]{{Upcoming|Java 26.4}}). Increases while in powder snow or with freezing effect{{Upcoming|Java 26.4}}, even partially, up to a maximum of {{convert|140|game ticks|seconds}}, and decreases at double speed while not in powder snow. Although this tag is defined for all entities, [[Minecraft:sulfur cube]] that has absorbed a block, entities equipped with an item in the tag {{tag link|item|freeze_immune_wearables}}, [[Minecraft:skeleton]]s, entities in the tag {{tag link|entity type|freeze_immune_entity_types}}, and non-[[Minecraft:living entities]] are not affected by freezing. | ||
** {{nbt|int-array|UUID}}: This entity's [[Minecraft:Universally Unique IDentifier]]. The 128-bit UUID is stored as four 32-bit integers ({{nbt|int|Ints}}), ordered from most to least significant. | ** {{nbt|int-array|UUID}}: This entity's [[Minecraft:Universally Unique IDentifier]]. The 128-bit UUID is stored as four 32-bit integers ({{nbt|int|Ints}}), ordered from most to least significant. | ||
</onlyinclude></div><noinclude> | </onlyinclude></div><noinclude> | ||
| Line 32: | Line 32: | ||
[[Minecraft:ja:Chunkフォーマット/Entity]] | [[Minecraft:ja:Chunkフォーマット/Entity]] | ||
[[Minecraft:ko:청크 형식/개체]] | [[Minecraft:ko:청크 형식/개체]] | ||
[[Minecraft:pt:Formato de chunk/Entidade]] | [[Minecraft:pt:Formato de chunk/Entidade]] | ||
[[Minecraft:ru:Формат чанка/Сущность]] | [[Minecraft:ru:Формат чанка/Сущность]] | ||
Latest revision as of 11:12, 14 October 2026
- Template:Nbt: How much air the entity has, in game ticks. Decreases when unable to breathe (except suffocating in a block). Increases when it can breathe. Template:Nbt being
<= -20game ticks (while still unable to breathe) on a given game tick causes the entity to immediately lose 1 health to Minecraft:drowning damage. This resets Template:Nbt to 0 game ticks. Most mobs can have a maximum of Template:Convert of Template:Nbt, while dolphins can reach up to Template:Convert, and axolotls have Template:Convert. - Template:NbtTemplate:NbtTemplate:Nbt: The custom name Minecraft: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. Represents the Template:DCL component.
- Template:Nbt: Template:Nbt boolean - 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. - Template:Nbt: Optional arbitrary NBT data. Is removed if empty. Represents the Template:DCL component.
- Template:Nbt: Distance the entity has fallen. Larger values cause more damage when the entity lands.
- Template:Nbt: Number of game ticks until the fire is put out. Negative values reflect how long the entity can stand in fire before burning. Default to -20 when not on fire.
- Template:Nbt: Template:Nbt boolean - if
true, the entity has a glowing outline. - Template:Nbt: Template:Nbt boolean - if
true, the entity visually appears on fire, even if it is not actually on fire. - Template:Nbt: Namespaced ID of the entity's entity type. Does not exist for entities in the world, only stored entities (such as in Minecraft:data components).
- Template:Nbt: Template:Nbt boolean - if
true, 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. - Template:Nbt: Optional, removed if zero or less. When greater than zero, the entity is invulnerable for that many ticks. This behaves the same as setting Template:Nbt to Template:Cd, and the two fields can be enabled or disabled independently. The entity is invulnerable when either Template:Nbt is Template:Cd, Template:Nbt is positive, or both. Decreases by one every tick. When a Minecraft:cushion is struck by lightning, the dropped item has this set to Template:Convert. When a Minecraft:skeleton trap is triggered, the three newly spawned Minecraft:skeletons and Minecraft:skeleton horses have this set to Template:Convert.
- Template:Nbt: List of 3 Template:Nbt doubles describing the current Template:Cd velocity of the entity in meters per game tick. Only allows between 10.0 and -10.0 (inclusive), else resets to 0.
- Template:Nbt: Template:Nbt boolean - if
true, the entity does not fall down naturally. Does not exist if set to false. Set totrueby striders in lava. - Template:Nbt: Template:Nbt boolean - if
true, the entity is touching the ground. - Template:Nbt: The data of the entities that are riding this entity.
- Template:Nbt: The same as this format (recursive). Note that each passenger entity, and the ridden entity (the vehicle) have equal control of the movement of the ridden entity. The topmost entity controls spawning conditions when the vehicle entity is created by a mob spawner.
- Template:Nbt inherit/entity
- Tags unique to this passenger entity.
- Template:Nbt: The same as this format (recursive). Note that each passenger entity, and the ridden entity (the vehicle) have equal control of the movement of the ridden entity. The topmost entity controls spawning conditions when the vehicle entity is created by a mob spawner.
- Template:Nbt: The number of game ticks before which the entity may be teleported back through a nether portal. Initially starts at Template:Convert after teleportation and counts down to 0.
- Template:Nbt: List of 3 Template:Nbt doubles describing the current X, Y, and Z position (Minecraft:coordinates) of the entity.
- Template:Nbt: List of 2 Template:Nbt floats representing the entity's server-side rotation (facing direction). This does not necessarily match with the direction that the mob is looking in on the client's side. The yaw and pitch are stored inverted for most projectile entities.
- Template:Nbt: The entity's yaw. Yaw is rotation about the Y axis. It is measured in degrees and ranges from -180 to +180. The yaw increases as the entity turns clockwise (right from their perspective). A yaw of 0 means the entity is facing south. See table of specific values here: Rotation (yaw).
- Template:Nbt: The entity's pitch. Pitch is rotation about the local X axis after yaw is applied. It is measured in degrees and ranges from -90 to +90. A pitch of 0 means the entity is facing parallel to the ground or directly towards the horizon. The pitch increases as the entity looks downwards, so a pitch of 90 is facing directly down and a pitch of -90 facing directly up.
- Template:Nbt: Template:Nbt boolean - if
true, this entity is silenced. May not exist. - Template:Nbt: List of scoreboard tags of this entity. It is not preserved if it is removed.
- Template:Nbt: Optional. How many game ticks the entity has been freezing (by Minecraft:powder snow or effectTemplate:Upcoming). Increases while in powder snow or with freezing effectTemplate:Upcoming, even partially, up to a maximum of Template:Convert, and decreases at double speed while not in powder snow. Although this tag is defined for all entities, Minecraft:sulfur cube that has absorbed a block, entities equipped with an item in the tag Template:Tag link, Minecraft:skeletons, entities in the tag Template:Tag link, and non-Minecraft:living entities are not affected by freezing.
- Template:Nbt: This entity's Minecraft:Universally Unique IDentifier. The 128-bit UUID is stored as four 32-bit integers (Template:Nbt), ordered from most to least significant.
- Template:Nbt: How much air the entity has, in game ticks. Decreases when unable to breathe (except suffocating in a block). Increases when it can breathe. Template:Nbt being
Minecraft:fr:Format de chunk/Entité Minecraft:ja:Chunkフォーマット/Entity Minecraft:ko:청크 형식/개체 Minecraft:pt:Formato de chunk/Entidade Minecraft:ru:Формат чанка/Сущность Minecraft:th:Chunk format/Entity Minecraft:uk:Формат чанку/Сутність