๐งฑ Block Item
Places a block when right-clicking on any valid surface.
items:
default:palm_sapling:
behavior:
type: block_item
block: default:palm_sapling # Reference an existing block by ID
The block field also accepts an inline block definition โ the block is registered under the item's own ID:
items:
default:fairy_flower:
behavior:
type: block_item
block: # Inline: defines a new block
settings:
template:
- default:hardness/none
- default:sound/grass
overrides:
push_reaction: destroy
map_color: 19
behavior:
- type: bush_block
bottom_blocks:
- minecraft:farmland
loot:
template: default:loot_table/self
state:
auto_state: sugar_cane
models:
- path: minecraft:block/custom/fairy_flower