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

Minecraft:Living Block/types

From SAS Gaming Wiki

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

  • Desire: Appoach
  • Response: Move towards

Act on desire

  • Desire: Attack
  • Response: Be mad at

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

  • Desire: Appoach
  • Response: Move towards
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
  • Chance: 1%
  • Reach: 0.5
  • Predicate: Block is strippble
Template:Flatlist Toll Randomly use item
  • Chance: 1%
  • Reach: 0.5
  • Predicate: Block is tillable
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

  • Distance: 4.0

Combine into buildable entity: Iron golem

  • Distance: 4.0

Combine into buildable entity: Snow golem

  • Distance: 4.0
Template:ItemLink Default item

Combine into portal

  • Distance: 4.0

Primes TNT

  • Distance: 4.0

Random ignition

Fire immune

Movement: Bouncing

  • Jump height: 1.0
  • Ticks between jumps: 1
  • Horizontal movement speed: 0.15
Template:Flatlist Default block Fire immune
Template:ItemLink Default item

Combine into portal

  • Distance: 4.0

Primes TNT

  • Distance: 4.0

Random ignition

Template:BlockLink Default block Combine into buildable entity: Wither
  • Distance: 4.0
Template:ItemLink Default item Combine with: End portal frame
  • Distance: 3.0
Throw eye of ender
Template:ItemLink Default item Launch colliding block
  • Launch velocity: 2.0
  • Min distance: 0.1
Template:BlockLink Default block Combine into end portal
  • Min distance: 4.0
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

Template:Flatlist

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:

Transform bucket into Minecraft:powder snow bucket
Template:Flatlist Bucket type
Template:BlockLink Default item Falling attack
  • Fall height: 2.0
Template:BlockLink Default item Falling attack
  • Fall height: 20.0
Template:ItemLink Default item Grow tree
Template:BlockLink
Template:BlockLink
Template:BlockLink
Template:BlockLink
Template:BlockLink
Template:BlockLink
Template:BlockLink
Template:BlockLink
Template:BlockLink
Template:BlockLink
Template:BlockLink
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
  • Distance: 15.0
Movement: Water floating

Template:Flatlist

Block Combine into house
  • Distance: 15.0
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
  • Distance: 10.0
  • Predicate: The living entity is dead or dying
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

  • Distance: 20.0
  • Target entity: False

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

  • Distance: 20.0
  • Target entity: False

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:

Template:Columns-list


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

Template:Empty section

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.

Attack entity

Template:Empty section

Avoid being in the way of crafting

Template:Empty section

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

Template:Empty section

On hurt

Template:Empty section

Other properties

Movement

Template:Empty section

Collision

Template:Empty section

Fire immunety

Template:Empty section

Notes

Template:Notelist