Minecraft:Block entity: Difference between revisions
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 20: | Line 20: | ||
* {{BlockLink|Bee Nest}} | * {{BlockLink|Bee Nest}} | ||
| Stores [[Minecraft:bee]]s and their entity data. | | Stores [[Minecraft:bee]]s and their entity data. | ||
* | * Ticks regularly to determine when the bees should exit. | ||
|- | |- | ||
| | | | ||
| Line 28: | 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 | * Renders the sign itself.{{until|JE 26.2}} | ||
|- | |- | ||
| | | | ||
| Line 73: | Line 73: | ||
* {{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. | ||
* For [[Minecraft:campfire]]s, renders the contained items. | * For [[Minecraft:campfire]]s, renders the contained items. | ||
|- | |- | ||
| Line 79: | Line 79: | ||
* {{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. | ||
|- | |- | ||
| | | | ||
| Line 89: | Line 89: | ||
* {{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. | ||
|- | |- | ||
| | | | ||
* {{BlockLink|Beacon}} | * {{BlockLink|Beacon}} | ||
| Stores the pyramid level, active [[Minecraft:effect]]s, 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. | ||
* Renders the [[Minecraft:beacon]] beam. | * Renders the [[Minecraft:beacon]] beam. | ||
|- | |- | ||
| Line 110: | Line 110: | ||
* - additional data about the entity to be spawned (such as equipment, and [[Minecraft: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. | ||
* Renders the spinning entity inside. | * Renders the spinning entity inside. | ||
|- | |- | ||
| Line 141: | Line 141: | ||
* {{BlockLink|Jukebox}} | * {{BlockLink|Jukebox}} | ||
| Stores the contained [[Minecraft:music disc]]s. | | Stores the contained [[Minecraft:music disc]]s. | ||
* | * Ticks regularly to end the song when enough time has elapsed. | ||
|- | |- | ||
| | | | ||
| Line 180: | Line 180: | ||
* {{BlockLink|Nether Reactor Core}}{{only|be|short=1}} | * {{BlockLink|Nether Reactor Core}}{{only|be|short=1}} | ||
| Stores the reaction phase 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. | ||
|- | |- | ||
| | | | ||
* {{BlockLink|id=Daylight Detectors|Daylight Detector}} | * {{BlockLink|id=Daylight Detectors|Daylight Detector}} | ||
| | | Ticks regularly to update its output signal strength. | ||
|- | |- | ||
| | | | ||
| Line 205: | Line 205: | ||
| | | | ||
* {{BlockLink|Conduit}} | * {{BlockLink|Conduit}} | ||
| | | 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}} | * {{BlockLink|Bell}} | ||
| | | Ticks regularly to apply the [[Minecraft:glowing]] effect to nearby raiders when used.{{only|je|short=1}} | ||
* Renders the bell. | * Renders the bell. | ||
|- | |- | ||
| Line 240: | Line 240: | ||
|- | |- | ||
|{{BlockLink|Potent Sulfur}} | |{{BlockLink|Potent Sulfur}} | ||
| Stores the base amount of time remaining in the dormant phase when able to create geysers | | 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. | * 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. | * 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 329: | Line 329: | ||
|{{HistoryLine|||dev=25w34a|The shelf block entity now determines if items align with the bottom or the middle of a shelf.}} | |{{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 | |{{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=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).}} | |||
}} | }} | ||
Latest revision as of 11:05, 24 May 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
Template:Split These are the current blocks that hold block entities.
| Block entity | Usage |
|---|---|
Stores Minecraft:bees and their entity data.
| |
Stores and renders written text.
| |
Stores the Minecraft:redstone signal strength.
| |
Stores xp levels.
| |
Stores the number of activations.
| |
Stores the base 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. 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.
| |
For end gateways, 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 the reaction phase 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.Template:Only
| |
| 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 block. | |
| Template:BlockLink | Stores and renders items.
|
| Template:BlockLink | Renders the block.
|
| Template:BlockLink | Stores the base amount of time remaining in the dormant phase when able to create geysersTemplate:Verify
|
Render limits
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:
- 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.
History
Java Edition
Bedrock Edition
Legacy Console Edition
New Nintendo 3DS Edition
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:方块实体