Minecraft:Block entity: Difference between revisions
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
{{ | {{distinguish|Entity}} | ||
A '''block entity''' (also known as a '''tile entity''') is an additional object associated with certain [[Minecraft:block]]s. | A '''block entity''' (also known as a '''tile entity''') is an additional object associated with certain [[Minecraft:block]]s. | ||
== Usage == | == Usage == | ||
Block entities can store additional information about their block, beyond the finite set of block states that a block may have. For example, all blocks that can store items use a block entity for this purpose. Block entities can also tick, running code regularly while loaded, even when not interacted with directly. | Block entities can store additional information about their block, beyond the finite set of [[Minecraft:block states]] that a block may have. For example, all blocks that can store items use a block entity for this purpose. Block entities can also tick, running code regularly while loaded, even when not interacted with directly. | ||
Complex rendering not available to normal block | Complex rendering not available to normal [[Minecraft:block model]]s is also achieved with block entities. | ||
Blocks with block entities can be moved by [[Minecraft:piston]]s {{ | Blocks with block entities can be moved by [[Minecraft:piston]]s {{in|be}}, but not {{in|je}}. | ||
== List of block entities == | == List of block entities == | ||
| Line 16: | Line 16: | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Beehive}} | ||
* {{ | * {{BlockLink|Bee Nest}} | ||
| Stores | | Stores [[Minecraft:bee]]s and their entity data. | ||
* Ticks regularly to determine when the bees should exit. | * Ticks regularly to determine when the bees should exit. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Signs|id=oak sign}} | ||
* {{ | * {{BlockLink|Hanging Signs|id=oak hanging sign}} | ||
* {{ | * {{BlockLink|Chalkboard}}{{Only|be|ee|short=1}} | ||
* {{ | * {{BlockLink|Poster}}{{Only|be|ee|short=1}} | ||
* {{ | * {{BlockLink|Slate}}{{Only|be|ee|short=1}} | ||
| Stores written text. | | Stores written text. | ||
* Renders the text and the sign itself. | * Renders the text and the sign itself. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Sculk Sensor}} | ||
* {{ | * {{BlockLink|Calibrated Sculk Sensor}} | ||
| Stores the [[Minecraft:redstone]] signal strength. | | Stores the [[Minecraft:redstone]] signal strength. | ||
* Listens for nearby vibrations. | * Listens for nearby vibrations. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Sculk Catalyst}} | ||
| Stores xp levels. | | Stores [[Minecraft:Experience|xp levels]]. | ||
* Listens for nearby deaths, and spreads charges. | * Listens for nearby deaths, and spreads charges. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Sculk Shrieker}} | ||
| Stores the number of activations. | | Stores the number of activations. | ||
* Listens for nearby vibrations. | * Listens for nearby vibrations. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Banners}} | ||
| Stores color{{only|be|short=1}}, the patterns, and a custom name. | | Stores color{{only|be|short=1}}, the patterns, and a custom name. | ||
* Renders the banner with its patterns. | * Renders the banner with its patterns. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Chest}} | ||
* {{ | * {{BlockLink|Trapped Chest}} | ||
* {{ | * {{BlockLink|Shulker Box}} | ||
* {{ | * {{BlockLink|id=Shulker Boxes|Dyed Shulker Box}} | ||
* {{ | * {{BlockLink|Dispenser}} | ||
* {{ | * {{BlockLink|Dropper}} | ||
* {{ | * {{BlockLink|Barrel}} | ||
* {{ | * {{BlockLink|Chiseled Bookshelf}} | ||
* {{ | * {{BlockLink|Decorated Pot}} | ||
| Stores its contents and a custom name for the interface. | | Stores its contents and a custom name for the interface. | ||
* For [[Minecraft:chest]]s, trapped | * For [[Minecraft:chest]]s, [[Minecraft:trapped chest]]s and [[Minecraft:shulker box]]es, renders the opening and closing animation. | ||
* For decorated | * For [[Minecraft:decorated pot]]s, renders the wobble animation. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Furnace}} | ||
* {{ | * {{BlockLink|Smoker}} | ||
* {{ | * {{BlockLink|Blast Furnace}} | ||
* {{ | * {{BlockLink|Brewing Stand}} | ||
* {{ | * {{BlockLink|Campfire}} | ||
* {{ | * {{BlockLink|Soul Campfire}} | ||
| Stores its contents, the cooking and fuel times, and a custom name for the interface. | | Stores its contents, the cooking and fuel times, and a custom name for the interface. | ||
* Ticks regularly to advance the cooking time. | * Ticks regularly to advance the cooking time. | ||
| Line 77: | Line 77: | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Hopper}} | ||
| Stores its contents, the transfer cooldown, and a custom name for the interface. | | Stores its contents, the transfer cooldown, and a custom name for the interface. | ||
* Ticks regularly to advance the cooldown and search for items to pull. | * Ticks regularly to advance the cooldown and search for items to pull. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Lectern}} | ||
| Stores the page the book is currently on. | | Stores the page the book is currently on. | ||
* Renders the book. | * Renders the book. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Crafter}} | ||
| Stores its contents, which slots are disabled and the crafting cooldown. | | Stores its contents, which slots are disabled and the crafting cooldown. | ||
* Ticks regularly to advance the cooldown. | * Ticks regularly to advance the cooldown. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Beacon}} | ||
| Stores the pyramid level, active | | Stores the pyramid level, active [[Minecraft:effect]]s, and contents. | ||
* Ticks regularly to check for a valid pyramid, and apply effects to nearby players. | * Ticks regularly to check for a valid pyramid, and apply effects to nearby players. | ||
* Renders the [[Minecraft:beacon]] beam. | * Renders the [[Minecraft:beacon]] beam. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Creaking Heart}} | ||
| Stores the UUID of the transient creaking associated with this creaking heart. | | Stores the UUID of the transient creaking associated with this creaking heart. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Monster Spawner}} | ||
* {{ | * {{BlockLink|Trial Spawner}} | ||
| Stores: | | Stores: | ||
* - the entity to be | * - the entity to be [[Minecraft:Mob spawning|spawn]]ed | ||
* - the delay until the next entity is spawned, and the min and max values for the next spawn delay | * - the delay until the next entity is spawned, and the min and max values for the next spawn delay | ||
* - how many entities to spawn per spawn attempt | * - how many entities to spawn per spawn attempt | ||
* - additional data about the entity to be spawned (such as equipment, and status effects) | * - additional data about the entity to be spawned (such as equipment, and [[Minecraft:status effects]]) | ||
* - the loot reward for the trial spawner | * - the loot reward for the trial spawner | ||
* Ticks regularly to advance its cooldown, check for spawn conditions, and spawn mobs. | * Ticks regularly to advance its cooldown, check for spawn conditions, and spawn mobs. | ||
| Line 114: | Line 114: | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Vault}} | ||
| Stores its loot configuration and tracked players. | | Stores its loot configuration and tracked players. | ||
* Renders the spinning items inside. | * Renders the spinning items inside. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Note Block}}{{only|be|short=1}} | ||
| Stores the note to be played. | | Stores the note to be played. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Item Frame}}{{only|be|short=1}} | ||
* {{ | * {{BlockLink|Glow Item Frame}}{{only|be|short=1}} | ||
| Stores the contained [[Minecraft:item]]. | | Stores the contained [[Minecraft:item]]. | ||
* Renders the item. | * Renders the item. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Piston}} | ||
* {{ | * {{BlockLink|Sticky Piston}} | ||
| Stores the offset of block, and blocks that it should move or break.{{only|bedrock|short=1}} Also stores the moving process. | | Stores the offset of block, and blocks that it should move or [[Minecraft:break]].{{only|bedrock|short=1}} Also stores the moving process. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Moving Piston}} | ||
| Stores the offset of block{{only|java|short=1}}, direction of movement{{only|java|short=1}}, and ID of the moving block. | | Stores the offset of block{{only|java|short=1}}, direction of movement{{only|java|short=1}}, and ID of the moving block. | ||
* Renders the block. | * Renders the block. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Jukebox}} | ||
| Stores the contained music | | Stores the contained [[Minecraft:music disc]]s. | ||
* Regularly ticks to end the song when time has elapsed. | * Regularly ticks to end the song when time has elapsed. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Enchanting Table}} | ||
| Stores a custom name for the interface. | | Stores a custom name for the interface. | ||
* Renders the book animation. | * Renders the book animation. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|End Portal|link=End Portal (block)}} | ||
* {{ | * {{BlockLink|End Gateway|link=End Gateway (block)}} | ||
| Stores the destination location. | | Stores the destination location. | ||
* Renders the block. | * Renders the block. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Player Head}} | ||
* {{ | * {{BlockLink|Zombie Head}} | ||
* {{ | * {{BlockLink|Skeleton Skull}} | ||
* {{ | * {{BlockLink|Wither Skeleton Skull}} | ||
* {{ | * {{BlockLink|Creeper Head}} | ||
* {{ | * {{BlockLink|Dragon Head}} | ||
* {{ | * {{BlockLink|Piglin Head}} | ||
| For player | | For [[Minecraft:player head]]s, stores the player's skin information. | ||
* Renders the block. | * Renders the block. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockSprite|command-block}} {{BlockSprite|chain-command-block}} {{BlockSprite|repeating-command-block}} [[Minecraft:Command Block]] | ||
| Stores the command text, its output strength, and the output text. | | Stores the [[Minecraft:command]] text, its output strength, and the output text. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockSprite|structure-block-save}} {{BlockSprite|structure-block-corner}} {{BlockSprite|structure-block-data}} {{BlockSprite|structure-block-load}} [[Minecraft:Structure Block]] | ||
| Stores information about the structure. | | Stores information about the structure. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Jigsaw Block}} | ||
| Stores the structure pool and the block this jigsaw block becomes. | | Stores the structure pool and the block this jigsaw block becomes. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Nether Reactor Core}}{{only|be|short=1}} | ||
| Stores whether the reaction started and the time remaining in the reaction. | | Stores whether the reaction started and the time remaining in the reaction. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|id=Daylight Detectors|Daylight Detector}} | ||
| Ticks regularly to update its output signal strength. | | Ticks regularly to update its output signal strength. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Flower Pot}}{{only|be|short=1}} | ||
| Stores the ID and the data value of the block displayed inside of it. | | Stores the ID and the data value of the block displayed inside of it. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Redstone Comparator}} | ||
| Stores its output strength. | | Stores its output strength. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|id=red-bed|Bed}}{{until|JE 26.2}} | ||
| Stores its color{{only|bedrock|short=1}}. | | Stores its color{{only|bedrock|short=1}}. | ||
* Renders the block. | * Renders the block. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Cauldron}}{{only|be|short=1}} | ||
| Stores details about [[Minecraft:fluid|liquid]] content. Cauldrons containing [[Minecraft:Cauldron#Applying dye to cauldron water|dyed water]] store water color. Cauldrons containing [[Minecraft:Cauldron#Filling cauldrons with potions|potions]] store the potion's ID and a tag of whether it is a splash potion or not. | | Stores details about [[Minecraft:fluid|liquid]] content. Cauldrons containing [[Minecraft:Cauldron#Applying dye to cauldron water|dyed water]] store water color. Cauldrons containing [[Minecraft:Cauldron#Filling cauldrons with potions|potions]] store the potion's ID and a tag of whether it is a splash potion or not. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Conduit}} | ||
| Ticks regularly to check its activation area for valid activation blocks and apply effects to nearby players. | | Ticks regularly to check its activation area for valid activation blocks and apply effects to nearby players. | ||
* Renders the block. | * Renders the block. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Bell}} | ||
| Ticks regularly to apply the glowing effect to nearby raiders when used. | | Ticks regularly to apply the [[Minecraft:glowing]] effect to nearby raiders when used. | ||
* Renders the swaying animation. | * Renders the swaying animation. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Lodestone}}{{only|be|short=1}} | ||
| To link with a [[Minecraft:compass]]. | | To link with a [[Minecraft:compass]]. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Suspicious Sand}} | ||
* {{ | * {{BlockLink|Suspicious Gravel}} | ||
| Stores the loot table and contents. | | Stores the [[Minecraft:loot table]] and contents. | ||
* Renders the item while brushing. | * Renders the item while brushing. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Compound Creator}}{{only|be|ee|short=1}}<br>{{BlockLink|Element Constructor}}{{only|be|ee|short=1}}<br>{{BlockLink|Lab Table}}{{only|be|ee|short=1}}<br>{{BlockLink|Material Reducer}}{{only|be|ee|short=1}} | ||
| Stores the items in the lab table and the process of lab experiment. | | Stores the items in the lab table and the process of lab experiment. | ||
|- | |- | ||
| | | | ||
* {{ | * {{BlockLink|Ender chest}} | ||
| Renders the opening and closing animation. | | Renders the opening and closing animation. | ||
|- | |- | ||
|{{ | |{{BlockLink|Shelf}} | ||
| Stores and renders items. | | Stores and renders items. | ||
* Stores whether items should be centered or aligned to the bottom. | * Stores whether items should be centered or aligned to the bottom. | ||
|- | |- | ||
|{{ | |{{BlockLink|Copper Golem Statue}} | ||
| Renders the block. | | Renders the block. | ||
* Stores the golem's custom name. | * Stores the golem's custom name. | ||
| Line 240: | Line 240: | ||
== Render limits == | == Render limits == | ||
{{ | {{Exclusive|java|section=1}} | ||
Block entity rendering stops beyond a hard-coded block limit which is modeled after the radius of a sphere. This limit is ''not'' affected by the Render Distance nor the Entity Distance scale in the Video Settings. | Block entity rendering stops beyond a hard-coded block limit which is modeled after the radius of a sphere. This limit is ''not'' affected by the Render Distance nor the Entity Distance scale in the [[Minecraft:Video Settings]]. | ||
Some effects related to block entities stop rendering beyond a different number of blocks: | Some effects related to block entities stop rendering beyond a different number of blocks: | ||
* The [[Minecraft:beacon]] and [[Minecraft:End Gateway (block)|end gateway]] beams stop rendering beyond 256 blocks {{ | * The [[Minecraft:beacon]] and [[Minecraft:End Gateway (block)|end gateway]] beams stop rendering beyond 256 blocks {{in|JE}} or 64 blocks {{in|BE}} or when the end gateway is out of frame. | ||
* The outlines created by a structure block stop rendering beyond 96 blocks. | * The outlines created by a [[Minecraft:structure block]] stop rendering beyond 96 blocks. | ||
== See also == | == See also == | ||
* Block entity format – describes the save format for block entities | * [[Minecraft:Block entity format]] – describes the save format for block entities | ||
* Entities, which are all the dynamic, moving objects throughout the ''Minecraft'' world, plus several non-moving objects that resemble blocks. | * [[Minecraft:Entities]], which are all the dynamic, moving objects throughout the ''Minecraft'' world, plus several non-moving objects that resemble blocks. | ||
* Block states, which are, like block entities, extra pieces of data that further define a block. | * [[Minecraft:Block states]], which are, like block entities, extra pieces of data that further define a block. | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox Java Edition technical|general}} | ||
{{ | {{Navbox Bedrock Edition}} | ||
[[Category:Block entities| ]] | [[Category:Block entities| ]] | ||
de:Blockobjektdaten | [[Minecraft:de:Blockobjektdaten]] | ||
el:Block entity | [[Minecraft:el:Block entity]] | ||
es:Entidad de bloque | [[Minecraft:es:Entidad de bloque]] | ||
fr:Entité de bloc | [[Minecraft:fr:Entité de bloc]] | ||
hu:Blokkentitás | [[Minecraft:hu:Blokkentitás]] | ||
ja:ブロックエンティティ | [[Minecraft:ja:ブロックエンティティ]] | ||
ko:블록 개체 | [[Minecraft:ko:블록 개체]] | ||
nl:Segment formaat | [[Minecraft:nl:Segment formaat]] | ||
pl:Byty bloków | [[Minecraft:pl:Byty bloków]] | ||
pt:Bloco-entidade | [[Minecraft:pt:Bloco-entidade]] | ||
ru:Блок-сущность | [[Minecraft:ru:Блок-сущность]] | ||
uk:Блок-сутність | [[Minecraft:uk:Блок-сутність]] | ||
zh:方块实体 | [[Minecraft:zh:方块实体]] | ||
Latest revision as of 11:06, 15 April 2026
A block entity (also known as a tile entity) is an additional object associated with certain Minecraft:blocks.
Usage
Block entities can store additional information about their block, beyond the finite set of Minecraft:block states that a block may have. For example, all blocks that can store items use a block entity for this purpose. Block entities can also tick, running code regularly while loaded, even when not interacted with directly. Complex rendering not available to normal Minecraft:block models is also achieved with block entities. Blocks with block entities can be moved by Minecraft:pistons Template:In, but not Template:In.
List of block entities
These are the current blocks that hold block entities.
| Block Entity | Usage |
|---|---|
Stores Minecraft:bees and their entity data.
| |
Stores written text.
| |
Stores the Minecraft:redstone signal strength.
| |
Stores xp levels.
| |
Stores the number of activations.
| |
Stores colorTemplate:Only, the patterns, and a custom name.
| |
Stores its contents and a custom name for the interface.
| |
Stores its contents, the cooking and fuel times, and a custom name for the interface.
| |
Stores its contents, the transfer cooldown, and a custom name for the interface.
| |
Stores the page the book is currently on.
| |
Stores its contents, which slots are disabled and the crafting cooldown.
| |
Stores the pyramid level, active Minecraft:effects, and contents.
| |
| Stores the UUID of the transient creaking associated with this creaking heart. | |
Stores:
| |
Stores its loot configuration and tracked players.
| |
| Stores the note to be played. | |
Stores the contained Minecraft:item.
| |
| Stores the offset of block, and blocks that it should move or Minecraft:break.Template:Only Also stores the moving process. | |
Stores the offset of blockTemplate:Only, direction of movementTemplate:Only, and ID of the moving block.
| |
Stores the contained Minecraft:music discs.
| |
Stores a custom name for the interface.
| |
Stores the destination location.
| |
For Minecraft:player heads, stores the player's skin information.
| |
| Stores the Minecraft:command text, its output strength, and the output text. | |
| Stores information about the structure. | |
| Stores the structure pool and the block this jigsaw block becomes. | |
| Stores whether the reaction started and the time remaining in the reaction. | |
| Ticks regularly to update its output signal strength. | |
| Stores the ID and the data value of the block displayed inside of it. | |
| Stores its output strength. | |
Stores its colorTemplate:Only.
| |
| Stores details about liquid content. Cauldrons containing dyed water store water color. Cauldrons containing potions store the potion's ID and a tag of whether it is a splash potion or not. | |
Ticks regularly to check its activation area for valid activation blocks and apply effects to nearby players.
| |
Ticks regularly to apply the Minecraft:glowing effect to nearby raiders when used.
| |
| To link with a Minecraft:compass. | |
Stores the Minecraft:loot table and contents.
| |
| Stores the items in the lab table and the process of lab experiment. | |
| Renders the opening and closing animation. | |
| Template:BlockLink | Stores and renders items.
|
| Template:BlockLink | Renders the block.
|
Render limits
Block entity rendering stops beyond a hard-coded block limit which is modeled after the radius of a sphere. This limit is not affected by the Render Distance nor the Entity Distance scale in the Minecraft:Video Settings.
Some effects related to block entities stop rendering beyond a different number of blocks:
- The Minecraft:beacon and end gateway beams stop rendering beyond 256 blocks Template:In or 64 blocks Template:In or when the end gateway is out of frame.
- The outlines created by a Minecraft:structure block stop rendering beyond 96 blocks.
See also
- Minecraft:Block entity format – describes the save format for block entities
- Minecraft:Entities, which are all the dynamic, moving objects throughout the Minecraft world, plus several non-moving objects that resemble blocks.
- Minecraft:Block states, which are, like block entities, extra pieces of data that further define a block.
Template:Navbox Java Edition technical Template:Navbox Bedrock Edition
Minecraft:de:Blockobjektdaten Minecraft:el:Block entity Minecraft:es:Entidad de bloque Minecraft:fr:Entité de bloc Minecraft:hu:Blokkentitás Minecraft:ja:ブロックエンティティ Minecraft:ko:블록 개체 Minecraft:nl:Segment formaat Minecraft:pl:Byty bloków Minecraft:pt:Bloco-entidade Minecraft:ru:Блок-сущность Minecraft:uk:Блок-сутність Minecraft:zh:方块实体