Ok, i know this doesnt work (as the 49 errors told me), does anyone know how to get this to work?
Code:
command /blocks:
trigger:
wait 2 ticks
open chest with 2 rows named "Block selection:" to player
format slot 0 of player with stone named "&7Stone" with lore "&1Unlocked at 0 kills" to be unstealable
if {kills.%player%} is above 1:
format slot 1 of player with white wool named "&fWhite Wool" with lore "&1Unlocked at 1 kill" to be unstealable
if {kills.%player%} is above 10:
format slot 2 of player with red wool named "&cRed Wool" with lore "&1Unlocked at 10 kills" to be unstealable
format slot 3 of player with blue wool named "&9Blue Wool" with lore "&1Unlocked at 10 kills" to be unstealable
if {kills.%player%} is above 20:
format slot 4 of player with yellow wool named "&eYellow Wool" with lore "&1Unlocked at 20 kills" to be unstealable
format slot 5 of player with purple wool named "&5Purple Wool" with lore "&1Unlocked at 20 kills" to be unstealable
if {kills.%player%} is above 30:
format slot 6 of player with black wool named "&0Black Wool" with lore "&1Unlocked at 30 kills" to be unstealable
format slot 7 of player with coal ore named "&8Coal Ore" with lore "&1Unlocked at 30 kills" to be unstealable
if {kills.%player%} is above 50:
format slot 8 of player with iron ore named "&7Iron Ore" with lore "&1Unlocked at 50 kills" to be unstealable
format slot 9 of player with gold ore named "&6Gold Ore" with lore "&1Unlocked at 50 kills" to be unstealable
if {kills.%player%} is above 100:
format slot 10 of player with emerald ore named "&aEmeral Ore" with lore "&1Unlocked at 100 kills" to be unstealable
format slot 11 of player with diamond ore named "&bDiamond Ore" with lore "&1Unlocked at 100 kills" to be unstealable
if permission is allstaff:
format slot 12 of player with orange wool named "&6Orange Wool" with lore "&1Unlocked by being staff" to be unstealable
if permission is nte.owner:
format slot 13 of player with lime wool named "&aLime Wool" with lore "&1Unlocked by being Owner" to be unstealable
if permission is nte.iron:
format slot 14 of player with iron block named "&7Iron Block" with lore "&1Unlocked by purchasing Iron Rank" to be unstealable
if permission is nte.gold:
format slot 15 of player with gold block named "&6Gold Block" with lore "&1Unlocked by purchasing Gold Rank" to be unstealable
if permission is nte.dia:
format slot 16 of player with diamond block named "&bDiamond Block" with lore "&1Unlocked by purchacing Diamond Rank" to be unstealable
if permission is nte.em:
format slot 17 of player with emerald block named "&aEmerald Block" with lore "&1Unlocked by purchasing Emeral Rank" to be unstealable
if player takes slot 0 of player:
set {block.%player%} to stone
send "&eChanged Block to &aStone&e!" to player
if player takes slot 1 of player:
set {block.%player%} to white wool
send "&eChanged Block to &aWhite Wool&e!" to player
if player takes slot 2 of player:
set {block.%player%} to red wool
send "&eChanged Block to &aRed Wool&e!" to player
if player takes slot 3 of player:
set {block.%player%} to blue wool
send "&eChanged Block to &aBlue Wool&e!" to player
if player takes slot 4 of player:
set {block.%player%} to yellow wool
send "&eChanged Block to &aYellow Wool&e!" to player
if player takes slot 5 of player:
set {block.%player%} to purple wool
send "&eChanged Block to &aPurple Wool&e!" to player
if player takes slot 6 of player:
set {block.%player%} to black wool
send "&eChanged Block to &aBlack Wool&e!" to player
if player takes slot 7 of player:
set {block.%player%} to coal ore
send "&eChanged Block to &aCoal Ore&e!" to player
if player takes slot 8 of player:
set {block.%player%} to iron ore
send "&eChanged Block to &aIron Ore&e!" to player
if player takes slot 9 of player:
set {block.%player%} to gold ore
send "&eChanged Block to &aGold Ore&e!" to player
if player takes slot 10 of player:
set {block.%player%} to emerald ore
send "&eChanged Block to &aEmerald Ore&e!" to player
if player takes slot 11 of player:
set {block.%player%} to diamond ore
send "&eChanged Block to &aDiamond Ore&e!" to player
if player takes slot 12 of player:
set {block.%player%} to orange wool
send "&eChanged Block to &aOrange Wool&e!" to player
if player takes slot 13 of player:
set {block.%player%} to lime wool
send "&eChanged Block to &aLime Wool&e!" to player
if player takes slot 14 of player:
set {block.%player%} to iron block
send "&eChanged Block to &aIron Block&e!" to player
if player takes slot 15 of player:
set {block.%player%} to gold block
send "&eChanged Block to &aGold Block&e!" to player
if player takes slot 16 of player:
set {block.%player%} to diamond block
send "&eChanged Block to &aDiamond Block&e!" to player
if player takes slot 17 of player:
set {block.%player%} to emerald block
send "&eChanged Block to &aEmerald Block&e!" to player