Credits
Thanks to @Joeychu#2261,... we are able to provide you with a bunch of examples of how achievements can be set up.
This is meant to be a learning resource, not all achievements are related to each other or work with each other.
Table of Contents:
Examples
Little Miner
Created by: Joeychu
Break any stone block 100 times to receive the achievements. With a cool flame effect upon completion.
LITTLE_MINER:
Display: 'Little Miner'
Description: 'Break a Total of 100 Blocks of any Stone.'
Category: MYTHIC_ACHIEVEMENTS
Frame: CHALLENGE
Icon:
Material: STONE
Criteria:
BLOCKBREAKING:
Type: BREAK_BLOCK
Block: STONE,ANDESITE,GRANITE,DIORITE,DEEPSLATE
Amount: 100
Reward:
Message: '&6&lCongrationlations&r on your Achievement! Your rewards are a new Pickaxe, 100 exp'
Drops:
- DIAMOND_PICKAXE
- EXPERIENCE 100
Skills:
- particles{p=flame;a=50;s=0.1} @self
Dwarfen
Created by: Joeychu
Break any stone block 1000 times to receive the achievements.
DWARFEN:
Display: 'Dwarfen'
Description: 'Break a Total of 1000 Blocks of any Stone.'
Category: MYTHIC_ACHIEVEMENTS
Parent: LITTLE_MINER
Frame: GOAL
Icon:
Material: POLISHED_DIORITE
Criteria:
BLOCKBREAKING:
Type: BREAK_BLOCK
Block: STONE,ANDESITE,GRANITE,DIORITE,DEEPSLATE
Amount: 1000
Reward:
Message: '&6&lCongrationlations&r on your Achievement! Your rewards are a new Pickaxe and 1000 exp'
Drops:
- NETHERITE_PICKAXE
- EXPERIENCE 1000
Skills:
- particles{p=flame;a=50;s=0.1} @self
- cmd{c="w <trigger.name> Good Job <trigger.name>!"}
Creature of the Dark
Created by: Joeychu
Kill 10 of each type of monster specified in the Criteria while being in a dark space. Usually caves.
CREATURE_OF_THE_DARK:
Display: 'Creature of the Dark'
Description: 'Kill 10 Skeletons, Zombies and Spiders each while in caves.'
Category: MYTHIC_ACHIEVEMENTS
Frame: TASK
Icon:
Material: SKELETON_SKULL
Criteria:
SKELETON:
Type: KILL_MOB_TYPE
EntityType: SKELETON
Amount: 10
Conditions:
- inside true
SPIDER:
Type: KILL_MOB_TYPE
EntityType: SPIDER
Amount: 10
Conditions:
- inside true
ZOMBIE:
Type: KILL_MOB_TYPE
EntityType: ZOMBIE
Amount: 10
Conditions:
- inside true
Reward:
Message: '&6&lCongrationlations&r on your Achievement! Your rewards are a new Sword and 100 exp'
Drops:
- DIAMOND_SWORD
- EXPERIENCE 100
Skills:
- particles{p=flame;a=50;s=0.1} @self
- cmd{c="w <trigger.name> Good Job <trigger.name>!"}
Getting Rich
Created by: Joeychu
Utilizing the CONDITIONAL criteria it checks every 5 seconds if the player has a stack of golden blocks in their inventory.
GETTING_RICH:
Display: 'Getting Rich'
Description: 'Have a stack of Gold Blocks in your inventory.'
Category: MYTHIC_ACHIEVEMENTS
Frame: CHALLENGE
Icon:
Material: GOLD_BLOCK
Criteria:
BONED:
Type: CONDITIONAL
CheckInterval: 100
Conditions:
- hasitem{i=GOLD_BLOCK;amount=64} true
Reward:
Skills:
# item can be a mythic item
- drop{i=SmallFortune}
Kingdom Of Sand
Created by: Joeychu
Placing a total of 100 sand blocks will grant you this achievement. Then you will have 64 more sands to make some windows for your house.
KINGDOM_OF_SAND:
Display: 'Building a Kingdom of Sand'
Description: 'Place a Total of 100 Sand Blocks'
Category: MYTHIC_ACHIEVEMENTS
Frame: CHALLENGE
Icon:
Material: SAND
Criteria:
BLOCKBREAKING:
Type: PLACE_BLOCK
Block: SAND
Amount: 100
Reward:
Drops:
- SAND 64