Action Sequences are a set of JSON configured actions that are loaded by the datapack system that allow for chaining actions together.
Actions
Actions themselves are single and usually simple tasks that preform a operation on a player, such as sending them a message or playing a sound.
Action type | Description | Options |
---|---|---|
chat_message | Sends the player a message , can use all formatting codes and options |
message a String chat message that supports all formatting options. |
play_sound | Plays a sound at the players position | sound a String ResourceLocation of the sound to play, volume Float, default 1.0. pitch Float, default 1.0 |
tick_delay | A delay function that allows delaying the next actions in the sequence, to preform a sort of animation | delay a Integer delay in ticks. |
A full list of actions can be found here: Actions
Examples
test_actions.json
[
{
"type": "chat_message",
"message": "Test message"
},
{
"type": "play_sound",
"sound": "minecraft:entity.enderman.teleport"
}
]
test_delay.json
[
{
"type": "chat_message",
"message": "Running action delay test"
},
{
"type": "play_sound",
"sound": "minecraft:block.note_block.bit"
},
{
"type": "tick_delay",
"delay": 20
},
{
"type": "play_sound",
"sound": "minecraft:block.note_block.bit"
},
{
"type": "tick_delay",
"delay": 20
},
{
"type": "play_sound",
"sound": "minecraft:block.note_block.bit"
},
{
"type": "tick_delay",
"delay": 20
},
{
"type": "play_sound",
"sound": "minecraft:block.note_block.bit",
"pitch": 1.5
}
]