🎬Action Format

The action format will consist of several options.

Supported Placeholders

MythicTotem supports those placeholders in ActionFormat and ConditionFormat.

  • %player%

  • %player_x%

  • %player_y%

  • %player_z%

  • %player_yaw% (Added in 2.1.5)

  • %player_pitch% (Added in 2.1.5)

  • %block_x%

  • %block_y%

  • %block_z%

  • %world%

  • %totem_start_x% (Added in 2.5.2)

  • %totem_start_y% (Added in 2.5.2)

  • %totem_start_z% (Added in 2.5.2)

  • %totem_column% (Added in 2.5.2)

  • %totem_raw% (Added in 2.5.2)

  • %totem_layout% (Added in 4.2.5)

  • %totem_id% (Added in 4.2.5)

  • %totem_center_x%

  • %totem_center_y%

  • %totem_center_z%

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!'

Title

Send title to the player, support the color code.

actions:
  1:
    type: title
    main-title: 'Good day'
    sub-title: 'Not bad'
    fade-in: 10
    stay: 70
    fade-out: 30

Particle

actions:
  1: 
    type: particle
    particle: HEART
    count: 20
    offset-x: 0.3
    offset-y: 1.0
    offset-z: 0.3
    speed: 0.01

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

MythicMobs spawn

Require MythicMobs.

actions:
  1:
    type: mythicmobs_spawn
    entity: Super_Skeleton
    level: 1 # Optional
    world: LOBBY # Optional
    x: 100.0 # Optional
    y: 2.0 # Optional
    z: -100.0 # Optional
    block-as-trigger: true # Optional

Want to summon mobs at center of totem, try this config!

actions:
  1:
    type: mythicmobs_spawn
    entity: Super_Skeleton
    level: 1 # Optional
    world: LOBBY # Optional
    x: '%totem_center_x%' # Optional
    y: '%totem_center_y%' # Optional
    z: '%totem_center_z%' # Optional
    block-as-trigger: true # Optional

Delay

Make the action run after X ticks.

actions:
  1:
    type: delay
    time: 50
    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.

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

Any

Randomly choose specified amount of actions to execute.

general-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

Conditional

Only players meet the conditions you set here will be able to execute the action.

general-actions:
  1:
    type: conditional
    conditions:
      1: 
        type: world
        world: lobby
    actions:
      1:
        type: entity_spawn
        entity: ZOMBIE

Last updated