Blocks/Furnitures events
Add special behaviour on your blocks/furnitures based on some events
Using these 2 special events you can create machines that execute command, play sounds/particles on right click or shift right click
1
events:
2
right_click_placed:
3
play_sound: knife
4
play_particle: CRIT_MAGIC
5
play_effect: SMOKE
6
execute_command:
7
as_console: true
8
#{player} will be automatically replaced with player name
9
command: 'heal {player}'
10
reduce_durability: 1
11
# ....
12
shift_right_click_placed:
13
play_sound: knife
14
play_particle: CRIT_MAGIC
15
# ....
Copied!
Copy link