options:
bluetored: 10000000
purpletoblue: 5000000
greentopurple: 2500000
yellowtogreen: 2000000
lbtoyellow: 1500000
whitetolb: 1000000
emeraldtowhite: 750000
diamondtoemerald: 500000
goldtodiamond: 400000
irontogold: 300000
coaltoiron: 250000
melontocoal: 100000
pumpkintomelon: 50000
haytopumpkin: 10000
command /genget <text> [<player>]:
permission: gen.give
permission message: &cNo permission!
trigger:
if arg-2 is set:
set {_p} to arg-2
else:
set {_p} to player
if arg-1 is "white":
give {_p} 1 white glazed terracotta named "&6&lWhite Gen" with lore "&7(Place To Use)"
if arg-1 is "lightblue":
give {_p} 1 light blue glazed terracotta named "&6&lLight Blue Gen" with lore "&7(Place To Use)"
if arg-1 is "yellow":
give {_p} 1 yellow glazed terracotta named "&6&lYellow Gen" with lore "&7(Place To Use)"
if arg-1 is "green":
give {_p} 1 lime glazed terracotta named "&6&lGreen Gen" with lore "&7(Place To Use)"
if arg-1 is "purple":
give {_p} 1 purple glazed terracotta named "&6&lPurple Gen" with lore "&7(Place To Use)"
if arg-1 is "blue":
give {_p} 1 blue glazed terracotta named "&6&lBlue Gen" with lore "&7(Place To Use)"
if arg-1 is "red":
give {_p} 1 red glazed terracotta named "&6&lRed Gen" with lore "&7(Place To Use)"
if arg-1 is "emerald":
give {_p} 1 emerald block named "&6&lEmerald Gen" with lore "&7(Place To Use)"
if arg-1 is "diamond":
give {_p} 1 diamond block named "&6&lDiamond Gen" with lore "&7(Place To Use)"
if arg-1 is "gold":
give {_p} 1 gold block named "&6&lGold Gen" with lore "&7(Place To Use)"
if arg-1 is "iron":
give {_p} 1 iron block named "&6&lIron Gen" with lore "&7(Place To Use)"
if arg-1 is "coal":
give {_p} 1 coal block named "&6&lCoal Gen" with lore "&7(Place To Use)"
if arg-1 is "melon":
give {_p} 1 melon named "&6&lMelon Gen" with lore "&7(Place To Use)"
if arg-1 is "pumpkin":
give {_p} 1 pumpkin named "&6&lPumpkin Gen" with lore "&7(Place To Use)"
if arg-1 is "wheat":
give {_p} 1 hay block named "&6&lWheat Gen" with lore "&7(Place To Use)"
on place of emerald block or diamond block or gold block or iron block or coal block or melon or pumpkin or hay block or white glazed terracotta or light blue glazed terracotta or yellow glazed terracotta or lime glazed terracotta or purple glazed terracotta or blue glazed terracotta or red glazed terracotta:
set {_p} to player
set {_u} to player's uuid
if {gc::%{_u}%} >= {gencap::%{_u}%}:
cancel event
send "&f" to {_p}
send "&a&lGenerator &7» &aYou have reached the max generator limit" to {_p}
send "&aTo upgrade this purchase a rank at &a/buy" to {_p}
send "&f" to {_p}
stop
wait 2 ticks
if event-block is a hay block:
add location of event-block to {gens::%{_u}%::wheat::*}
add 1 to {gc::%{_u}%}
if event-block is a emerald block:
add location of event-block to {gens::%{_u}%::emerald::*}
add 1 to {gc::%{_u}%}
if event-block is a diamond block:
add location of event-block to {gens::%{_u}%::diamond::*}
add 1 to {gc::%{_u}%}
if event-block is a gold block:
add location of event-block to {gens::%{_u}%::gold::*}
add 1 to {gc::%{_u}%}
if event-block is a iron block:
add location of event-block to {gens::%{_u}%::iron::*}
add 1 to {gc::%{_u}%}
if event-block is a coal block:
add location of event-block to {gens::%{_u}%::coal::*}
add 1 to {gc::%{_u}%}
if event-block is a melon:
add location of event-block to {gens::%{_u}%::melon::*}
add 1 to {gc::%{_u}%}
if event-block is a pumpkin:
add location of event-block to {gens::%{_u}%::pumpkin::*}
add 1 to {gc::%{_u}%}
if event-block is a white glazed terracotta:
add location of event-block to {gens::%{_u}%::white::*}
add 1 to {gc::%{_u}%}
if event-block is a light blue glazed terracotta:
add location of event-block to {gens::%{_u}%::lb::*}
add 1 to {gc::%{_u}%}
if event-block is a yellow glazed terracotta:
add location of event-block to {gens::%{_u}%::yellow::*}
add 1 to {gc::%{_u}%}
if event-block is a lime glazed terracotta:
add location of event-block to {gens::%{_u}%::lime::*}
add 1 to {gc::%{_u}%}
if event-block is a purple glazed terracotta:
add location of event-block to {gens::%{_u}%::purple::*}
add 1 to {gc::%{_u}%}
if event-block is a blue glazed terracotta:
add location of event-block to {gens::%{_u}%::blue::*}
add 1 to {gc::%{_u}%}
if event-block is a red glazed terracotta:
add location of event-block to {gens::%{_u}%::red::*}
add 1 to {gc::%{_u}%}
on left click on emerald block or diamond block or gold block or iron block or coal block or pumpkin or hay block or melon or white glazed terracotta or light blue glazed terracotta or yellow glazed terracotta or lime glazed terracotta or purple glazed terracotta or blue glazed terracotta or red glazed terracotta:
if player is not sneaking:
if event-block is emerald block:
if {gens::%player's uuid%::emerald::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::emerald::*}
set event-block to air
give player 1 emerald block named "&6&lEmerald Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is diamond block:
if {gens::%player's uuid%::diamond::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::diamond::*}
set event-block to air
give player 1 diamond block named "&6&lDiamond Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is gold block:
if {gens::%player's uuid%::gold::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::gold::*}
set event-block to air
give player 1 gold block named "&6&lGold Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is iron block:
if {gens::%player's uuid%::iron::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::iron::*}
set event-block to air
give player 1 iron block named "&6&lIron Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is coal block:
if {gens::%player's uuid%::coal::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::coal::*}
set event-block to air
give player 1 coal block named "&6&lCoal Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is pumpkin:
if {gens::%player's uuid%::pumpkin::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::pumpkin::*}
set event-block to air
give player 1 pumpkin named "&6&lPumpkin Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is hay block:
if {gens::%player's uuid%::wheat::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::wheat::*}
set event-block to air
give player 1 hay block named "&6&lWheat Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is melon:
if {gens::%player's uuid%::melon::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::melon::*}
set event-block to air
give player 1 melon named "&6&lMelon Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is white glazed terracotta:
if {gens::%player's uuid%::white::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::white::*}
set event-block to air
give player 1 white glazed terracotta named "&6&lWhite Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is light blue glazed terracotta:
if {gens::%player's uuid%::lb::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::lb::*}
set event-block to air
give player 1 light blue glazed terracotta named "&6&lLight Blue Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is yellow glazed terracotta:
if {gens::%player's uuid%::yellow::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::yellow::*}
set event-block to air
give player 1 yellow glazed terracotta named "&6&lYellow Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is lime glazed terracotta:
if {gens::%player's uuid%::lime::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::lime::*}
set event-block to air
give player 1 lime glazed terracotta named "&6&lGreen Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is purple glazed terracotta:
if {gens::%player's uuid%::purple::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::purple::*}
set event-block to air
give player 1 purple glazed terracotta named "&6&lPurple Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is blue glazed terracotta:
if {gens::%player's uuid%::blue::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::blue::*}
set event-block to air
give player 1 blue glazed terracotta named "&6&lBlue Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else if event-block is red glazed terracotta:
if {gens::%player's uuid%::red::*} contains location of event-block:
play sound "entity.item.pickup" with volume 3 to the player
remove 1 from {gc::%player's uuid%}
remove location of event-block from {gens::%player's uuid%::red::*}
set event-block to air
give player 1 red glazed terracotta named "&6&lRed Gen" with lore "&7(Place To Use)"
send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player
else:
cancel event
play sound "entity.villager.no" with volume 3 to the player
send "&6&lGenerator &7» &eThis is not your generator!"
on break of emerald block or diamond block or gold block or iron block or coal block or pumpkin or hay block or melon or white glazed terracotta or light blue glazed terracotta or yellow glazed terracotta or lime glazed terracotta or purple glazed terracotta or blue glazed terracotta or red glazed terracotta:
cancel event
command /globalbooster [<offline player>]:
permission: "*"
permission message: &cNo permission!
trigger:
set {_p} to arg-1
give {_p} 1 of nether star named "&6&lGlobal Booster" with lore "&e&o(Right-Click to Activate a Global Booster)"
send "&eYou have been granted a &6&lGlobal Booster! &e&o(Right-Click to Activate a Global Booster)" to arg-1
on rightclick holding a nether star:
if name of player's held item is "&6&lGlobal Booster":
if {globalbooster} is false:
remove held item from player's inventory
set {globalbooster} to true
broadcast ""
broadcast "&6&lGlobal Booster &ehas been activated for 1 hour by &e%player%!"
broadcast " &e&o(Drop Amount for Gens 2x)"
broadcast ""
set {globaltime} to 60
remove bossbar "globaloff"
create bossbar title "&6&lGlobal Booster: &e%{globaltime}% &eMinutes" and id "global" for all players with progress 100 with colors yellow
wait 1 hour
broadcast ""
broadcast "&6&lGlobal Booster &ehas expired, buy another one on &7/buy!"
broadcast ""
set {globalbooster} to false
remove bossbar "global"
else:
send "&ePlease wait, there is currently a &6Global Booster &egoing on at this time!"
command /globalboosteroff:
permission: "*"
permission message: &cNo permission!
trigger:
set {globalbooster} to false
broadcast ""
broadcast "&6&lGlobal Booster &ehas been disabled by &7%player%!"
broadcast ""
on load:
if {globalbooster} is not set:
set {globalbooster} to false
every minute:
if {globalbooster} is false:
remove bossbar "global"
create bossbar title "&6&lCheck out our server store &e&l/buy" and id "globaloff" for all players with progress 100 with colors yellow
else if {globalbooster} is true:
remove bossbar "global"
remove 1 from {globaltime}
create bossbar title "&6&lGlobal Booster: &e%{globaltime}%&e Minutes" and id "global" for all players with progress 100 with colors yellow
on join:
if {gencap::%player's uuid%} is not set:
set {gencap::%player's uuid%} to 25
if {gc::%player's uuid%} is not set:
set {gc::%player's uuid%} to 0
if {globalbooster} is false:
remove bossbar "global"
create bossbar title "&e&lStore &8• &e&n/buy" and id "globaloff" for all players with progress 100 with colors yellow
else if {globalbooster} is true:
remove bossbar "global"
remove 1 from {globaltime}
create bossbar title "&6&lGlobal Booster: &e%{globaltime}% &eMinutes" and id "global" for all players with progress 100 with colors yellow
command /resetgen [<offline player>]:
permission: op
trigger:
if arg-1 is set:
set {_u} to arg-1's uuid
send "&3&lAll gens for &b&l%arg-1% &3&lwere reset! &7(A relog for this player is recommended)" to player
else:
set {_u} to player's uuid
send "&3&lAll gens for &b&l%player% &3&lwere reset! &7(A relog for this player is recommended)" to player
loop {gens::%{_u}%::*}:
loop {gens::%{_u}%::%loop-value%::*}:
set block at location of loop-value-2 to air
delete {gens::%{_u}%::%loop-value-1%::%loop-value-2%}
delete {gens::%{_u}%::*}
set {gc::%{_u}%} to 0
on left click on emerald block or diamond block or gold block or iron block or coal block or pumpkin or hay block or melon or white glazed terracotta or light blue glazed terracotta or yellow glazed terracotta or lime glazed terracotta or purple glazed terracotta or blue glazed terracotta or red glazed terracotta:
if player is sneaking:
set {_loc} to location of event-block
if {gens::%player's uuid%::red::*} contains {_loc}:
send action bar "&b&lGenerator &B» &fThis generator is already maxed out!" to player
else if {gens::%player's uuid%::diamond::*} contains {_loc}:
set {_price} to {@diamondtoemerald}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&6&lGenerator &7» &eYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::diamond::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget emerald %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::gold::*} contains {_loc}:
set {_price} to {@goldtodiamond}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::gold::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget diamond %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::iron::*} contains {_loc}:
set {_price} to {@irontogold}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&6&lGenerator &7» &eYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::iron::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget gold %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::coal::*} contains {_loc}:
set {_price} to {@coaltoiron}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::coal::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget iron %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::melon::*} contains {_loc}:
set {_price} to {@melontocoal}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::melon::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget coal %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::pumpkin::*} contains {_loc}:
set {_price} to {@pumpkintomelon}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::pumpkin::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget melon %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::wheat::*} contains {_loc}:
set {_price} to {@haytopumpkin}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGeneratoar &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::wheat::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget pumpkin %player%"
set event-block to air
send action bar "&a&lGenerator &7» &eYou ranked up your gen!" to player
else if {gens::%player's uuid%::emerald::*} contains {_loc}:
set {_price} to {@emeraldtowhite}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::emerald::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget white %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::white::*} contains {_loc}:
set {_price} to {@whitetolb}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::white::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget lightblue %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::lb::*} contains {_loc}:
set {_price} to {@lbtoyellow}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::lb::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget yellow %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::yellow::*} contains {_loc}:
set {_price} to {@yellowtogreen}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::yellow::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget green %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::lime::*} contains {_loc}:
set {_price} to {@greentopurple}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::lime::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget purple %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::purple::*} contains {_loc}:
set {_price} to {@purpletoblue}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::purple::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget blue %player%"
set event-block to air
send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player
else if {gens::%player's uuid%::blue::*} contains {_loc}:
set {_price} to {@bluetored}
if player's balance < {_price}:
if player's held item is air:
play sound "entity.villager.no" with volume 3 to player
send action bar "&6&lGenerator &7» &eYou need &7$%{_price}% &eto upgrade!" to player
stop
else:
send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player
stop
remove {_price} from balance of player
remove {_loc} from {gens::%player's uuid%::blue::*}
remove 1 from {gc::%player's uuid%}
make console execute command "genget red %player%"
set event-block to air
send action bar "&6&lGenerator &7» &aYou ranked up your gen!" to player
else:
cancel event
send "&aThis is not your generator!"
every 5 seconds:
loop all players:
if {globalbooster} is false:
drop 1 emerald above {gens::%loop-player's uuid%::emerald::*}
drop 1 diamond above {gens::%loop-player's uuid%::diamond::*}
drop 1 gold ingot above {gens::%loop-player's uuid%::gold::*}
drop 1 iron ingot above {gens::%loop-player's uuid%::iron::*}
drop 1 coal above {gens::%loop-player's uuid%::coal::*}
drop 1 melon slice above {gens::%loop-player's uuid%::melon::*}
drop 1 pumpkin pie above {gens::%loop-player's uuid%::pumpkin::*}
drop 1 wheat above {gens::%loop-player's uuid%::wheat::*}
drop 1 light gray dye above {gens::%loop-player's uuid%::white::*}
drop 1 light blue dye above {gens::%loop-player's uuid%::lb::*}
drop 1 yellow dye above {gens::%loop-player's uuid%::yellow::*}
drop 1 lime dye above {gens::%loop-player's uuid%::lime::*}
drop 1 purple dye above {gens::%loop-player's uuid%::purple::*}
drop 1 blue dye above {gens::%loop-player's uuid%::blue::*}
drop 1 red dye above {gens::%loop-player's uuid%::red::*}
if {globalbooster} is true:
drop 2 emerald above {gens::%loop-player's uuid%::emerald::*}
drop 2 diamond above {gens::%loop-player's uuid%::diamond::*}
drop 2 gold ingot above {gens::%loop-player's uuid%::gold::*}
drop 2 iron ingot above {gens::%loop-player's uuid%::iron::*}
drop 2 coal above {gens::%loop-player's uuid%::coal::*}
drop 2 melon slice above {gens::%loop-player's uuid%::melon::*}
drop 2 pumpkin pie above {gens::%loop-player's uuid%::pumpkin::*}
drop 2 wheat above {gens::%loop-player's uuid%::wheat::*}
drop 2 light gray dye above {gens::%loop-player's uuid%::white::*}
drop 2 light blue dye above {gens::%loop-player's uuid%::lb::*}
drop 2 yellow dye above {gens::%loop-player's uuid%::yellow::*}
drop 2 lime dye above {gens::%loop-player's uuid%::lime::*}
drop 2 purple dye above {gens::%loop-player's uuid%::purple::*}
drop 2 blue dye above {gens::%loop-player's uuid%::blue::*}
drop 2 red dye above {gens::%loop-player's uuid%::red::*}
command /sell:
trigger:
set {_multi} to 1 + {purchased_multi}
set {_e} to number of all emerald in player's inventory
set {_d} to number of all diamond in player's inventory
set {_g} to number of all gold ingot in player's inventory
set {_i} to number of all iron ingot in player's inventory
set {_c} to number of all coal in player's inventory
set {_m} to number of all melon slice in player's inventory
set {_p} to number of all pumpkin pie in player's inventory
set {_w} to number of all wheat in player's inventory
set {_d1} to number of all light gray dye in player's inventory
set {_d2} to number of all light blue dye in player's inventory
set {_d3} to number of all yellow dye in player's inventory
set {_d4} to number of all lime dye in player's inventory
set {_d5} to number of all purple dye in player's inventory
set {_d6} to number of all blue dye in player's inventory
set {_d7} to number of all red dye in player's inventory
remove all emerald, diamond, gold ingot, iron ingot, coal, melon slice, pumpkin pie, light gray dye, light blue dye, yellow dye, lime dye, purple dye, blue dye, red dye and wheat from player's inventory
set {_9} to {_d1} * 225 * {_multi}
set {_10} to {_d2} * 250 * {_multi}
set {_11} to {_d3} * 275 * {_multi}
set {_12} to {_d4} * 300 * {_multi}
set {_13} to {_d5} * 325 * {_multi}
set {_14} to {_d6} * 350 * {_multi}
set {_15} to {_d7} * 375 * {_multi}
set {_1} to {_e} * 200 * {_multi}
set {_2} to {_d} * 175 * {_multi}
set {_3} to {_g} * 150 * {_multi}
set {_4} to {_i} * 125 * {_multi}
set {_5} to {_c} * 100 * {_multi}
set {_6} to {_m} * 75 * {_multi}
set {_7} to {_p} * 50 * {_multi}
set {_8} to {_w} * 25 * {_multi}
play sound "block.note_block.chime" with volume 5 to player
set {_total} to {_1} + {_2} + {_3} + {_4} + {_5} + {_6} + {_7} + {_8} + {_9} + {_10} + {_11} + {_12} + {_13} + {_14} + {_15}
if {%player's uuid%.selltitle} is true:
send title "&a&LSELL ALL" with subtitle "&aYou sold all items for &7$%{_total}% &7(/selltitle to toggle this message)" to player for 3 seconds
add {_total} to player's balance
command /selltitle <text>:
trigger:
if arg-1 is set:
if arg-1 is "on":
set {%player's uuid%.selltitle} to true
send "&a&lGenPlots &8- &7The sell title is now &aon"
else if arg-1 is "off":
set {%player's uuid%.selltitle} to false
send "&a&lGenPlots &8- &7The sell title is now &coff"
else:
send "&a&lGenPlots &8- &7TIncorrect arguments. &a/selltitle (on/off)"
else if arg-1 is not set:
if {%player's uuid%.selltitle} is true:
set {%player's uuid%.selltitle} to false
send "&a&lGenPlots &8- &7The sell title is now &coff"
else if {%player's uuid%.selltitle} is false:
set {%player's uuid%.selltitle} to true
send "&a&lGenPlots &8- &7The sell title is now &aon"
command /resetallgens:
permission: op
trigger:
if executor is not console:
send "&cFor safety reasons this command can only be executed through console!" to player
stop
loop {gens::*}:
loop {gens::%loop-value-1%::*}:
loop {gens::%loop-value-1%::%loop-value-2%::*}:
set block at location of loop-value-3 to air
delete {gens::%loop-value-1%::%loop-value-2%::%loop-value-3%}
delete {gens::%loop-value%::*}
delete {gens::*}
delete {gc::*}
delete {gencap::*}
broadcast "&c&lEverything was reset!"
kick all players due to "&cRelog due to generator reset!"
Command /setgenslots [<player>] [<integer>]:
permission: *
permission message: &cNo!
trigger:
if arg-1 is not set:
send "&aGenPlots &8- &7You need to specify a player." to player
else:
if arg-2 is not set:
send "&aGenPlots &8- &7You need to specify a number" to player
else:
set {gencap::%arg-1's uuid%} to arg-2
send "&aGenerator &7| Your gen cap has been set to &6%arg-2%&7!" to arg-1
send "&aGenerator &7| You set &7%arg-1%&7's &7gen cap to &6%arg-2%&7!" to player