From 171229a373065a2dc8d601a8537a3008f26851ea Mon Sep 17 00:00:00 2001 From: TheTrouper <93684527+thetrouper@users.noreply.github.com> Date: Sat, 21 Jan 2023 16:18:09 -0600 Subject: [PATCH] Particle Free Night Vision --- nightvision.sk | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 nightvision.sk diff --git a/nightvision.sk b/nightvision.sk new file mode 100644 index 0000000..c33820d --- /dev/null +++ b/nightvision.sk @@ -0,0 +1,35 @@ +# Night vision invisible by TheTrouper#6969 + +options: + Prefix: &9Condition>&7 + +command /nightvision: + aliases: nv, nvt, nvi + permission: nightvision.toggle + trigger: + if {nv::*} contains player: + remove player from {nv::*} + remove night vision from the player + send "{@Prefix} Night vision has been &cdisabled&7." + else if {nv::*} does not contain player: + add player to {nv::*} + send "{@Prefix} Night vision has been &aenabled&7." + +command /invisiblity: + aliases: iv, ivt, ivi + permission: nightvision.toggle + trigger: + if {iv::*} contains player: + remove player from {iv::*} + remove night vision from the player + send "{@Prefix} invisibility has been &cdisabled&7." + else if {iv::*} does not contain player: + add player to {iv::*} + send "{@Prefix} invisibility has been &aenabled&7." + +every second: + loop all players: + if {nv::*} contains player: + apply night vision without particles to loop-player for 100000 seconds + if {iv::*} contains player: + apply invisibility without particles to loop-player for 100000 seconds