Skip to content

ACMD Examples

RonanTR edited this page Sep 21, 2024 · 3 revisions

Examples of acmd that are usefull

Here are examples of acmd that can be placed in the commands.yml file in the ACMD plugin config folder.

Set ingame time to day every real life morning and display a message

acmd0:
  active: true
  TaskParameters:
    name: wakeupAll
    cycle: 200
    delay: 0
    repetition: 1
    running: false
    commands:
    - time set day
    message: §5Time to wake up :D
  DailySchedulerParameters:
    time: 7H00

feed every one in a push of a button (based on essentials feed command)

acmd1:
  active: true
  TaskParameters:
    name: feed
    cycle: 0
    delay: 0
    repetition: 1
    running: false
    commands:
    - feed *
    message: §6Have a meal !
  DailySchedulerParameters:
    time: ''

Spawn a army of zombies 1 by one 10 times with a delay of 200 ticks between each in a push of a button !

You will need to change coordonates of the summon command to test it in your world

acmd2:
  active: true
  TaskParameters:
    name: spawnArmy
    cycle: 200
    delay: 0
    repetition: 10
    running: false
    commands:
    - summon minecraft:zombie 50 64 80
    message: ''
  DailySchedulerParameters:
    time: ''

When Server starts, say something

acmd2:
  active: true
  TaskParameters:
    name: On_start
    cycle: 200
    delay: 0
    repetition: 1
    running: false
    commands:
    - say someting
    message: ''
  DailySchedulerParameters:
    time: ''
  TriggerParameters:
    trigger: 'onServerEnable'

note that you can use these trigger values: onPlayerJoin, onPlayerQuit, onServerEnable Soon you will be able to use the player that joined inside of the acmd as a placeHolder.