From 5055d4faec414902b98dcf461d627c519782f4e4 Mon Sep 17 00:00:00 2001 From: Nexus Date: Sat, 7 Jan 2023 21:11:36 +0000 Subject: [PATCH] =?UTF-8?q?Nahr=C3=A1t=20soubory=20do=20=E2=80=9E=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgchest (1).sk | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sgchest (1).sk diff --git a/sgchest (1).sk b/sgchest (1).sk new file mode 100644 index 0000000..3c59693 --- /dev/null +++ b/sgchest (1).sk @@ -0,0 +1,24 @@ +variables: + {sgchest} = false + {chestchecker.%player%} = false + +command /sgchest []: + permission: op + trigger: + if arg-1 is not set: + send "&c/sgchest on &7- zapne loot chestiek" to player + send "&c/sgchest off &7- vypne loot chestiek" to player + if arg-1 is "on": + set {sgchest} to true + if arg-1 is "off": + set {sgchest} to false + +on right click: + if clicked block is chest: + set {chestchecker.%player%} to true + set {chest_cords.%player%} to clicked block + +on inventory close: + if {chestchecker.%player%} is true: + set {chestchecker.%player%} to false + break the block at {chest_cords.%player%} \ No newline at end of file