User Tools

Site Tools


blocks:block_pickers:start

This is an old revision of the document!


Block Pickers

Block pickers determine the block to use to place as a block state in the world. The block picker type is determined by the type field, and all types are specified below. You may also inline it by only specifying the block, in which case minecraft:simple is used.

minecraft:simple

Always places the block specified.

Fields

Name Description Type Default Value
block The block to place. A block

Example

"minecraft:cobblestone"
{
  "type": "minecraft:simple",
  "block": "minecraft:cobblestone"
}

minecraft:attached_to_side

Places the attached block when used on the attached side, otherwise uses the other block. It is typically used for blocks that have a separate block when on a wall.

Fields

Name Description Type Default Value
attached_block The block to place on the attached side. A block
attached_side The side to place the attached block on. A direction
other_block The block to place otherwise. A block

Example

{
  "type": "minecraft:attached_to_side",
  "attached_block": "minecraft:torch",
  "attached_side": "down",
  "other_block": "minecraft:wall_torch"
}
blocks/block_pickers/start.1715093754.txt.gz · Last modified: 2024/05/07 14:55 by errorcraft