Skip to main content

Block Events

Block events trigger when players specifically interact with functional blocks.

Event Library

Configuration

barrel_open_event

Triggers when a player opens a barrel. locationLocation

Specific barrel location to monitor (optional).

barrel_close_event

Triggers when a player closes a barrel. locationLocation

Specific barrel location to monitor (optional).

beacon_power_event

Triggers when a beacon applies a power effect. effectTypePotionEffectType

The effect being applied (e.g. SPEED, REGENERATION).

cauldron_fill_event

Triggers when liquid is added to a cauldron. contentTypeCauldronType

Type of liquid: WATER, LAVA, POWDER_SNOW.

cauldron_empty_event

Triggers when liquid is removed from a cauldron. contentTypeCauldronType

Type of liquid removed.

jukebox_play_event

Triggers when a music disc is inserted. discMaterial

The specific music disc material (e.g. MUSIC_DISC_CAT).

Examples

cauldron_fill_event:
contentType: LAVA
actions:
- message_action:
message: "<red>Careful with that hot lava!"
jukebox_play_event:
disc: MUSIC_DISC_PIGSTEP
actions:
- particle_action:
particle: NOTE