#Auto compressor help
1 messages · Page 1 of 1 (latest)
Can you help?
command /givecompressor:
permission: compressor.give
trigger:
set {_item} to diamond
set name of {_item} to "&bDiamond Auto Compressor"
give {_item} to player
send "&aYou have received a &bDiamond Auto Compressor&a!"
every 5 seconds:
loop all players:
if name of off hand item of loop-player is "&bDiamond Auto Compressor":
set {_diamonds} to number of diamonds in loop-player's inventory
while {_diamonds} >= 64:
remove 64 diamond from loop-player's inventory
set {_compressed} to lapis_block
set name of {_compressed} to "&9Compressed Lapis"
enchant {_compressed} with unbreaking 1
set lore of {_compressed} to "&7&lCommon"
give {_compressed} to loop-player
subtract 64 from {_diamonds}