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)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(8 intermediate revisions by the same user not shown)
Line 9: Line 9:


== 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
|-
|-
Line 27: Line 28:
* {{BlockLink|Poster}}{{Only|be|ee|short=1}}
* {{BlockLink|Poster}}{{Only|be|ee|short=1}}
* {{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}}
|-
|-
|
|
Line 48: Line 49:
|
|
* {{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.
|-
|-
Line 62: Line 63:
* {{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, [[Minecraft:trapped chest]]s and [[Minecraft:shulker box]]es, 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 [[Minecraft:decorated pot]]s, renders the wobble animation.
|-
|-
|
|
Line 129: Line 129:
|-
|-
|
|
* {{BlockLink|Piston}}
* {{BlockLink|Piston}}{{only|be|short=1}}
* {{BlockLink|Sticky Piston}}
* {{BlockLink|Sticky Piston}}{{only|be|short=1}}
| Stores the offset of block, and blocks that it should move or [[Minecraft: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.
|-
|-
|
|
Line 141: Line 141:
* {{BlockLink|Jukebox}}
* {{BlockLink|Jukebox}}
| Stores the contained [[Minecraft:music disc]]s.
| 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.
|-
|-
|
|
* {{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.
|-
|-
|
|
* {{BlockLink|End Portal|link=End Portal (block)}}
* {{BlockLink|End Portal|link=End Portal (block)}}
* {{BlockLink|End Gateway|link=End Gateway (block)}}
* {{BlockLink|End Gateway|link=End Gateway (block)}}
| Stores the destination location.{{verify|checking the pages, it implies only end gateways do this}}
| For end gateways, stores the destination location.
* Renders the block.
* Renders the block.
|-
|-
Line 179: Line 179:
|
|
* {{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.
|-
|-
|
|
Line 209: Line 210:
|
|
* {{BlockLink|Bell}}
* {{BlockLink|Bell}}
| Ticks regularly to apply the [[Minecraft: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.
|-
|-
|
|
Line 227: Line 228:
|-
|-
|
|
* {{BlockLink|Ender chest}}
* {{BlockLink|Ender Chest}}
| Renders the opening and closing animation.
| Renders the block.
|-
|-
|{{BlockLink|Shelf}}
|{{BlockLink|Shelf}}
Line 237: Line 238:
| 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?}}
|}
|}


Line 242: Line 249:
{{Exclusive|java|section=1}}
{{Exclusive|java|section=1}}


The rendering of block entities that use the [[Minecraft: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]].
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:
Line 252: Line 259:
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{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|java}}
|{{HistoryLine||1.12|dev=17w15a|Beds now use block entities.}}
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 3|Added [[Minecraft:brewing stands]], along with a brewing stand block entity.
|{{HistoryLine||1.13|dev=17w47a|Note blocks no longer have an associated block entity and instead use the block state system.}}
|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|java upcoming}}
|{{HistoryLine||26.2|dev=snap3|The block entity for rendering beds has been removed.}}
|{{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 ==

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