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:
{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}