ok so i made a command that opens a gui where u can compress ur stuff but when i reload it, it doesnt give any errors but
the command just doesnt work (it gives the vannila error)
the command just doesnt work (it gives the vannila error)
Code:
command /comp:
permission: direboxz.compress
permission message: &2You don't have permission to do this!
cooldown: 10 seconds
cooldown message: &2You need to wait 10 seconds to use this command!
cooldown bypass: direboxz.compress.bypass
trigger:
open virtual chest inventory with size 1 named "&2&lCompressor" to player
format gui slot 1 of player with red stained glass pane named "&2Select which dimension that the blocks you want to compress are in!"
format gui slot 2 of player with red stained glass pane named "&2Select which dimension that the blocks you want to compress are in!"
format gui slot 4 of player with red stained glass pane named "&2Select which dimension that the blocks you want to compress are in!"
format gui slot 6 of player with red stained glass pane named "&2Select which dimension that the blocks you want to compress are in!"
format gui slot 8 of player with red stained glass pane named "&2Select which dimension that the blocks you want to compress are in!"
format gui slot 9 of player with red stained glass pane named "&2Select which dimension that the blocks you want to compress are in!"
format gui slot 5 of player with netherrack named "&2&lNether" to run:
close player's inventory
open virtual chest inventory with size 3 named "&2&lCompressor" to player
format gui slot 1 of player with netherrack named "&2&lNetherrack" with lore &7Click to compress your netherrack!" to run:
if player doesn't have the permission "direboxz.compress.all":
set {amount::%player%} to amount of netherrack in player's inventory
if {amount::%player%} is bigger than 64:
set {index::%player%} to {amount::%player%} - 64
set {gain::%player%} to {amount::%player%} - {index::%player%}
set {to-remove::%player%} to {gain::%player%} * 64
give player {gain::%player%} "&2&lCompressed Netherrack"
remove {to-remove::%player%} netherrack from player