Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Block entity: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{MC/Distinguish|Entity}}
{{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 models is also achieved with block entities.
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 {{MC/In|be}}, but not {{MC/In|je}}.
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 ==
{{split|section=1|reason=we should have two tables: one for block entities in both major editions, and one for BE-only block entities}}
These are the current blocks that hold block entities.
These are the current blocks that hold block entities.


{| class="wikitable list-style-none" data-description="Blocks with block entities"
{| class="wikitable list-style-none" data-description="Blocks with block entities"
! Block Entity
! Block entity
! Usage
! Usage
|-
|-
|
|
* {{MC/Blocklink|Beehive}}
* {{BlockLink|Beehive}}
* {{MC/Blocklink|Bee Nest}}
* {{BlockLink|Bee Nest}}
| Stores bees and their entity data.
| 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.
|-
|-
|
|
* {{MC/Blocklink|Signs|id=oak sign}}
* {{BlockLink|Signs|id=oak sign}}
* {{MC/Blocklink|Hanging Signs|id=oak hanging sign}}
* {{BlockLink|Hanging Signs|id=oak hanging sign}}
* {{MC/Blocklink|Chalkboard}}{{Only|be|ee|short=1}}
* {{BlockLink|Chalkboard}}{{Only|be|ee|short=1}}
* {{MC/Blocklink|Poster}}{{Only|be|ee|short=1}}
* {{BlockLink|Poster}}{{Only|be|ee|short=1}}
* {{MC/Blocklink|Slate}}{{Only|be|ee|short=1}}
* {{BlockLink|Slate}}{{Only|be|ee|short=1}}
| Stores written text.
| Stores and renders written text.
* Renders the text and the sign itself.
* Renders the sign itself.{{until|JE 26.2}}
|-
|-
|
|
* {{MC/Blocklink|Sculk Sensor}}
* {{BlockLink|Sculk Sensor}}
* {{MC/Blocklink|Calibrated 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.
|-
|-
|
|
* {{MC/Blocklink|Sculk Catalyst}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Sculk Shrieker}}
* {{BlockLink|Sculk Shrieker}}
| Stores the number of activations.
| Stores the number of activations.
* Listens for nearby vibrations.
* Listens for nearby vibrations.
|-
|-
|
|
* {{MC/Blocklink|Banners}}
* {{BlockLink|Banners}}
| Stores color{{only|be|short=1}}, the patterns, and a custom name.
| Stores the base color{{only|be|short=1}}, the patterns, and a custom name.
* Renders the banner with its patterns.
* Renders the banner with its patterns.
|-
|-
|
|
* {{MC/Blocklink|Chest}}
* {{BlockLink|Chest}}
* {{MC/Blocklink|Trapped Chest}}
* {{BlockLink|Trapped Chest}}
* {{MC/Blocklink|Shulker Box}}
* {{BlockLink|Shulker Box}}
* {{MC/Blocklink|id=Shulker Boxes|Dyed Shulker Box}}
* {{BlockLink|id=Shulker Boxes|Dyed Shulker Box}}
* {{MC/Blocklink|Dispenser}}
* {{BlockLink|Dispenser}}
* {{MC/Blocklink|Dropper}}
* {{BlockLink|Dropper}}
* {{MC/Blocklink|Barrel}}
* {{BlockLink|Barrel}}
* {{MC/Blocklink|Chiseled Bookshelf}}
* {{BlockLink|Chiseled Bookshelf}}
* {{MC/Blocklink|Decorated Pot}}
* {{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 chests and shulker boxes, renders the opening and closing animation.
* For [[Minecraft:chest]]s, [[Minecraft:trapped chest]]s, [[Minecraft:shulker box]]es and [[Minecraft:decorated pot]]s, renders the block.
* For decorated pots, renders the wobble animation.
|-
|-
|
|
* {{MC/Blocklink|Furnace}}
* {{BlockLink|Furnace}}
* {{MC/Blocklink|Smoker}}
* {{BlockLink|Smoker}}
* {{MC/Blocklink|Blast Furnace}}
* {{BlockLink|Blast Furnace}}
* {{MC/Blocklink|Brewing Stand}}
* {{BlockLink|Brewing Stand}}
* {{MC/Blocklink|Campfire}}
* {{BlockLink|Campfire}}
* {{MC/Blocklink|Soul 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:
|-
|-
|
|
* {{MC/Blocklink|Hopper}}
* {{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.
|-
|-
|  
|  
* {{MC/Blocklink|Lectern}}
* {{BlockLink|Lectern}}
| Stores the page the book is currently on.
| Stores the page the book is currently on.
* Renders the book.
* Renders the book.
|-
|-
|
|
* {{MC/Blocklink|Crafter}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Beacon}}
* {{BlockLink|Beacon}}
| Stores the pyramid level, active effects, and contents.
| 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.
|-
|-
|
|
* {{MC/Blocklink|Creaking Heart}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Monster Spawner}}
* {{BlockLink|Monster Spawner}}
* {{MC/Blocklink|Trial Spawner}}
* {{BlockLink|Trial Spawner}}
| Stores:  
| Stores:  
* - the entity to be spawned
* - 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:
|-
|-
|
|
* {{MC/Blocklink|Vault}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Note Block}}{{only|be|short=1}}
* {{BlockLink|Note Block}}{{only|be|short=1}}
| Stores the note to be played.
| Stores the note to be played.
|-
|-
|
|
* {{MC/Blocklink|Item Frame}}{{only|be|short=1}}
* {{BlockLink|Item Frame}}{{only|be|short=1}}
* {{MC/Blocklink|Glow 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.
|-
|-
|
|
* {{MC/Blocklink|Piston}}
* {{BlockLink|Piston}}{{only|be|short=1}}
* {{MC/Blocklink|Sticky Piston}}
* {{BlockLink|Sticky Piston}}{{only|be|short=1}}
| 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]]. Also stores the moving process.
|-
|-
|
|
* {{MC/Blocklink|Moving Piston}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Jukebox}}
* {{BlockLink|Jukebox}}
| Stores the contained music discs.
| Stores the contained [[Minecraft:music disc]]s.
* Regularly ticks to end the song when time has elapsed.
* Ticks regularly to end the song when enough time has elapsed.
|-
|-
|
|
* {{MC/Blocklink|Enchanting Table}}
* {{BlockLink|Enchanting Table}}
| Stores a custom name for the interface.
| Stores a custom name for the interface.
* Renders the book animation.
* Renders the book.
|-
|-
|
|
* {{MC/Blocklink|End Portal|link=End Portal (block)}}
* {{BlockLink|End Portal|link=End Portal (block)}}
* {{MC/Blocklink|End Gateway|link=End Gateway (block)}}
* {{BlockLink|End Gateway|link=End Gateway (block)}}
| Stores the destination location.
| For end gateways, stores the destination location.
* Renders the block.
* Renders the block.
|-
|-
|
|
* {{MC/Blocklink|Player Head}}
* {{BlockLink|Player Head}}
* {{MC/Blocklink|Zombie Head}}  
* {{BlockLink|Zombie Head}}  
* {{MC/Blocklink|Skeleton Skull}}  
* {{BlockLink|Skeleton Skull}}  
* {{MC/Blocklink|Wither Skeleton Skull}}
* {{BlockLink|Wither Skeleton Skull}}
* {{MC/Blocklink|Creeper Head}}
* {{BlockLink|Creeper Head}}
* {{MC/Blocklink|Dragon Head}}
* {{BlockLink|Dragon Head}}
* {{MC/Blocklink|Piglin Head}}
* {{BlockLink|Piglin Head}}
| For player heads, stores the player's skin information.
| For [[Minecraft:player head]]s, stores the player's skin information.
* Renders the block.
* Renders the block.
|-
|-
|
|
* {{MC/Blocksprite|command-block}} {{MC/Blocksprite|chain-command-block}} {{MC/Blocksprite|repeating-command-block}} [[Minecraft:Command 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.
|-
|-
|
|
* {{MC/Blocksprite|structure-block-save}} {{MC/Blocksprite|structure-block-corner}} {{MC/Blocksprite|structure-block-data}} {{MC/Blocksprite|structure-block-load}} [[Minecraft:Structure Block]]
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Jigsaw Block}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Nether Reactor Core}}{{only|be|short=1}}
* {{BlockLink|Nether Reactor Core}}{{only|be|short=1}}
| Stores whether the reaction started and the time remaining in the reaction.
| Stores the reaction phase and the time remaining in the reaction.
* Ticks regularly to update the time remaining in the reaction.
|-
|-
|
|
* {{MC/Blocklink|id=Daylight Detectors|Daylight Detector}}
* {{BlockLink|id=Daylight Detectors|Daylight Detector}}
| Ticks regularly to update its output signal strength.
| Ticks regularly to update its output signal strength.
|-
|-
|
|
* {{MC/Blocklink|Flower Pot}}{{only|be|short=1}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Redstone Comparator}}
* {{BlockLink|Redstone Comparator}}
| Stores its output strength.
| Stores its output strength.
|-
|-
|
|
* {{MC/Blocklink|id=red-bed|Bed}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Cauldron}}{{only|be|short=1}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Conduit}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Bell}}
* {{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.{{only|je|short=1}}
* Renders the swaying animation.
* Renders the bell.
|-
|-
|
|
* {{MC/Blocklink|Lodestone}}{{only|be|short=1}}
* {{BlockLink|Lodestone}}{{only|be|short=1}}
| To link with a [[Minecraft:compass]].
| To link with a [[Minecraft:compass]].
|-
|-
|
|
* {{MC/Blocklink|Suspicious Sand}}
* {{BlockLink|Suspicious Sand}}
* {{MC/Blocklink|Suspicious Gravel}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Compound Creator}}{{only|be|ee|short=1}}<br>{{MC/Blocklink|Element Constructor}}{{only|be|ee|short=1}}<br>{{MC/Blocklink|Lab Table}}{{only|be|ee|short=1}}<br>{{MC/Blocklink|Material Reducer}}{{only|be|ee|short=1}}
* {{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.
|-
|-
|
|
* {{MC/Blocklink|Ender chest}}
* {{BlockLink|Ender Chest}}
| Renders the opening and closing animation.
| Renders the block.
|-
|-
|{{MC/Blocklink|Shelf}}
|{{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.
|-
|-
|{{MC/Blocklink|Copper Golem Statue}}
|{{BlockLink|Copper Golem Statue}}
| Renders the block.
| Renders the block.
* Stores the golem's custom name.
* Stores the golem's custom name.
|-
|{{BlockLink|Potent Sulfur}}
| Stores the base amount of time remaining in the dormant phase when able to create geysers{{verify|still the case as of snapshot 7?}}
* The number of seconds remaining until the block switches between dormant and erupting phases.{{verify|still the case as of snapshot 7?}}
* The base amount of time the block erupts when able to create geysers, in seconds.{{verify|still the case as of snapshot 7?}}
* Ticks regularly to update its geyser progress.{{verify|still the case as of snapshot 7?}}
|}
|}


== Render limits ==
== Render limits ==
{{MC/Exclusive|java|section=1}}
{{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.
The rendering of block entities that use the block entity renderer 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 {{MC/In|JE}} or 64 blocks {{MC/In|BE}} or when the end gateway is out of frame.
* 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.
 
== History ==
{{info needed section|populate this with every historical addition and removal}}
=== ''Java Edition'' ===
{{HistoryTable
|{{HistoryLine|java indev}}
|{{HistoryLine||0.31|dev=20100124-2119|Added chests along with a chest block entity.}}
|{{HistoryLine||20100219|Added [[Minecraft:furnaces]], along with a furnace block entity.}}
|{{HistoryLine|java infdev}}
|{{HistoryLine||20100607|Re-added [[Minecraft:signs]] as blocks along with a sign block entity.}}
|{{HistoryLine||20100625-1917|Added [[Minecraft:monster spawners]], which also use the sign block entity.}}
|{{HistoryLine||20100627|Monster spawners now use their own block entity.<ref>{{TWON|741367473|Sorry I broke the signs, here's the fix|June 27, 2010}}</ref>}}
|{{HistoryLine|java alpha}}
|{{HistoryLine||v1.0.1|Added wall signs, which also use the sign block entity.}}
|{{HistoryLine|java beta}}
|{{HistoryLine||1.2|Added [[Minecraft:dispensers]], along with a dispenser block entity.
|Added [[Minecraft:note blocks]], along with a note block block entity.}}
|{{HistoryLine||1.7|Added [[Minecraft:moving piston]]s, along with a moving piston block entity.}}
|{{HistoryLine||1.8|dev=Pre-release|The [[Minecraft:chest]] block entity is now used to render its newly changed model.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 3|Added [[Minecraft:brewing stands]], along with a brewing stand block entity.
|Added [[Minecraft:enchanting tables]], along with a enchanting table block entity.
|Added the [[Minecraft:End portal block]], along with a End portal block entity.}}
|{{HistoryLine||1.3.1|dev=12w21a|Added [[Minecraft:ender chests]] along with a ender chest block entity.}}
|{{HistoryLine||1.4.2|dev=12w32a|Added [[Minecraft:command blocks]] along with a command block block entity.}}
|{{HistoryLine|||dev=12w36a|Added [[Minecraft:heads]], along with a skull block entity.}}
|{{HistoryLine|||dev=?|Added the [[Minecraft:beacon]] block entity.}}
|{{HistoryLine||1.5|dev=13w01a|Added [[Minecraft:daylight detector]]s, along with a daylight detector block entity.
|Added [[Minecraft:hoppers]], along with a hopper block entity.
|Added [[Minecraft:redstone comparators]], along with a redstone comparator block entity.}}
|{{HistoryLine|||dev=13w03a|Added [[Minecraft:droppers]], along with a dropper block entity.}}
|{{HistoryLine||1.7.2|dev=13w36a|[[Minecraft:Flower pots]] now use a block entity.}}
|{{HistoryLine||1.8|dev=14w30a|Added [[Minecraft:banners]] along with a banner block entity.}}
|{{HistoryLine||1.9|dev=15w31a|Added the [[Minecraft:End gateway block]], along with a end gateway block entity.
|Added [[Minecraft:structure blocks]], along with a structure block block entity.}}
|{{HistoryLine|||dev=15w34a|Added [[Minecraft:chain command block|chain]] and [[Minecraft:repeating command blocks]], which both use the command block block entity.}}
|{{HistoryLine||1.11|dev=16w32a|The [[Minecraft:namespaced ID]] of block entities have been lowercased and renamed.}}
|{{HistoryLine|||dev=16w39a|Added [[Minecraft:shulker boxes]], along with a shulker box block entity.}}
|{{HistoryLine||1.12|dev=17w15a|[[Minecraft:Beds]] now use a block entity.}}
|{{HistoryLine||1.13|dev=17w47a|Note blocks no longer have an associated block entity and instead use the [[Minecraft:block state]] system.
|Flower pots no longer have an associated block entity and instead use individual blocks instead.
|Bed colors are no longer determined using its block entity.
|Banner base colors are no longer determined using the banner block entity.
|Head variants (creeper, skeleton, etc.) are no longer determined using the skull block entity.
|[[Minecraft:Trapped chests]] now use a unique block entity.}}
|{{HistoryLine|||dev=18w15a|Added [[Minecraft:conduits]], along with a conduit block entity.}}
|{{HistoryLine||1.14|dev=18w44a|Added [[Minecraft:barrels]], along with a barrel block entity.
|Added [[Minecraft:bells]], along with a bell block entity.
|Added [[Minecraft:lecterns]], along with a lectern block entity.
|Added [[Minecraft:smokers]] and [[Minecraft:blast furnaces]], which both use the furnace block entity.}}
|{{HistoryLine|||dev=18w46a|Added [[Minecraft:jigsaw blocks]], along with a jigsaw block block entity.}}
|{{HistoryLine|||dev=19w02a|Added [[Minecraft:campfires]], along with a campfire block entity.}}
|{{HistoryLine|||dev=18w50a|Smokers and blast furnaces now use their own unique block entities.}}
|{{HistoryLine||1.15|dev=19w34a|Added [[Minecraft:beehives]] and [[Minecraft:bee nests]], along with a beehive block entity.}}
|{{HistoryLine||1.16|dev=20w15a|Added [[Minecraft:soul campfires]], which use the campfire block entity.}}
|{{HistoryLine||1.17|dev=20w49a|Added sculk sensors along with a sculk sensor block entity.}}
|{{HistoryLine||1.19|dev=Deep Dark Experimental Snapshot 1|Added [[Minecraft:sculk catalyst]]s, along with a sculk catalyst block entity.
|Added [[Minecraft:sculk shriekers]], along with a sculk shrieker block entities.}}
|{{HistoryLine|||dev=22w11a|Implemented the previously mentioned features into normal snapshot.}}
|{{HistoryLine||1.19.3|exp=Update 1.20|dev=22w42a|Added chiseled bookshelves along with a chiseled bookshelf block entity.
|Added [[Minecraft:hanging signs]], along with a hanging sign block entity.}}
|{{HistoryLine||1.19.4|exp=Update 1.20|dev=23w07a|Added decorated pots along with a decorated pot block entity.
|Added [[Minecraft:suspicious sand]], along with a suspicious sand block entity.}}
|{{HistoryLine||1.20|dev=23w12a|Added [[Minecraft:calibrated sculk sensors]], along with a calibrated sculk sensor block entity.
|Added [[Minecraft:suspicious gravel]], which also uses suspicious sand block entity, which has been renamed to "brushable block entity" to better fit both block usages.}}
|{{HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Added [[Minecraft:trial spawners]], along with a trial spawner block entity.}}
|{{HistoryLine|||dev=23w42a|Added [[Minecraft:crafters]], along with a crafter block entity.}}
|{{HistoryLine||1.20.5|exp=Update 1.21|dev=24w05a|Added [[Minecraft:vaults]], along with a vault block entity.}}
|{{HistoryLine||1.21.2|exp=Winter Drop|dev=24w40a|Added [[Minecraft:creaking hearts]], along with a creaking heart block entity.}}
|{{HistoryLine||1.21.5|dev=25w03a|Added [[Minecraft:test block]]s, along with a test block block entity.
|Added [[Minecraft:test instance block]]s, along with a test instance block block entity.}}
|{{HistoryLine||1.21.9|dev=25w31a|Added copper golem statues along with a copper golem statue block entity.
|Added [[Minecraft:shelves]], along with a shelf block entity.}}
|{{HistoryLine|||dev=25w34a|The shelf block entity now determines if items align with the bottom or the middle of a shelf.}}
|{{HistoryLine|java upcoming}}
|{{HistoryLine||26.2|dev=snap3|The bed block entity has been removed.}}
|{{HistoryLine|||dev=snap5|[[Minecraft:Potent sulfur]] now uses a block entity.}}
|{{HistoryLine|||dev=snap7|Signs and hanging signs are now rendered with [[Minecraft:block models]] (previously the block entity renderer was used instead).}}
}}
 
=== ''Bedrock Edition'' ===
{{empty section}}
 
=== ''Legacy Console Edition'' ===
{{empty section}}
 
=== ''New Nintendo 3DS Edition'' ===
{{empty section}}


== 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 ==
{{MC/Navbox Java Edition technical|general}}
{{Navbox Java Edition technical|general}}
{{MC/Navbox Bedrock Edition}}
{{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:05, 24 May 2026

Template:Distinguish

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

Template:Split These are the current blocks that hold block entities.

Block entity Usage
Stores Minecraft:bees and their entity data.
  • Ticks regularly to determine when the bees should exit.
Stores and renders written text.
Stores the Minecraft:redstone signal strength.
  • Listens for nearby vibrations.
Stores xp levels.
  • Listens for nearby deaths, and spreads charges.
Stores the number of activations.
  • Listens for nearby vibrations.
Stores the base colorTemplate:Only, the patterns, and a custom name.
  • Renders the banner with its patterns.
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.
  • Ticks regularly to advance the cooking time.
  • For Minecraft:campfires, renders the contained items.
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.
Stores the page the book is currently on.
  • Renders the book.
Stores its contents, which slots are disabled and the crafting cooldown.
  • Ticks regularly to advance the cooldown.
Stores the pyramid level, active Minecraft:effects, and contents.
  • Ticks regularly to check for a valid pyramid, and apply effects to nearby players.
  • Renders the Minecraft:beacon beam.
Stores the UUID of the transient creaking associated with this creaking heart.
Stores:
  • - the entity to be spawned
  • - 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
  • - additional data about the entity to be spawned (such as equipment, and Minecraft:status effects)
  • - the loot reward for the trial spawner
  • Ticks regularly to advance its cooldown, check for spawn conditions, and spawn mobs.
  • Renders the spinning entity inside.
Stores its loot configuration and tracked players.
  • Renders the spinning items inside.
Stores the note to be played.
Stores the contained Minecraft:item.
  • Renders the item.
Stores the offset of block, and blocks that it should move or Minecraft:break. Also stores the moving process.
Stores the offset of blockTemplate:Only, direction of movementTemplate:Only, and ID of the moving block.
  • Renders the block.
Stores the contained Minecraft:music discs.
  • Ticks regularly to end the song when enough time has elapsed.
Stores a custom name for the interface.
  • Renders the book.
For end gateways, stores the destination location.
  • Renders the block.
For Minecraft:player heads, stores the player's skin information.
  • Renders the block.
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 the reaction phase and the time remaining in the reaction.
  • Ticks regularly to update 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.
  • Renders the block.
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.
  • Renders the block.
Ticks regularly to apply the Minecraft:glowing effect to nearby raiders when used.Template:Only
  • Renders the bell.
To link with a Minecraft:compass.
Stores the Minecraft:loot table and contents.
  • Renders the item while brushing.
Stores the items in the lab table and the process of lab experiment.
Renders the block.
Template:BlockLink Stores and renders items.
  • Stores whether items should be centered or aligned to the bottom.
Template:BlockLink Renders the block.
  • Stores the golem's custom name.
Template:BlockLink Stores the base amount of time remaining in the dormant phase when able to create geysersTemplate:Verify
  • The number of seconds remaining until the block switches between dormant and erupting phases.Template:Verify
  • The base amount of time the block erupts when able to create geysers, in seconds.Template:Verify
  • Ticks regularly to update its geyser progress.Template:Verify

Render limits

Template:Exclusive

The rendering of block entities that use the block entity renderer 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:

History

Template:Info needed section

Java Edition

Template:HistoryTable

Bedrock Edition

Template:Empty section

Legacy Console Edition

Template:Empty section

New Nintendo 3DS Edition

Template:Empty section

See also

Navigation

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:方块实体