A small plugin to provide a bit of halloween action. You just place some heads on random places. Then you type /cs uuid into your chat and right click the head to get it's uuid. Paste the uuid into the config.yml. If the player found all heads it automatically runs the command you provided in the config file.
Commands and permissions: /candysearch or /cs /cs uuid candysearch.uuid -> get the uuid of the head /cs reset candysearch.reset-> reset your score /cs reload candysearch.reload -> reloads config.yml
Code (Text):
# Set this to true to allow multi world support
# If multi world is active the player can search heads in world_1 and get a reward
# and also in world_2 and get a reward and so on.
multi_world: false
# The UUID of the head that should be right-clicked to get a candy
# Use this if multi_world is disabled
head_uuid: "04049c90-d3e9-4621-9caf-0000aaa23703"
# The UUID of the heads that should be right-clicked to get a candy
# Use this if multi_world is enabled
heads:
world: "04049c90-d3e9-4621-9caf-0000aaa23703"
world_nether: "04049c90-d3e9-4621-9caf-0000aaa23703"
# The amount of heads a player should click until he gets his reward
amount: 10
# The command that should be executed if a player found all candies (without /)
# %player% is a placeholder and will be replaced with the players name
# Use this if multi_world is disabled
command: "give %player% minecraft:diamond"
# The commands that should be executed if a player found all candies in the defined world (without /)
# %player% is a placeholder and will be replaced with the players name
# Use this if multi_world is enabled
commands:
world: "give %player% minecraft:diamond"
world_nether: "give %player% minecraft:obsidian"