Living Block/types
Minecraft Wiki article. Categories: Minecraft_Work_in_progress, Minecraft_Work_in_progress_without_a_note, Joke_features, Articles_with_empty_sections
This article is reproduced from Living Block/types on the Minecraft Wiki. Mirrored from revision 3635694. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
- Types
- Presets
- Register
- Behavior
- Absorb snow
- Act on desire
- Annoying click clack
- Attack entity
- Avoid being in the way of crafting
- Back away from attack
- Barrel roll
- Be crafting ingredient
- Build
- Combine into 9x9
- Combine into buildable entity
- Combine into copper golem
- Combine into end portal
- Combine into house
- Combine into portal
- Combine with
- Consume nearby living block
- Damage entities on touch
- Enchantment table
- Equip on entity
- Falling attack
- Fire at entity
- Grow tree
- Launch colliding block
- Living block container
- Living block mob container
- Mine specific block
- Primes TNT
- Protect position
- Random ignition
- Randomly use item
- Show crafting grid
- Smelt
- Smelt nearby living block
- Target nearest living block
- Target nearest player
- Teleport randomly when attacked
- Transform when intersecting
- Trap player
- Use item on condition
- Interactions
- On interact
- On hurt
- Other properties
- Movement
- Collision
- Fire immunety
- Notes
Living block types are an internal classification that controls the § Behavior, § Collision, § Interactions (response to interact and hurt), § Movement, and § Fire immunety of the living block.
Almost all of these properties are uniquely defined (each block has only one of each) with the exception of behavior, where the same type can have more than one behavior or none.
Each living block has only one type, and this type is uniquely defined by the ID of the item associated with the living block. Each item in the game can correspond to a maximum of one type. Some types are shared by more than one item.
Blocks whose item does not correspond to a type, receives the type default block or default item.
Types
Presets
Some types of living blocks share properties that are predefined. Below is a list of presets and the property of each.
| Preset | Behaviors | Sub-presets |
|---|---|---|
| Default |
Act on desire
Act on desire
Be crafting ingredient Avoid being in the way of crafting |
None |
| Defend |
Protect position: Be mad at intruders Protect position: Return home when able |
None |
| Smelting |
Smelt: Lava Smelt: Fire |
None |
| Melee | Attack entity | None |
| Default Melee | - | Default
Melee Deffend |
| Ranged | Back away from attack | None |
| Default Ranged | - | Default
Ranged Defend |
| Mining |
Mine specific block: Mine the block Mine specific block: Move to block to mine |
None |
| Passive |
Act on desire
|
None |
More complete presets
| Preset | Sub-presets | Behavior | Move | Collision |
|---|---|---|---|---|
| Block |
Default melee Smelting |
Build Equip on entity |
Rolling | Block |
| Item |
Default melee Smelting |
Equip on entity | Floating | Entity |
| Tool |
Default Melee Mining Smelting |
- | Bouncing | Entity |
| Container |
Default melee Smelting |
Equip on entity | Rolling | Block |
Some presets are also types in themselves, which can be used as a living block type or presets in a registry.
| Preset/Type | Sub-Presets | Other |
|---|---|---|
| Default block |
Default melee Block |
|
| Default non-collidable block | Block | Collision: Entity |
| Default item |
Default melee Item |
|
| Bucket type | Default item |
On Interact: Empty bucket interaction On hurt: Empty content on upon death |
If a property is not defined for a block type, it uses its default value, that is:
- Behavior: Empty list
- Collision: Block
- On interact: Consume item
- On hurt: Do nothing
- Movement: Rolling
- Fire immune: False
Register
The living blocks of an item in the list below always receive the type associated with the item. For other living blocks, it depends. If the item is associated with a block (i.e., it is an instance of BlockItem) and is not in the #block_placers tag, it receives the type default block; otherwise, it receives the type default item.
| Items (#) | Preset | Behavior | Interactions | Other |
|---|---|---|---|---|
| Default block | On hurt: Primint TNT | |||
| Default item | Teleport player randomly | |||
| Tool | ||||
| Tool | Randomly use item
|
|||
| Toll | Randomly use item
|
|||
| Toll | Randomly use item
|
|||
| Passive | Target nearest living block
|
Movement: Floating Collision: Entity | ||
| Default ranged |
Consume nearby living block
Fire at entity |
Movement: Floating Collision: Entity | ||
| Default block |
Combine into copper golem
Combine into buildable entity: Iron golem
Combine into buildable entity: Snow golem
|
|||
| Default item |
Combine into portal
Primes TNT
Random ignition |
Fire immune Movement: Bouncing
| ||
| Default block | Fire immune | |||
| Default item |
Combine into portal
Primes TNT
Random ignition |
|||
| Default block | Combine into buildable entity: Wither
|
|||
| Default item | Combine with: End portal frame
|
Throw eye of ender | ||
| Default item | Launch colliding block
|
|||
| Default block | Combine into end portal
|
|||
| Default block | Transform when intersecting | |||
| Default block | Transform when intersecting
|
|||
| Default block | On hurt:
Place block on death | |||
| Default item | Summon vehicle | |||
|
(except |
Block | Movement: Water floating | ||
| Default item |
Transform when intersecting
Transform when intersecting
Transform when intersecting:
|
|||
| Bucket type | ||||
| Default item | Falling attack
|
|||
| Default item | Falling attack
|
|||
| Default item | Grow tree
|
|||
| Block | Sleep on bed | |||
| Default block | Absorb snow | |||
| Default block | Damage entities on touch
|
|||
| Default block | Show crafting grid | Crafting menu | Movement: Water floating | |
| Default block | Enchantment table | Enchant random item | ||
| Default | Smelt nearby living block
|
|||
| Default | Smelt nearby living block
|
|||
| Default | Smelt nearby living block
|
|||
| Default | Smelt nearby living block
|
|||
|
|
Block | Combine into house
|
Movement: Water floating | |
| Block | Combine into house
|
|||
| Default item | Use item on condition
|
|||
| Container | Living block container
|
Open container | Movement: Water floating | |
| Container | Living block container
|
Open container | Movement: Water floating | |
| Container |
Living block container
Barrel roll |
Open container | Movement: Water floating | |
| Container | Living block container
|
Open container | Movement: Water floating | |
| Container |
Living block mob container
Teleport randomly when attacked |
Open container | Movement: Water floating | |
| Default item | Use item on condition
|
|||
| Default block | Dispense living block | |||
| Default block | Drop living block | |||
| Default block | Annoying click clack | Flip lever interaction | ||
| Container | Living block container
|
Movement: Floating Collision: Entity | ||
| Block | Leash to player | Movement: Floating | ||
|
Default non-collidable block | |||
| Default Block | Combine with
|
|||
| Default Block |
Target nearest player
Trap player
|
|||
| Default Block | Combine with
|
|||
| Default Block |
Target nearest player
Trap player
|
|||
| Item |
Combine Into 9×9
|
|||
| Item |
Combine Into 9×9
|
|||
| Item |
Combine Into 9×9
|
Behavior
Behavior controls certain actions of living blocks, such as when they will perform and stop performing the action, what happens when they die, and other things.
Below is a summary of the living block behaviors, using the class name in the code[note 1]:
AbsorbSnowBehavior
ActOnDesireBehavior
AnnoyingClickClackBehavior
AttackEntityBehavior
AvoidBeingInTheWayOfCrafting
BackAwayFromAttackBehavior
BarrelRollBehavior
BeCraftingIngredient
BuildBehavior
CombineInto9x9Behavior
CombineIntoBuildableEntityBehavior
CombineIntoEndPortalBehavior
CombineIntoHouseBehavior
CombineIntoPortalBehavior
CombineWithBehavior
ConsumeNearbyLivingBlockBehavior
DamageEntitiesOnTouchBehavior
EnchantmentTableBehavior
EquipOnEntityBehavior
FallingAttackBehavior
FireAtEntityBehavior
GrowTreeBehavior
LaunchCollidingBlockBehavior
LivingBlockContainerehavior
LivingBlockMobContainerBehavior
MineSpecificBlockBhavior
PrimesTntBhavior
ProtectPositionBhavior
RandomIgnitionBhavior
RandomUseItemBhavior
ShowCraftingGridBhavior
SmeltBhavior
SmeltNearbyLivingBlockBhavior
TargetNearestLivingBlockBhavior
TargetNearestPlayerBhavior
TeleportRandomlyWhenAttackedBhavior
TransformWhenIntersectingBhavior
TrapPlayerBhavior
UseItemOnConditionBhavior
Absorb snow
If the living block don't have 8 layers of snow, passing over a snow increases its layer by one and decreases the block's layer by one (transforming the block into air if it only has one layer). Passing over a snow block transforms it into snow with seven layers. With some additional conditions:
- The distance from the last absorbed block must be greater than one in some horizontal axis.
- When the internal data from the living block is loaded, for example when it is summoned or loaded into the world, consider that the last block absorbed was at position 0, 0, 0.
- The last absorbed block must have been more than 20 ticks away.
Act on desire
Annoying click clack
Within a 10-tick interval, A random number between 0 and 1 is generated:
- If the number is lass to 0.25 (25%) and the living block is powered, it producing a particle
dust{color:16711680,scale:0.5}- The particle's position is the same as a lever block in that block and has the same
facingandface. Since the living block rarely goes to this same position as the block, the particle ends up appearing in a random place. However, unmoved living floor levers regularly produce particles.
- The particle's position is the same as a lever block in that block and has the same
- If the number is lass to 0.10 (10%) living block changing its
poweredstate.- Note that whenever a powered living block changing, it will emit a particle first, and whenever a living block producing a particle, it has a 40% chance of changing its powered status.
Attack entity
Avoid being in the way of crafting
All other subsequent subsections as well.
Back away from attack
Barrel roll
Be crafting ingredient
Build
Combine into 9x9
Combine into buildable entity
Combine into copper golem
Combine into end portal
Combine into house
Combine into portal
Combine with
Consume nearby living block
Damage entities on touch
Enchantment table
Equip on entity
Falling attack
Fire at entity
Grow tree
Launch colliding block
Living block container
Living block mob container
Mine specific block
Primes TNT
Protect position
Random ignition
Randomly use item
Show crafting grid
Smelt
Smelt nearby living block
Target nearest living block
Target nearest player
Teleport randomly when attacked
Transform when intersecting
Trap player
Use item on condition
Interactions
On interact
On hurt
Other properties
Movement
Collision
Fire immunety
Notes
- ↑ All is subclasses of LivingBlockBehavior. Note that the subsection names and the names used in the table are not the class names, the class name is the subsection name in UpperCamelCase with Behavior at the end, exect
AvoidBeingInTheWayOfCraftingandBeCraftingIngredient.
Sources
- Living Block/types — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3635694.