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