An incredibly simple plugin for executing commands when a group of advancements are made.
REQUIRES PLACEHOLDERAPI.
Advancements can be grouped into sets. When all the advancements in a set are made, all commands for the set will run.
config.yml
Code (YAML):
# Configuration file for AdvancementCommand plugin
#setting to true will cause the plugin to print extra information which may be useful for debugging.
#debug mode will spam your console! Turn it off when you're done.
debug
: false
# Define sets of advancements and commands
sets
:
#set names can be anything! They will be printed to console in debug mode!
set1
:
#namespaced paths for every advancement needed for this set
#other namespaces are possible if you have them
Advancements
:
-
"minecraft:story/craft_planks"
-
"minecraft:story/upgrade_tools"
#commands that will be run if the set is met.
#commands should not include the beginning /
#be sure to install any PlaceholderAPI expansions that are required.
#in debug mode, warnings will be displayed about possibly missing expansions.
Commands
:
-
"give %player_name% minecraft:diamond_pickaxe"
-
"tellraw %player_name% {\"text\
":\"Congratulations on completing the set!\
"}"
set2:
Advancements
:
-
"minecraft:story/smelt_iron"
-
"minecraft:story/enter_the_nether"
Commands
:
-
"give %player_name% minecraft:diamond_sword"
-
"tellraw %player_name% {\"text\
":\"You have completed the second set!\
"}"