Minecraft:Living Block/types
More actions
Template:Wip Template:Joke feature
Minecraft:Living block types are an internal classification that controls the Template:Slink, Template:Slink, Template:Slink (response to interact and hurt), Template:Slink, and Template:Slink 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. Template:TOC
Types
Presets
Some types of living blocks share properties that are predefined. Below is a list of presets and the property of each.
In addition, presets can be used to define other presets. A pesete could be the union of other presenters.
Below is a table of the most basic gifts; the days only define a list of behaviors.
| Preset | Behaviors | Sub-presets |
|---|---|---|
| Default |
Act on desire
Act on desire
Be crafting ingredient Avoid being in the way of crafting |
None |
| Deffend |
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 Deffend |
| 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 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
- Moviment: 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 Template:Cd tag, it receives the type default block; otherwise, it receives the type default item.
| Items (Template:Tooltip) | Preset | Behavior | Interactions | Other |
|---|---|---|---|---|
| Template:BlockLink | Default block | On hurt: Primint TNT | ||
| Template:ItemLink | Default item | Teleport player randomly | ||
| Template:Flatlist | Tool | |||
| Template:Flatlist | Tool | Randomly use item
|
||
| Template:Flatlist | Toll | Randomly use item
|
||
| Template:Flatlist | Toll | Randomly use item
|
||
| Template:ItemLink | Passive | Target nearest living block
|
Movement: Floating Collision: Entity | |
| Template:Flatlist | Default ranged |
Consume nearby living block
Fire at entity |
Movement: Floating Collision: Entity | |
| Template:BlockLink | Default block |
Combine into copper golem
Combine into buildable entity: Iron golem
Combine into buildable entity: Snow golem
|
||
| Template:ItemLink | Default item |
Combine into portal
Primes TNT
Random ignition |
Fire immune Movement: Bouncing
| |
| Template:Flatlist | Default block | Fire immune | ||
| Template:ItemLink | Default item |
Combine into portal
Primes TNT
Random ignition |
||
| Template:BlockLink | Default block | Combine into buildable entity: Wither
|
||
| Template:ItemLink | Default item | Combine with: End portal frame
|
Throw eye of ender | |
| Template:ItemLink | Default item | Launch colliding block
|
||
| Template:BlockLink | Default block | Combine into end portal
|
||
| Template:Animate Minecraft:Concrete Powder (Template:Tooltip) | Default block | Transform when intersecting
|
||
| Template:BlockLink | Default block | Transform when intersecting
|
||
| Template:BlockLink | Default block | On hurt:
Place block on death | ||
| Default item | Summon vehicle | |||
|
Template:Flatlist (except Template:BlockSprite, Template:BlockSprite, and Template:BlockSprite variants) |
Block | Movement: Water floating | ||
| Template:ItemLink | Default item |
Transform when intersecting
Transform when intersecting
Transform when intersecting:
|
||
| Template:Flatlist | Bucket type | |||
| Template:BlockLink | Default item | Falling attack
|
||
| Template:BlockLink | Default item | Falling attack
|
||
| Template:ItemLink | Default item | Grow tree | ||
| Template:BlockLink (16) | Block | Sleep on bed | ||
| Template:BlockLink | Default block | Absorb snow | ||
| Template:BlockLink | Default block | Damage entities on touch
|
||
| Template:Flatlist | Default block | Show crafting grid | Crafting menu | Movement: Water floating |
| Template:BlockLink | Default block | Enchantment table | Enchant random item | |
| Template:BlockLink | Default | Smelt nearby living block | ||
| Template:BlockLink | Default | Smelt nearby living block | ||
| Template:BlockLink | Default | Smelt nearby living block | ||
| Template:Flatlist | Default | Smelt nearby living block | ||
|
Template:TooltipSpriteTemplate:TooltipSpriteTemplate:TooltipSpriteTemplate:TooltipSpriteTemplate:TooltipSpriteTemplate:TooltipSpriteTemplate:TooltipSpriteTemplate:TooltipSpriteTemplate:TooltipSpriteTemplate:TooltipSprite Minecraft:Wooden Door (10) |
Block | Combine into house
|
Movement: Water floating | |
| Block | Combine into house
|
|||
| Template:ItemLink | Default item | Use item on condition
|
||
| Template:BlockLink | Container | Living block container
|
Open container | Movement: Water floating |
| Template:BlockLink (8) | Container | Living block container
|
Open container | Movement: Water floating |
| Template:BlockLink | Container |
Living block container
Barrel roll |
Open container | Movement: Water floating |
| Template:BlockLink | Container | Living block container
|
Open container | Movement: Water floating |
| Template:BlockLink (17) | Container |
Living block mob container
Teleport randomly when attacked |
Open container | Movement: Water floating |
| Template:ItemLink | Default item | Use item on condition
|
||
| Template:BlockLink | Default block | Dispense living block | ||
| Template:BlockLink | Default block | Drop living block | ||
| Template:BlockLink | Default block | Annoying click clack | Flip lever interaction | |
| Template:ItemLink (17) | Container | Living block container
|
Movement: Floating Collision: Entity | |
| Template:BlockLink (16) | Block | Leash to player | Movement: Floating | |
| Template:Flatlist | Default non collidable block | |||
| Template:BlockLink | Default Block | Combine with
|
||
| Template:InvLink | Default Block |
Target nearest player
Trap player
|
||
| Template:Animate Minecraft:Copper Bars (Template:Tooltip) | Default Block | Combine with
|
||
| Template:Animate Minecraft:Copper Trap (Template:Tooltip) | Default Block |
Target nearest player
Trap player
|
||
| Template:BlockLink | Item |
Combine Into 9x9
|
||
| Template:BlockLink | Item |
Combine Into 9x9
|
||
| Template:BlockLink | Item |
Combine Into 9x9
|
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 codeTemplate:Note:
Absorb snow
If the living block don't have 8 layers of snow, passing over a Minecraft: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 Minecraft: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 Template:Cd
- The particle's position is the same as a lever block in that block and has the same Template:Cd and Template:Cd. 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.
- If the number is lass to 0.10 (10%) living block changing its Template:Cd state.
- 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.