User Tools

Site Tools


blocks:block_pickers:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
blocks:block_pickers:start [2024/05/07 14:55] – ↷ Page moved and renamed from block_placement:block_pickers to blocks:block_pickers:start errorcraftblocks:block_pickers:start [2024/05/07 15:04] (current) – remove block picker types as they are now on their own pages errorcraft
Line 1: Line 1:
 ====== Block Pickers ====== ====== Block Pickers ======
 Block pickers determine the block to use to place as a block state in the world. 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+The block picker type is determined by the ''type'' field, and all types are found in the sidebar
-You may also inline it by only specifying the block, in which case [[#minecraft:simple]] is used. +You may also inline it by only specifying block, in which case [[blocks:block_pickers:simple]] is used.
- +
-===== minecraft:simple ===== +
-Always places the block specified. +
- +
- +
-==== Fields ==== +
-^  Name  ^  Description  ^  Type  ^  Default Value  ^ +
-| ''block'' | The block to place. | A block | | +
- +
- +
-==== Example ==== +
-<code javascript> +
-"minecraft:cobblestone" +
-</code> +
-<code javascript> +
-+
-  "type": "minecraft:simple", +
-  "block": "minecraft:cobblestone" +
-+
-</code> +
- +
- +
-===== 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 ==== +
-<code javascript> +
-+
-  "type": "minecraft:attached_to_side", +
-  "attached_block": "minecraft:torch", +
-  "attached_side": "down", +
-  "other_block": "minecraft:wall_torch" +
-+
-</code>+
blocks/block_pickers/start.1715093754.txt.gz · Last modified: 2024/05/07 14:55 by errorcraft