☢️操作

通过需求,您可以定义成功和失败后的操作。以下是可以执行的操作列表。

示例: 您需要像这样创建操作列表:

success_actions:
  - type: player_command
    commands:
      - "firstcommand"
      - "seconds commands %player%"
  - type: console_command
    commands:
      - "firstcommand"
      - "seconds commands %player%"      
  - type: message
    messages:
      - "firstcommand"
      - "seconds commands %player%"   

您可以为列表中的每个项目添加延迟(以 ticks 为单位)。这样做:

success_actions:
  - type: player_command
    delay: 10 # 10 ticks
    commands:
      - "firstcommand"
      - "seconds commands %player%"

Last updated