Minecraft:Block entity format: Difference between revisions
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 236: | Line 236: | ||
|{{HistoryLine|java beta}} | |{{HistoryLine|java beta}} | ||
|{{HistoryLine||1.2|Added <code>Trap</code> for dispensers. | |{{HistoryLine||1.2|Added <code>Trap</code> for dispensers. | ||
|Added <code>Music</code> note blocks.}} | |Added <code>Music</code> for note blocks.}} | ||
|{{HistoryLine||1.7|Added <code>Piston</code> for moving pistons.}} | |{{HistoryLine||1.7|Added <code>Piston</code> for moving pistons.}} | ||
|{{HistoryLine||1.8|dev=Pre-release|<code>Chest</code> | |{{HistoryLine||1.8|dev=Pre-release|<code>Chest</code> is now used to render chests newly changed model.}} | ||
|{{HistoryLine|java}} | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 3|Added <code>Cauldron</code> for brewing stands. | |{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 3|Added <code>Cauldron</code> for brewing stands. | ||
| Line 295: | Line 295: | ||
|{{HistoryLine||1.20.5|exp=Update 1.21|dev=24w05a|Added <code>vault</code> for vaults.}} | |{{HistoryLine||1.20.5|exp=Update 1.21|dev=24w05a|Added <code>vault</code> for vaults.}} | ||
|{{HistoryLine||1.21.2|exp=Winter Drop|dev=24w40a|Added <code>creaking_heart</code> for creaking heart.}} | |{{HistoryLine||1.21.2|exp=Winter Drop|dev=24w40a|Added <code>creaking_heart</code> for creaking heart.}} | ||
|{{HistoryLine|||dev=24w39a|Renamed <code>Lock</code> field in containers to <code>lock</code> | |{{HistoryLine|||dev=24w39a|Renamed <code>Lock</code> field in containers to <code>lock</code> as now it has become a compound that represents an item predicate.}} | ||
|{{HistoryLine||1.21.4|dev=Pre-Release 2|Some fields for <code>furnace</code>, <code>blast_furnace</code>, and <code>smoker</code> were changed: | |{{HistoryLine||1.21.4|dev=Pre-Release 2|Some fields for <code>furnace</code>, <code>blast_furnace</code>, and <code>smoker</code> were changed: | ||
* Renamed <code>CookTime</code> to <code>cooking_time_spent</code>. | * Renamed <code>CookTime</code> to <code>cooking_time_spent</code>. | ||
| Line 318: | Line 318: | ||
|{{HistoryLine|||dev=25w34a|Added <code>align_items_to_bottom</code> to <code>shelf</code>.}} | |{{HistoryLine|||dev=25w34a|Added <code>align_items_to_bottom</code> to <code>shelf</code>.}} | ||
|{{HistoryLine|java upcoming}} | |{{HistoryLine|java upcoming}} | ||
|{{HistoryLine||26.2|dev=snap3|<code>bed</code> | |{{HistoryLine||26.2|dev=snap3|Removed <code>bed</code> for beds.}} | ||
|{{HistoryLine|||dev=snap5|Added <code>potent_sulfur</code> for potent sulfur.}} | |{{HistoryLine|||dev=snap5|Added <code>potent_sulfur</code> for potent sulfur.}} | ||
}} | }} | ||
Revision as of 11:03, 7 May 2026
Template:Distinguish Template:Exclusive
A Minecraft:block entity is used to store information about a block that can't be stored in the block's Minecraft:block states. It is stored inside the chunk data and Minecraft:structure files.
NBT format
Block entities are stored using Minecraft:NBT in the following format:
- Template:Nbt: A block entity<section begin="nbt format" />
- Template:Nbt: Block entity ID
- Template:Nbt: 1 or 0 (Template:Cd) - If
true, this is an invalid block entity, and this block is not immediately placed when a loaded chunk is loaded. Iffalse, this is a normal block entity that can be immediately placed. - Template:Nbt: X coordinate of the block entity.
- Template:Nbt: Y coordinate of the block entity.
- Template:Nbt: Z coordinate of the block entity.
- Template:Nbt: Optional map of data components that are not represented by additional fields.
- See Template:Slink.<section end="nbt format" />
- Additional fields depending on the block entity type (Template:Nbt), see Template:Slink
Types
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
Template:Collapse
History
Template:Navbox Java Edition technical
Minecraft:ja:ブロックエンティティフォーマット Minecraft:ko:블록 개체 형식 Minecraft:uk:Формат блока-сутности Minecraft:zh:方块实体数据格式