code_language.skript:
command /AutoComp:
trigger:
if {arg::%player%} exists:
clear {arg::%player%}
send "&c&lAutoCompressor Off"
else:
set {arg::%player%} to true
send "&6&lAutoComperssor On"
on mine of obsidian:
{arg::%player%} = true
if player has 32 obsidian:
remove 32 obsidian from player
give crying obsidian of aqua affinity with all flags hidden named "&0&lCompressed Obsidian" to player
on mine of oak wood:
{arg::%player%} = true
if player has 32 oak wood:
remove 32 oak wood from player
give brown terracotta of unbreaking 1 with all flags hidden named "&6Compressed Wood" to player
on mine of stone:
{arg::%player%} = true
if player has 32 Cobblestone:
remove 32 Cobblestone from player
give chiseled stone bricks of aqua affinity 1 with all flags hidden named "&7Compressed Stone" to player
on mine of iron ore:
{arg::%player%} = true
if player has 32 raw iron:
remove 32 raw iron from player
give white wool of aqua affinity 1 with all flags hidden named "&f&lCompressed Iron" to player
on mine of gold ore:
{arg::%player%} = true
if player has 32 raw gold:
remove 32 raw gold from player
give yellow wool of aqua affinity 1 with all flags hidden named "&6&lCompressed Gold" to player
on mine of lapis ore:
{arg::%player%} = true
if player has 32 lapis lazuli:
remove 32 lapis lazuli from player
give sea lantern of aqua affinity 1 with all flags hidden named "&b&lCompressed lapis" to player
Posted by: shumansenpai from the skUnity Discord. View the thread on skUnity Discord here