Actions

Available Placeholders

  • {world}

  • {amount}

  • {player_x}

  • {player_y}

  • {player_z}

  • {player_pitch}

  • {player_yaw}

  • {player}

  • {amount} - The new item slot.

Sound

Send sound to player.

    actions:
      1:
        type: sound
        sound: 'ui.button.click'
        volume: 1
        pitch: 1

Message

Send a message to the player, support color code.

    actions:
      1:
        type: message
        message: 'Hello!'

Announcement

Send a message to all online players, support color code.

    actions:
      1:
        type: announcement
        message: 'Hello!'

Effect

Give players potion effect.

    actions:
      1:
        type: effect
        potion: BLINDNESS
        duration: 60
        level: 1
        ambient: true # Optional
        particles: true # Optional
        icon: true # Optional

Teleport

Teleport player to specified location.

    actions:
      1:
        type: teleport
        world: LobbyWorld
        x: 100
        y: 30
        z: 300
        pitch: 90 # Optional
        yaw: 0 # Optional

Player Command

Make the player excutes a command.

    actions:
      1:
        type: player_command
        command: 'tell Hello!'

Op Command

Make the player excutes a command as OP.

    actions:
      1:
        type: op_command
        command: 'tell Hello!'

Console Command

Make the console excutes a command.

    actions:
      1:
        type: console_command
        command: 'op {player}'

Spawn vanilla mobs

Spawn vanilla mobs.

    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE
        world: LOBBY # Optional
        x: 100.0 # Optional
        y: 2.0 # Optional
        z: -100.0 # Optional

Delay

Make the action run after X ticks.

    actions:
      1:
        type: delay
        time: 50
        wait-for-player: true
        actions:
          1:
            type: entity_spawn
            entity: ZOMBIE

Chance

Set the chance the action will be excuted, up to 100. 50 means this action has 50% chance to excute.

    actions:
      1:
        type: chance
        rate: 50
        actions:
          1:
            type: entity_spawn
            entity: ZOMBIE

Any

Randomly choose a action to execute.

    actions:
      1:
        type: any
        amount: 2
        actions:
          1:
            type: entity_spawn
            entity: ZOMBIE
          2:
            type: entity_spawn
            entity: SKELETON
          3:
            type: entity_spawn
            entity: WITHER

Last updated