Actions
Actions are basically things that happen inside events, you specify actions inside the events and they specify what should happen for the event when it is run.
# This is event 1 which will be run as soon as the disaster begins, all of these actions will be run with event 1
event 1:
# This is a disaster action this will start a level 5 acid storm silently
disaster 1:
type: 'acidstorm'
level: 5
broadcastAllowed: false
# This is a second disaster action so this will also start 4 level 6 earthquakes on random players
disaster 2:
type: 'earthquake'
level: 6
target: 'random'
targetAmount: 4
offset: 1
# This is a broadcast action, this will send everyone in the world the following message
broadcast 1:
message: '&cYou feel a cold chill down your spine..'
target: 'all'
# This is a sound action, this will play a sound. More about this in the Sound section
sound 1:
type: 'block_anvil_land'
target: 'all'
volume: 0.5
pitch: 0.5
# Amount of times the sound will repeat
repeat: 5
# Delay in ticks between repeats (20 ticks = 1 second)
intervalTicks: 60
location:
x: ~5
y: ~0
z: ~5Last updated