examples

Examples

Example achievements.yml

#The achievement ID used to check what achievements a player has gotten.
1: 

  #The name of the achievement. Can be gotten in messages by using %name%
  name: TestAchievement
  description: Break 500 blocks and place 10 stone blocks to get this achievement!

  goals:

  #You have to break 500 blocks to get this.
  - BLOCK_BREAK 500 TOTAL

  #You have to place 10 blocks of itemID 1 with itemData 0 to get this (true means breaking the block)
  - BLOCK_PLACE 10 1 0 true

  rewards:

    #You get 50 moneyz through Vault
    money: 50

    # You get 10 of itemId 35 with itemData 3, and 10 of itemId 1.
    items: 35.3,10;1,10

    commands:

    #the player will perform /stats %player%
    - stats %player%

    consoleCommands:

    #the console will perform /pex promote %player%
    - pex promote %player%

  onComplete:

    messages:

    #These messages will be sent to the player once he's done with the achievement. No other messages will be sent.
    - You\'ve completed the %name% achievement!
    - &4You got some money and stuffs.

    #%achievement% will be replaced with a JSON formatted hover-able description of the achievement
    broadcast: "&4%player% got the %achievement% achievement!"

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes