You can add tiers to the skript if you know how:
on craft of emerald block:
cancel event
send title "&c&lDisabled."
on craft of diamond block:
cancel event
send title "&c&lDisabled."
on craft of coal block:
cancel event
send title "&c&lDisabled."
on craft of iron block:
cancel event
send title "&c&lDisabled."
on craft of sandstone:
cancel event
send title "&c&lDisabled."
on place of coal block:
if {Gens::%player's uuid%} is more than 9:
cancel event
send "&4Error: Maximum gen capacity has been reached."
stop
if {Gens::%player's uuid%} is less than 10:
set {_drop} to block above event-block
add {_drop} to {drops1::*}
message "&aPlaced a Tier 1 Generator"
add 1 to {Gens::%player's uuid%}
on break of coal block:
cancel event
set event-block to air
remove block above event-block from {drops1::*}
give player 1 coal block named "&7Generator - Tier 1"
message "&cBroke a Tier 1 Generator"
remove 1 from {Gens::%player's uuid%}
# iron
on place of iron block:
if {Gens::%player's uuid%} is more than 9:
cancel event
send "&4Error: Maximum gen capacity has been reached."
stop
if {Gens::%player's uuid%} is less than 10:
set {_drop} to block above event-block
add {_drop} to {drops2::*}
message "&aPlaced a Tier 2 Generator"
add 1 to {Gens::%player's uuid%}
on break of iron block:
cancel event
set event-block to air
remove block above event-block from {drops2::*}
give player 1 iron block named "&7Generator - Tier 2"
message "&cBroke a Tier 2 Generator"
remove 1 from {Gens::%player's uuid%}
# diamond
on place of diamond block:
if {Gens::%player's uuid%} is more than 9:
cancel event
send "&4Error: Maximum gen capacity has been reached."
stop
if {Gens::%player's uuid%} is less than 10:
set {_drop} to block above event-block
add {_drop} to {drops3::*}
message "&aPlaced a Tier 3 Generator"
add 1 to {Gens::%player's uuid%}
on break of diamond block:
cancel event
set event-block to air
remove block above event-block from {drops3::*}
give player 1 diamond block named "&7Generator - Tier 3"
message "&cBroke a Tier 3 Generator"
remove 1 from {Gens::%player's uuid%}
# emerald
on place of emerald block:
if {Gens::%player's uuid%} is more than 9:
cancel event
send "&4Error: Maximum gen capacity has been reached."
stop
if {Gens::%player's uuid%} is less than 10:
set {_drop} to block above event-block
add {_drop} to {drops4::*}
message "&aPlaced a Tier 4 Generator"
add 1 to {Gens::%player's uuid%}
on break of emerald block:
cancel event
set event-block to air
remove block above event-block from {drops4::*}
give player 1 diamond block named "&7Generator - Tier 4"
message "&cBroke a Tier 4 Generator"
remove 1 from {Gens::%player's uuid%}
# nether
on place of nether quartz ore:
if {Gens::%player's uuid%} is more than 9:
cancel event
send "&4Error: Maximum gen capacity has been reached."
stop
if {Gens::%player's uuid%} is less than 10:
set {_drop} to block above event-block
add {_drop} to {drops5::*}
message "&aPlaced a Tier 5 Generator"
add 1 to {Gens::%player's uuid%}
on break of nether quartz ore:
cancel event
set event-block to air
remove block above event-block from {drops5::*}
give player 1 diamond block named "&7Generator - Tier 5"
message "&cBroke a Tier 5 Generator"
remove 1 from {Gens::%player's uuid%}
# nether star
on place of soul sand:
if {Gens::%player's uuid%} is more than 9:
cancel event
send "&4Error: Maximum gen capacity has been reached."
stop
if {Gens::%player's uuid%} is less than 10:
set {_drop} to block above event-block
add {_drop} to {drops6::*}
message "&aPlaced a Tier 6 Generator"
add 1 to {Gens::%player's uuid%}
on break of soul sand:
cancel event
set event-block to air
remove block above event-block from {drops6::*}
give player 1 diamond block named "&7Generator - Tier 6"
message "&cBroke a Tier 6 Generator"
remove 1 from {Gens::%player's uuid%}
# obi
on place of sandstone:
if {Gens::%player's uuid%} is more than 9:
cancel event
send "&4Error: Maximum gen capacity has been reached."
stop
if {Gens::%player's uuid%} is less than 10:
set {_drop} to block above event-block
add {_drop} to {drops7::*}
message "&aPlaced a Tier 7 Generator"
add 1 to {Gens::%player's uuid%}
on break of sandstone:
cancel event
set event-block to air
remove block above event-block from {drops7::*}
give player 1 diamond block named "&7Generator - Tier 7"
message "&cBroke a Tier 7 Generator"
remove 1 from {Gens::%player's uuid%}
# Every 5 seconds
every 5 real seconds:
drop 1 coal named "&0Coal &e($5)" at {drops1::*}
drop 1 iron ingot named "&fIron Ingot &e($7.5)" at {drops2::*}
drop 1 diamond named "&bDiamond &e($10)" at {drops3::*}
drop 1 emerald named "&aEmerald &e($12.5)" at {drops4::*}
drop 1 nether quartz named "&fNether Quartz &e($15)" at {drops5::*}
drop 1 nether star named "&8Nether Star &e($17.5)" at {drops6::*}
drop 1 obsidian named "&5Obsidian &e($20)" at {drops7::*}
stop
# reset
on join:
if {Gens::%player's uuid%} is not set:
execute console command "esudo %player% resetgens"
command /resetgens:
trigger:
set {Gens::%player's uuid%} to 0
#gen give
command /gen [<player>] [<text>]:
permission: admin.console
trigger:
if arg-2 is "t1":
give arg-1 coal block named "&7Generator - Tier 1"
stop
if arg-2 is "t2":
give arg-1 iron block named "&7Generator - Tier 2"
stop
if arg-2 is "t3":
give arg-1 diamond block named "&7Generator - Tier 3"
stop
if arg-2 is "t4":
give arg-1 emerald block named "&7Generator - Tier 4"
stop
if arg-2 is "t5":
give arg-1 nether quartz ore named "&7Generator - Tier 5"
stop
if arg-2 is "t6":
give arg-1 soul sand named "&7Generator - Tier 6"
stop
if arg-2 is "t7":
give arg-1 sandstone named "&7Generator - Tier 7"
stop
# upgrade stick
on right click:
if clicked block is coal block:
if player's tool is stick:
if tool's name is "&a&lCoal > Iron":
remove stick named "&a&lCoal > Iron" from the player
set event-block to air
remove block above event-block from {drops1::*}
remove 1 from {Gens::%player's uuid%}
give player 1 iron block named "&7Generator - Tier 2"
stop
if clicked block is iron block:
if player's tool is stick:
if tool's name is "&b&lIron > Diamond":
remove stick named "&b&lIron > Diamond" from the player
set event-block to air
remove block above event-block from {drops2::*}
remove 1 from {Gens::%player's uuid%}
give player 1 diamond block named "&7Generator - Tier 3"
stop
if clicked block is diamond block:
if player's tool is stick:
if tool's name is "&c&lDiamond > Emerald":
remove stick named "&c&lDiamond > Emerald" from the player
set event-block to air
remove block above event-block from {drops3::*}
remove 1 from {Gens::%player's uuid%}
give player 1 emerald block named "&7Generator - Tier 4"
stop
if clicked block is emerald block:
if player's tool is stick:
if tool's name is "&d&lEmerald > Nether Quartz":
remove stick named "&d&lEmerald > Nether Quartz" from the player
set event-block to air
remove block above event-block from {drops4::*}
remove 1 from {Gens::%player's uuid%}
give player 1 nether quartz ore named "&7Generator - Tier 5"
stop
if clicked block is nether quartz ore:
if player's tool is stick:
if tool's name is "&1&lNether Quartz > Nether Star":
remove stick named "&1&lNether Quartz > Nether Star" from the player
set event-block to air
remove block above event-block from {drops5::*}
remove 1 from {Gens::%player's uuid%}
give player 1 soul sand named "&7Generator - Tier 6"
stop
if clicked block is soul sand:
if player's tool is stick:
if tool's name is "&2&lNether Star > Obsidian":
remove stick named "&2&lNether Star > Obsidian" from the player
set event-block to air
remove block above event-block from {drops6::*}
remove 1 from {Gens::%player's uuid%}
give player 1 sandstone named "&7Generator - Tier 7"
stop
# stick upgrade give
command /stick [<player>] [<text>]:
permission: console.use
trigger:
if arg-2 is "t1-t2":
give arg-1 stick named "&a&lCoal > Iron"
stop
if arg-2 is "t2-t3":
give arg-1 stick named "&b&lIron > Diamond"
stop
if arg-2 is "t3-t4":
give arg-1 stick named "&c&lDiamond > Emerald"
stop
if arg-2 is "t4-t5":
give arg-1 stick named "&d&lEmerald > Nether Quartz"
stop
if arg-2 is "t5-t6":
give arg-1 stick named "&1&lNether Quartz > Nether Star"
stop
if arg-2 is "t6-t7":
give arg-1 stick named "&2&lNether Star > Obsidian"
stop