Repository navigation
Actions
Dan Alexander edited this page Nov 3, 2026
·
1 revision
Reusable item and placed-block actions supported by the content runtime.
Documentation for VoxelCore v1.0.0. Home · Installation · Compatibility
Items and blocks can declare reusable event actions. For example, a 2D ore item can place its corresponding block:
items:
ruby_ore:
material: minecraft:paper
render:
model: mypack:item/ruby_ore
events:
interact:
right:
actions:
- type: set_block
block: ruby_ore
target: relative
replace: air_only
consume: 1Item triggers are interact.right, interact.right_shift, interact.left, and interact.left_shift. Block triggers are placed_block.interact and placed_block.break.
Available actions are:
-
set_block:block, optionaltarget(relative,clicked, ortarget),replace, andconsume -
remove_block: optionaltarget -
command:commandand optionalexecutor(playerorconsole) -
give_item/drop_item:itemand optionalamount -
message:text cancel
Command and message strings support {player}, {player_uuid}, {world}, {x}, {y}, {z}, {item_id}, and {block_id} placeholders. Unknown action keys and missing content references fail validation rather than being ignored.
Getting started
Content authoring
Visuals and packs
Administration
Maintainers