Nahrát soubory do „“

main
Nexus 2023-01-07 20:55:46 +00:00
parent d7db4addc9
commit 7ff6281468
1 changed files with 9 additions and 7 deletions

View File

@ -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}