items:item_components:block
Table of Contents
minecraft:block
The minecraft:block
item component allows its user to place a block state.
The block used is obtained from the specified block picker when you use it on a block, which then determines the block state to place.
Fields
Name | Description | Type | Default Value |
---|---|---|---|
block | The block to place. | A block picker | |
operator_only | Whether only operated players may place this block or not. | An optional boolean | false |
Example
{ "block": "minecraft:cobblestone" }
items/item_components/block.txt · Last modified: 2024/05/07 16:55 by errorcraft