Nahrát soubory do „“
parent
d7db4addc9
commit
7ff6281468
16
sgchest.sk
16
sgchest.sk
|
@ -1,5 +1,6 @@
|
|||
variables:
|
||||
{sgchest} = false
|
||||
{chestchecker} = false
|
||||
|
||||
command /sgchest [<text>]:
|
||||
permission: op
|
||||
|
@ -12,11 +13,12 @@ command /sgchest [<text>]:
|
|||
if arg-1 is "off":
|
||||
set {sgchest} to false
|
||||
|
||||
on right click on chest:
|
||||
if {sgchest} = true:
|
||||
cancel event
|
||||
wait 1 tick
|
||||
break the block
|
||||
else if {sgchest} = false:
|
||||
stop
|
||||
on right click:
|
||||
if clicked block is chest:
|
||||
set {chestchecker} to true
|
||||
set {chest_cords} to clicked block
|
||||
|
||||
on inventory close:
|
||||
if {chestchecker} is true:
|
||||
set {chestchecker} to false
|
||||
break the block at {chest_cords}
|
Loading…
Reference in New Issue