on join:
if {pumpkin.count.%player%} is not set:
set {pumpkin.count.%player%} to 0
on load:
set {pumpkin.prefix} to "&7[&6&lPUMPKIN HUNT&7]"
set {reward.command} to "/say [p] just found all Pumpkings!"
# [p] is variable for player
command /setpumpkin []:
permission: pumpking.set
permission message: No permission!
trigger:
if arg-1 is not set:
send "%{pumpkin.prefix}% &7Please put Head Number &d[1-25]"
stop
if arg-1 is set:
if arg-1 is "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9" or "10" or "11" or "12" or "13" or "14" or "15" or "16" or "17" or "18" or "19" or "20" or "21" or "22" or "23" or "24" or "25":
set {pumpkin.%arg-1%} to location of targeted block
send "%{pumpkin.prefix}% &aYou have set &d&l%arg-1% &aHead"
else:
send "%{pumpkin.prefix}% &7Please put Head Number &d[1-25]"
stop
command /delpumpkin []:
permission: pumpking.del
permission message: No permission!
trigger:
if arg-1 is not set:
send "%{pumpkin.prefix}% &7Please put Head Number &d[1-25]"
stop
if arg-1 is set:
if arg-1 is "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9" or "10" or "11" or "12" or "13" or "14" or "15" or "16" or "17" or "18" or "19" or "20" or "21" or "22" or "23" or "24" or "25":
delete {pumpkin.%arg-1%}
send "%{pumpkin.prefix}% &aYou have removed &d&l%arg-1% &aHead"
else:
send "%{pumpkin.prefix}% &7Please put Head Number &d[1-25]"
stop
on right click:
if location of event-block is {pumpkin.1}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.1.%player%} is not set:
set {pumpkin.picked.1.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.2}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.2.%player%} is not set:
set {pumpkin.picked.2.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.3}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.3.%player%} is not set:
set {pumpkin.picked.3.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.4}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.4.%player%} is not set:
set {pumpkin.picked.4.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.5}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.5.%player%} is not set:
set {pumpkin.picked.5.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.6}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.6.%player%} is not set:
set {pumpkin.picked.6.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.7}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.7.%player%} is not set:
set {pumpkin.picked.7.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.8}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.8.%player%} is not set:
set {pumpkin.picked.8.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.9}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.9.%player%} is not set:
set {pumpkin.picked.9.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.10}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.10.%player%} is not set:
set {pumpkin.picked.10.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.11}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.11.%player%} is not set:
set {pumpkin.picked.11.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.12}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.12.%player%} is not set:
set {pumpkin.picked.12.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.13}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.13.%player%} is not set:
set {pumpkin.picked.13.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.14}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.14.%player%} is not set:
set {pumpkin.picked.14.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.15}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.15.%player%} is not set:
set {pumpkin.picked.15.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.16}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.16.%player%} is not set:
set {pumpkin.picked.16.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.17}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.17.%player%} is not set:
set {pumpkin.picked.17.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.18}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.18.%player%} is not set:
set {pumpkin.picked.18.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.19}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.19.%player%} is not set:
set {pumpkin.picked.19.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.20}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.20.%player%} is not set:
set {pumpkin.picked.20.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.21}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.21.%player%} is not set:
set {pumpkin.picked.21.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.22}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.22.%player%} is not set:
set {pumpkin.picked.22.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.23}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.23.%player%} is not set:
set {pumpkin.picked.23.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.24}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.24.%player%} is not set:
set {pumpkin.picked.24.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."
if location of event-block is {pumpkin.25}:
if {pumpkin.count.%player%} is 25:
send "%{pumpkin.prefix}% &aCongratulations! You have found all &a&l25 &aHeads!"
replace all "[p]" with "%player%" in {reward.command}
execute console command "%{reward.command}%"
stop
if {pumpkin.picked.25.%player%} is not set:
set {pumpkin.picked.25.%player%} to true
add 1 to {pumpkin.count.%player%}
send "%{pumpkin.prefix}% &aYou found Pumkin! &7[&c%{pumpkin.count.%player%}%&7/&a25&7]"
else:
send "%{pumpkin.prefix}% &cYou already found that Pumpkin."