Advertisement
Guest User

UHC Essentials Skript

a guest
Jul 8th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 94.15 KB | None | 0 0
  1. options:
  2. P: &a[&6UHC&a] #Main Prefix
  3. C: &f #Main Color
  4. H: &a #Text Highlight Color
  5. BC: &4 #Highlight Color 2 (for stuff like double arrows, etc)
  6. E: &c[ERROR]
  7. ExcludedWorld: spawn #World where some events don't happen
  8. SpecVariable: spec
  9. SatFix: true
  10. Difficulty: HARD
  11.  
  12. #DONT TOUCH UNLESS YOU KNOW WHAT YOUR DOING#
  13. variable: uhcsk
  14. FeatureListName: &3Feature List
  15. FeatureConfigName: &7Feature Config
  16. HeartSymbol: ?
  17. DoubleArrow: &l?
  18. KYS: I love You So much and Good Game to you what a great UHC
  19. CurrentVersion: UHCSK1.6
  20. SugarHealHorse: 5
  21. WheatHealHorse: 10
  22. AppleHealHorse: 15
  23. GoldenCarrotHealHorse: 20
  24. GoldenAppleHealHorse: 50
  25. HayBaleHealHorse: 100
  26.  
  27. function armorStand(loc: location) :: entity:
  28. spawn an armor stand at {_loc}
  29. set {_arm} to the last spawned entity
  30. return {_arm}
  31.  
  32. function formatBack(p: player):
  33. format slot 8 of {_p} with a clock named "{@BC}{@DoubleArrow}{@C} Back" to close then run "needthisforgui openconfig %{_p}%"
  34.  
  35. function particlesAround(p:entity, n: int, t: text):
  36. set {_g} to "particle %{_t}%" parsed as a particleenum
  37. loop {_n}*2 times:
  38. 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 in front and 1.5 above and 1 left {_p} with data 0
  39. 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 in front and 1.5 above and 1 right {_p} with data 0
  40. 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 in front and 1.5 above and 0.5 left {_p} with data 0
  41. 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 in front and 1.5 above and 0.5 right {_p} with data 0
  42. 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 behind and 1.5 above and 1 left {_p} with data 0
  43. 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 behind and 1.5 above and 1 right {_p} with data 0
  44. 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 behind and 1.5 above and 0.5 left {_p} with data 0
  45. 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 behind and 1.5 above and 0.5 right {_p} with data 0
  46. wait 10 ticks
  47.  
  48. function updateTab(p: player):
  49. "%{{@variable}::Temps::%{_p}%}%" is not "%floor({_p}'s health*10)%"
  50. set {{@variable}::Temps::%{_p}%} to floor({_p}'s health*10)
  51. command "/scoreboard players set %{_p}% Health %floor({_p}'s health*10)%"
  52. command "/scoreboard players set %{_p}% HealthTab %floor({_p}'s health*10)%"
  53.  
  54. on skript unload:
  55. delete {{@variable}::Temps::*}
  56.  
  57. command /feature [<text>]:
  58. trigger:
  59. if arg-1 is "config":
  60. if command sender does not have permission "skript.op":
  61. command sender command "/feature list"
  62. stop trigger
  63. open chest with 3 rows named "{@FeatureConfigName}" to command sender
  64. wait 1 tic
  65. if {{@variable}::EPD} is not set:
  66. format slot 0 of command sender with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} 0 {@BC}{@HeartSymbol}" to close then run "needthisforgui epearlgui %command sender%"
  67. else:
  68. format slot 0 of command sender with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" to close then run "needthisforgui epearlgui %command sender%"
  69.  
  70. if {{@variable}::DL} is not set:
  71. format slot 1 of command sender with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui deathl %command sender%"
  72. else:
  73. format slot 1 of command sender with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui deathl %command sender%"
  74.  
  75. if {{@variable}::GD} is not set:
  76. format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Normal" to close then run "needthisforgui ghastgui %command sender%"
  77. else if {{@variable}::GD} is "gi":
  78. format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Ingot" to close then run "needthisforgui ghastgui %command sender%"
  79. else if {{@variable}::GD} is "gn":
  80. format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Nugget" to close then run "needthisforgui ghastgui %command sender%"
  81. else if {{@variable}::GD} is "gb":
  82. format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Block" to close then run "needthisforgui ghastgui %command sender%"
  83.  
  84.  
  85. if {{@variable}::AS} is not set:
  86. format slot 3 of command sender with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui asgui %command sender%"
  87. else:
  88. format slot 3 of command sender with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui asgui %command sender%"
  89.  
  90. if {{@variable}::GHeads} is not set:
  91. format slot 4 of command sender with a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui headsgui %command sender%"
  92. else:
  93. if {{@variable}::GHeadHeal} is not set:
  94. format slot 4 of command sender with 8 player heads named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}4{@BC}{@HeartSymbol}" to close then run "needthisforgui headsgui %command sender%"
  95. else:
  96. format slot 4 of command sender with (({{@variable}::GHeadHeal}) of player head) named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}%{{@variable}::GHeadHeal}/2%{@BC}{@HeartSymbol}" to close then run "needthisforgui headsgui %command sender%"
  97.  
  98. if {{@variable}::NR} is not set:
  99. format slot 5 of command sender with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui nrgui %command sender%"
  100. else:
  101. format slot 5 of command sender with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui nrgui %command sender%"
  102.  
  103. if {{@variable}::Horses} is not set:
  104. format slot 6 of command sender with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui horseridegui %command sender%"
  105. else:
  106. format slot 6 of command sender with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui horseridegui %command sender%"
  107.  
  108. if {{@variable}::HorseHeal} is not set:
  109. format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Not nerfed" to close then run "needthisforgui horsehealgui %command sender%"
  110. else if {{@variable}::HorseHeal} is less than or equal to 0:
  111. format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui horsehealgui %command sender%"
  112. else:
  113. set {_Sugar} to "{@BC}{@DoubleArrow}{@C} Sugar:{@H} %{@SugarHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  114. set {_Whe} to "{@BC}{@DoubleArrow}{@C} Wheat:{@H} %{@WheatHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  115. set {_App} to "{@BC}{@DoubleArrow}{@C} Apple:{@H} %{@AppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  116. set {_Gapp} to "{@BC}{@DoubleArrow}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  117. set {_Gcar} to "{@BC}{@DoubleArrow}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  118. set {_HB} to "{@BC}{@DoubleArrow}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  119. format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::HorseHeal}%%% as effective || %{_Sugar}% || %{_Whe}% || %{_App}% || %{_Gcar}% || %{_Gapp}% || %{_HB}%" to close then run "needthisforgui horsehealgui %command sender%"
  120.  
  121. if {{@variable}::HorseArmor} is not set:
  122. format slot 8 of command sender with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui horsearmorgui %command sender%"
  123. else:
  124. format slot 8 of command sender with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui horsearmorgui %command sender%"
  125.  
  126. if {{@variable}::NoGlow} is not set:
  127. format slot 9 of command sender with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui glowgui %command sender%"
  128. else:
  129. format slot 9 of command sender with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui glowgui %command sender%"
  130.  
  131. if {{@variable}::GlistMelon} is not set:
  132. format slot 10 of command sender with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui melongui %command sender%"
  133. else:
  134. format slot 10 of command sender with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui melongui %command sender%"
  135.  
  136. if {{@variable}::AntiTrap} is not set:
  137. format slot 11 of command sender with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui trapgui %command sender%"
  138. else:
  139. format slot 11 of command sender with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui trapgui %command sender%"
  140.  
  141. if {{@variable}::BrewingStands} is not set:
  142. format slot 12 of command sender with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui brewgui %command sender%"
  143. else:
  144. format slot 12 of command sender with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui brewgui %command sender%"
  145.  
  146. if {{@variable}::StrPots} is not set:
  147. format slot 13 of command sender with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui strgui %command sender%"
  148. else:
  149. format slot 13 of command sender with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui strgui %command sender%"
  150.  
  151. if {{@variable}::GodApp} is not set:
  152. format slot 14 of command sender with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui godgui %command sender%"
  153. else:
  154. format slot 14 of command sender with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui godgui %command sender%"
  155.  
  156. if {{@variable}::Bookshelves} is not set:
  157. format slot 15 of command sender with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui bookgui %command sender%"
  158. else:
  159. format slot 15 of command sender with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui bookgui %command sender%"
  160.  
  161. if {{@variable}::Absorp} is not set:
  162. format slot 16 of command sender with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui absorpgui %command sender%"
  163. else:
  164. format slot 16 of command sender with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui absorpgui %command sender%"
  165.  
  166. if {{@variable}::FlintRates} is not set:
  167. format slot 17 of command sender with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (10%%)" to close then run "needthisforgui flintgui %command sender%"
  168. else:
  169. format slot 17 of command sender with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::FlintRates}%%%" to close then run "needthisforgui flintgui %command sender%"
  170.  
  171. if {{@variable}::AppleRates} is not set:
  172. format slot 18 of command sender with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (0.55%%) (no shears!)" to close then run "needthisforgui applegui %command sender%"
  173. else:
  174. if {{@variable}::OakOnly} is set:
  175. set {_oa} to "Oak and Dark Oak trees only drop apples"
  176. else:
  177. set {_oa} to "All trees drop apples"
  178. if {{@variable}::NoShears} is set:
  179. set {_NS} to "Shears don't work"
  180. else:
  181. set {_NS} to "Shears will work"
  182. format slot 18 of command sender with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::AppleRates}%%% || {@BC}{@DoubleArrow}{@H} %{_NS}% || {@BC}{@DoubleArrow}{@H} %{_oa}%" to close then run "needthisforgui applegui %command sender%"
  183.  
  184. if {{@variable}::AntiiPvP} is not set:
  185. format slot 19 of command sender with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui iPvPgui %command sender%"
  186. else:
  187. format slot 19 of command sender with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui iPvPgui %command sender%"
  188.  
  189. if {{@variable}::NP} is not set:
  190. format slot 20 of command sender with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui nethergui %command sender%"
  191. else:
  192. format slot 20 of command sender with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui nethergui %command sender%"
  193. if {{@variable}::QuartzXP} is not set:
  194. format slot 21 of command sender with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui xpgui %command sender%"
  195. else:
  196. format slot 21 of command sender with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Enabled (1/2 of Vanilla XP)" to close then run "needthisforgui xpgui %command sender%"
  197. if {{@variable}::SplashPots} is not set:
  198. format slot 22 of command sender with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui splashgui %command sender%"
  199. else:
  200. format slot 22 of command sender with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui splashgui %command sender%"
  201.  
  202. else if arg-1 is "list":
  203. if command sender has permission "skript.op":
  204. command sender command "/feature config"
  205. stop trigger
  206. open chest with 3 rows named "{@FeatureListName}" to command sender
  207. wait 1 tick
  208. if {{@variable}::EPD} is not set:
  209. format slot 0 of command sender with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} 0 {@BC}{@HeartSymbol}" to be unstealable
  210. else:
  211. format slot 0 of command sender with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" to be unstealable
  212. if {{@variable}::DL} is not set:
  213. format slot 1 of command sender with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  214. else:
  215. format slot 1 of command sender with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  216.  
  217. if {{@variable}::GD} is not set:
  218. format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Normal" to be unstealable
  219. else if {{@variable}::GD} is "gi":
  220. format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Ingot" to be unstealable
  221. else if {{@variable}::GD} is "gn":
  222. format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Nugget" to be unstealable
  223. else if {{@variable}::GD} is "gb":
  224. format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Block" to be unstealable
  225.  
  226. if {{@variable}::AS} is not set:
  227. format slot 3 of command sender with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  228. else:
  229. format slot 3 of command sender with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  230.  
  231. if {{@variable}::GHeads} is not set:
  232. format slot 4 of command sender with a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  233. else:
  234. if {{@variable}::GHeadHeal} is not set:
  235. format slot 4 of command sender with 8 player heads named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}4{@BC}{@HeartSymbol}" to be unstealable
  236. else:
  237. format slot 4 of command sender with (({{@variable}::GHeadHeal}) of player head) named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}%{{@variable}::GHeadHeal}/2%{@BC}{@HeartSymbol}" to be unstealable
  238.  
  239. if {{@variable}::NR} is not set:
  240. format slot 5 of command sender with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  241. else:
  242. format slot 5 of command sender with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  243.  
  244. if {{@variable}::Horses} is not set:
  245. format slot 6 of command sender with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  246. else:
  247. format slot 6 of command sender with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  248.  
  249. if {{@variable}::HorseHeal} is not set:
  250. format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Not nerfed" to be unstealable
  251. else if {{@variable}::HorseHeal} is less than or equal to 0:
  252. format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  253. else:
  254. set {_Sugar} to "{@BC}{@DoubleArrow}{@C} Sugar:{@H} %{@SugarHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  255. set {_Whe} to "{@BC}{@DoubleArrow}{@C} Wheat:{@H} %{@WheatHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  256. set {_App} to "{@BC}{@DoubleArrow}{@C} Apple:{@H} %{@AppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  257. set {_Gapp} to "{@BC}{@DoubleArrow}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  258. set {_Gcar} to "{@BC}{@DoubleArrow}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  259. set {_HB} to "{@BC}{@DoubleArrow}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  260. format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::HorseHeal}%%% as effective || %{_Sugar}% || %{_Whe}% || %{_App}% || %{_Gcar}% || %{_Gapp}% || %{_HB}%" to be unstealable
  261.  
  262. if {{@variable}::HorseArmor} is not set:
  263. format slot 8 of command sender with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  264. else:
  265. format slot 8 of command sender with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  266.  
  267. if {{@variable}::NoGlow} is not set:
  268. format slot 9 of command sender with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  269. else:
  270. format slot 9 of command sender with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  271.  
  272. if {{@variable}::GlistMelon} is not set:
  273. format slot 10 of command sender with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  274. else:
  275. format slot 10 of command sender with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  276.  
  277. if {{@variable}::AntiTrap} is not set:
  278. format slot 11 of command sender with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  279. else:
  280. format slot 11 of command sender with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  281.  
  282. if {{@variable}::BrewingStands} is not set:
  283. format slot 12 of command sender with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  284. else:
  285. format slot 12 of command sender with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  286.  
  287. if {{@variable}::StrPots} is not set:
  288. format slot 13 of command sender with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  289. else:
  290. format slot 13 of command sender with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  291.  
  292. if {{@variable}::GodApp} is not set:
  293. format slot 14 of command sender with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  294. else:
  295. format slot 14 of command sender with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  296.  
  297. if {{@variable}::Bookshelves} is not set:
  298. format slot 15 of command sender with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  299. else:
  300. format slot 15 of command sender with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  301.  
  302. if {{@variable}::Absorp} is not set:
  303. format slot 16 of command sender with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  304. else:
  305. format slot 16 of command sender with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  306.  
  307. if {{@variable}::FlintRates} is not set:
  308. format slot 17 of command sender with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (10%%)" to be unstealable
  309. else:
  310. format slot 17 of command sender with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::FlintRates}%%%" to be unstealable
  311.  
  312. if {{@variable}::AppleRates} is not set:
  313. format slot 18 of command sender with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (0.55%%) (no shears!)" to be unstealable
  314. else:
  315. if {{@variable}::OakOnly} is set:
  316. set {_oa} to "Oak and Dark Oak trees only drop apples"
  317. else:
  318. set {_oa} to "All trees drop apples"
  319. if {{@variable}::NoShears} is set:
  320. set {_NS} to "Shears don't work"
  321. else:
  322. set {_NS} to "Shears will work"
  323. format slot 18 of command sender with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::AppleRates}%%% || {@BC}{@DoubleArrow}{@H} %{_NS}% || {@BC}{@DoubleArrow}{@H} %{_oa}%" to be unstealable
  324.  
  325. if {{@variable}::AntiiPvP} is not set:
  326. format slot 19 of command sender with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  327. else:
  328. format slot 19 of command sender with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  329.  
  330. if {{@variable}::NP} is not set:
  331. format slot 20 of command sender with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  332. else:
  333. format slot 20 of command sender with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  334.  
  335. if {{@variable}::QuartzXP} is not set:
  336. format slot 21 of command sender with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  337. else:
  338. format slot 21 of command sender with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Enabled (1/2 of Vanilla XP)" to be unstealable
  339. if {{@variable}::SplashPots} is not set:
  340. format slot 22 of command sender with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  341. else:
  342. format slot 22 of command sender with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  343.  
  344. else:
  345. if command sender has permission "skript.op":
  346. send "{@E}{@C}{@H} /feature list:config"
  347. else:
  348. send "{@E}{@C}{@H} /feature list"
  349.  
  350. on chat:
  351. replace all "kys" with "{@KYS}" in message
  352.  
  353. command /ping [<player>]:
  354. aliases: /ms
  355. trigger:
  356. if arg-1 is not set:
  357. send "{@P}{@C} Your ping:{@H} %command sender's ping%ms"
  358. else:
  359. send "{@P}{@C} %arg-1%'s ping:{@H} %arg-1's ping%ms"
  360.  
  361. command /setlevel [<int>]:
  362. permission: skript.op
  363. aliases: /setxp
  364. trigger:
  365. if arg-1 is not set:
  366. send "{@E}{@C} Provide a level number!"
  367. else:
  368. set level of all players to arg-1
  369. set level progress of all players to 0
  370. broadcast "{@P}{@H} %command sender%{@C} set everyone's level to {@H}%arg-1%"
  371.  
  372. command /freeze:
  373. permission: skript.op
  374. trigger:
  375. if {{@variable}::Freeze} is not set:
  376. broadcast "{@P}{@C} All players now {@H}frozen"
  377. set {{@variable}::Freeze} to true
  378. loop all players:
  379. {{@SpecVariable}::%loop-player%} is not set
  380. set loop-player's gamemode to adventure
  381. set loop-player's walk speed to 0
  382. #set the freeze state of player to true
  383. else:
  384. broadcast "{@P}{@C} All players are no longer {@H}frozen"
  385. delete {{@variable}::Freeze}
  386. loop all players:
  387. {{@SpecVariable}::%loop-player%} is not set
  388. #set the freeze state of loop-player to false
  389. set loop-player's gamemode to survival
  390. set loop-player's walk speed to 0.2
  391.  
  392. on any movement:
  393. {{@variable}::Freeze} is set
  394. set {_y} to y coordinate of player
  395. set {_loc} to location of player
  396. wait 1 tick
  397. {_y} is less than y coordinate of player
  398. teleport player to {_loc}
  399.  
  400. on join:
  401. if {{@variable}::Freeze} is set:
  402. # set the freeze state of player to true
  403. set player's gamemode to adventure
  404. set player's walk speed to 0
  405. else:
  406. # set the freeze state of player to false
  407. set player's gamemode to survival
  408. set player's walk speed to 0.2
  409.  
  410. every 20 ticks:
  411. loop all players:
  412. if {{@variable}::Freeze} is set:
  413. {{@SpecVariable}::%loop-player%} is not set
  414. particlesAround(loop-player, 1, "portal")
  415. if loop-player's gamemode is not adventure:
  416. set loop-player's gamemode to adventure
  417. set loop-player's walk speed to 0
  418. #if loop-player's freeze state is false:
  419. if {{@variable}::HorseArmor} is set:
  420. loop all items in loop-player's inventory:
  421. "%loop-item's id%" is "417", "418" or "419":
  422. set loop-item to air
  423. send "{@E}{@C} Horse armor is {@H}DISABLED!" to loop-player
  424. if {{@variable}::GHeads} is set:
  425. loop all items in loop-player's inventory:
  426. if "%name of loop-item%" is "&6Golden Head":
  427. set {_r} to a random integer between 1 and 9
  428. set name of loop-item to "&%{_r}%%name of loop-item%"
  429. set {_r} to a random integer between 1 and 9
  430. set name of loop-item to "&%{_r}%%name of loop-item%"
  431. set {_r} to a random integer between 1 and 9
  432. set name of loop-item to "&%{_r}%%name of loop-item%"
  433. set {_r} to a random integer between 1 and 9
  434. set name of loop-item to "&%{_r}%%name of loop-item%"
  435. set name of loop-item to "%colored name of loop-item%"
  436. updateTab(loop-player)
  437.  
  438. on tab completer for "/feature":
  439. if player has permission "skript.op":
  440. add "config" to completions
  441. add "list" to completions
  442.  
  443. command /needthisforgui [<text>] [<player>]:
  444. executable by: console
  445. trigger:
  446. if arg-1 is "epearlgui":
  447. wait 4 ticks
  448. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  449. wait 1 tick
  450. if {{@variable}::EPD} is not set:
  451. format slot 0 of arg-2 with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} 0 {@BC}{@HeartSymbol}" to be unstealable
  452. else:
  453. format slot 0 of arg-2 with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" to be unstealable
  454. format slot 1 of arg-2 with a green wool named "{@H}-0.1{@BC}{@HeartSymbol}{@C} damage" with lore "{@C}for Enderpearls" to run "needthisforgui epearlminus %arg-2%"
  455. format slot 2 of arg-2 with a red wool named "{@H}+0.1{@BC}{@HeartSymbol}{@C} damage" with lore "{@C}for Enderpearls" to run "needthisforgui epearladd %arg-2%"
  456. format slot 3 of arg-2 with a redstone block named "{@H}Reset{@C} damage" with lore "{@C}for Enderpearls" to run "needthisforgui epearlreset %arg-2%"
  457. formatBack(arg-2)
  458.  
  459. else if arg-1 is "epearladd":
  460. if {{@variable}::EPD} is not set:
  461. set {{@variable}::EPD} to 1
  462. send arg-2 title "{@H}Added{@C} 0.1 {@BC}{@HeartSymbol}{@C} to damage" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}"
  463. wait 1 second
  464. command "/needthisforgui epearlgui %arg-2%"
  465.  
  466. else if {{@variable}::EPD} is greater than or equal to 100:
  467. close arg-2's inventory
  468. send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}10 {@BC}{@HeartSymbol}!" for 1 second
  469. wait 1 second
  470. command "/needthisforgui epearlgui %arg-2%"
  471.  
  472. else:
  473. add 1 to {{@variable}::EPD}
  474. close arg-2's inventory
  475. send arg-2 title "{@H}Added{@C} 0.1 {@BC}{@HeartSymbol}{@C} to damage" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" for 1 second
  476. wait 1 second
  477. command "/needthisforgui epearlgui %arg-2%"
  478.  
  479. else if arg-1 is "epearlminus":
  480. if {{@variable}::EPD} is not set:
  481. set {{@variable}::EPD} to 0
  482. close arg-2's inventory
  483. send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0 {@BC}{@HeartSymbol}!" for 1 second
  484. wait 1 second
  485. command "/needthisforgui epearlgui %arg-2%"
  486.  
  487. else if {{@variable}::EPD} is less than or equal to 0:
  488. close arg-2's inventory
  489. send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0 {@BC}{@HeartSymbol}!" for 1 second
  490. wait 1 second
  491. command "/needthisforgui epearlgui %arg-2%"
  492.  
  493. else:
  494. remove 1 from {{@variable}::EPD}
  495. close arg-2's inventory
  496. send arg-2 title "{@H}Removed{@C} 0.1 {@BC}{@HeartSymbol}{@C} from damage" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" for 1 second
  497. wait 1 second
  498. command "/needthisforgui epearlgui %arg-2%"
  499.  
  500. else if arg-1 is "epearlreset":
  501. delete {{@variable}::EPD}
  502. close arg-2's inventory
  503. send arg-2 title "{@H}Reset{@C} ender pearl damage" with subtitle "{@BC}{@DoubleArrow}{@C} Now 0 {@BC}{@HeartSymbol}" for 1 second
  504. wait 1 second
  505. command "/needthisforgui epearlgui %arg-2%"
  506.  
  507. else if arg-1 is "deathl":
  508. wait 4 ticks
  509. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  510. wait 1 tick
  511. if {{@variable}::DL} is not set:
  512. format slot 0 of arg-2 with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  513. else:
  514. format slot 0 of arg-2 with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  515. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Death Lightning" to run "needthisforgui dl %arg-2%"
  516. formatBack(arg-2)
  517.  
  518. else if arg-1 is "asgui":
  519. wait 4 ticks
  520. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  521. wait 1 tick
  522. if {{@variable}::AS} is not set:
  523. format slot 0 of arg-2 with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  524. else:
  525. format slot 0 of arg-2 with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  526. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Death Stands" to run "needthisforgui tds %arg-2%"
  527. formatBack(arg-2)
  528.  
  529. else if arg-1 is "dl":
  530. if {{@variable}::DL} is not set:
  531. set {{@variable}::DL} to true
  532. close arg-2's inventory
  533. send arg-2 title "{@H}Enabled{@C} Death Lightning" for 1 second
  534. wait 1 second
  535. command "/needthisforgui deathl %arg-2%"
  536. else:
  537. delete {{@variable}::DL}
  538. close arg-2's inventory
  539. send arg-2 title "{@H}Disabled{@C} Death Lightning" for 1 second
  540. wait 1 second
  541. command "/needthisforgui deathl %arg-2%"
  542.  
  543. else if arg-1 is "tds":
  544. if {{@variable}::AS} is not set:
  545. set {{@variable}::AS} to true
  546. close arg-2's inventory
  547. send arg-2 title "{@H}Enabled{@C} Death Stands" for 1 second
  548. wait 1 second
  549. command "/needthisforgui asgui %arg-2%"
  550. else:
  551. delete {{@variable}::AS}
  552. close arg-2's inventory
  553. send arg-2 title "{@H}Disabled{@C} Death Stands" for 1 second
  554. wait 1 second
  555. command "/needthisforgui asgui %arg-2%"
  556.  
  557. else if arg-1 is "nrgui":
  558. wait 4 ticks
  559. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  560. wait 1 tick
  561. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Natural Regeneration" to run "needthisforgui tnr %arg-2%"
  562. if {{@variable}::NR} is not set:
  563. format slot 0 of arg-2 with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  564. else:
  565. format slot 0 of arg-2 with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  566. formatBack(arg-2)
  567.  
  568. else if arg-1 is "tnr":
  569. if {{@variable}::NR} is not set:
  570. set {{@variable}::NR} to true
  571. close arg-2's inventory
  572. send arg-2 title "{@H}Enabled{@C} Natural Regeneration" for 1 second
  573. wait 1 second
  574. command "/needthisforgui nrgui %arg-2%"
  575. else:
  576. delete {{@variable}::NR}
  577. close arg-2's inventory
  578. send arg-2 title "{@H}Disabled{@C} Natural Regeneration" for 1 second
  579. wait 1 second
  580. command "/needthisforgui nrgui %arg-2%"
  581.  
  582. else if arg-1 is "horsehealgui":
  583. wait 4 ticks
  584. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  585. wait 1 tick
  586. if {{@variable}::HorseHeal} is not set:
  587. format slot 0 of arg-2 with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Not nerfed" to be unstealable
  588. else if {{@variable}::HorseHeal} is less than or equal to 0:
  589. format slot 0 of arg-2 with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  590. else:
  591. set {_Sugar} to "{@BC}{@DoubleArrow}{@C} Sugar:{@H} %{@SugarHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  592. set {_Whe} to "{@BC}{@DoubleArrow}{@C} Wheat:{@H} %{@WheatHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  593. set {_App} to "{@BC}{@DoubleArrow}{@C} Apple:{@H} %{@AppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  594. set {_Gapp} to "{@BC}{@DoubleArrow}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  595. set {_Gcar} to "{@BC}{@DoubleArrow}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  596. set {_HB} to "{@BC}{@DoubleArrow}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  597. format slot 0 of arg-2 with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::HorseHeal}%%% as effective || %{_Sugar}% || %{_Whe}% || %{_App}% || %{_Gcar}% || %{_Gapp}% || %{_HB}%" to be unstealable
  598. format slot 1 of arg-2 with a green wool named "{@H}-25%%{@BC}{@HeartSymbol}{@C} effectiveness" with lore "{@C}for Horse Healing" to run "needthisforgui hhm %arg-2%"
  599. format slot 2 of arg-2 with a red wool named "{@H}+25%%{@BC}{@HeartSymbol}{@C} damage" with lore "{@C}for Horse Healing" to run "needthisforgui hha %arg-2%"
  600. format slot 3 of arg-2 with a redstone block named "{@H}Reset{@C} effectiveness" with lore "{@C}for Horse Healing" to run "needthisforgui hhr %arg-2%"
  601. formatBack(arg-2)
  602.  
  603. else if arg-1 is "hha":
  604. if {{@variable}::HorseHeal} is not set:
  605. set {{@variable}::HorseHeal} to 125
  606. close arg-2's inventory
  607. send arg-2 title "{@H}Added{@C} 25%% effectiveness" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::HorseHeal}%%% as effective"
  608. wait 1 second
  609. command "/needthisforgui horsehealgui %arg-2%"
  610.  
  611. else if {{@variable}::HorseHeal} is greater than or equal to 250:
  612. close arg-2's inventory
  613. send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}250%% effectiveness!" for 1 second
  614. wait 1 second
  615. command "/needthisforgui horsehealgui %arg-2%"
  616.  
  617. else:
  618. add 25 to {{@variable}::HorseHeal}
  619. close arg-2's inventory
  620. send arg-2 title "{@H}Added{@C} 25%% effectiveness" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::HorseHeal}%%% as effective"
  621. wait 1 second
  622. command "/needthisforgui horsehealgui %arg-2%"
  623.  
  624. else if arg-1 is "hhm":
  625. if {{@variable}::HorseHeal} is not set:
  626. set {{@variable}::HorseHeal} to 75
  627. close arg-2's inventory
  628. send arg-2 title "{@H}Removed{@C} 25%% effectiveness" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::HorseHeal}%%% as effective"
  629. wait 1 second
  630. command "/needthisforgui horsehealgui %arg-2%"
  631.  
  632. else if {{@variable}::HorseHeal} is less than or equal to 0:
  633. close arg-2's inventory
  634. send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%% effectiveness!" for 1 second
  635. wait 1 second
  636. command "/needthisforgui horsehealgui %arg-2%"
  637.  
  638. else:
  639. remove 25 from {{@variable}::HorseHeal}
  640. close arg-2's inventory
  641. send arg-2 title "{@H}Removed{@C} 25%% effectiveness" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::HorseHeal}%%% as effective"
  642. wait 1 second
  643. command "/needthisforgui horsehealgui %arg-2%"
  644.  
  645. else if arg-1 is "hhr":
  646. delete {{@variable}::HorseHeal}
  647. close arg-2's inventory
  648. send arg-2 title "{@H}Reset{@C} Horse Healing" with subtitle "{@BC}{@DoubleArrow}{@C} Now Vanilla" for 1 second
  649. wait 1 second
  650. command "/needthisforgui horsehealgui %arg-2%"
  651.  
  652. else if arg-1 is "horseridegui":
  653. wait 4 ticks
  654. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  655. wait 1 tick
  656. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Horse Riding" to run "needthisforgui thr %arg-2%"
  657. if {{@variable}::Horses} is not set:
  658. format slot 0 of arg-2 with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  659. else:
  660. format slot 0 of arg-2 with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  661. formatBack(arg-2)
  662.  
  663. else if arg-1 is "thr":
  664. if {{@variable}::Horses} is not set:
  665. set {{@variable}::Horses} to true
  666. close arg-2's inventory
  667. send arg-2 title "{@H}Enabled{@C} Horse Riding" for 1 second
  668. wait 1 second
  669. command "/needthisforgui horseridegui %arg-2%"
  670. else:
  671. delete {{@variable}::Horses}
  672. close arg-2's inventory
  673. send arg-2 title "{@H}Disabled{@C} Horse Riding" for 1 second
  674. wait 1 second
  675. command "/needthisforgui horseridegui %arg-2%"
  676.  
  677. else if arg-1 is "gdi":
  678. close arg-2's inventory
  679. send arg-2 title "{@H}Successfully{@C} changed ghast drop" with subtitle "{@C}to a {@H}gold ingot" for 1 second
  680. wait 1 second
  681. command "/needthisforgui ghastgui %arg-2%"
  682. set {{@variable}::GD} to "gi"
  683.  
  684. else if arg-1 is "gdn":
  685. send arg-2 title "{@H}Successfully{@C} changed ghast drop" with subtitle "{@C}to a {@H}gold nugget" for 1 second
  686. close arg-2's inventory
  687. wait 1 second
  688. set {{@variable}::GD} to "gn"
  689. command "/needthisforgui ghastgui %arg-2%"
  690.  
  691. else if arg-1 is "gdb":
  692. close arg-2's inventory
  693. send arg-2 title "{@H}Successfully{@C} changed ghast drop" with subtitle "{@C}to a {@H}gold block" for 1 second
  694. wait 1 second
  695. set {{@variable}::GD} to "gb"
  696. command "/needthisforgui ghastgui %arg-2%"
  697.  
  698. else if arg-1 is "gr":
  699. close arg-2's inventory
  700. send arg-2 title "{@H}Successfully{@C} changed ghast drop" with subtitle "{@C}to {@H}vanilla" for 1 second
  701. wait 1 second
  702. delete {{@variable}::GD}
  703. command "/needthisforgui ghastgui %arg-2%"
  704.  
  705. else if arg-1 is "ghastgui":
  706. wait 4 ticks
  707. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  708. wait 1 tick
  709. if {{@variable}::GD} is not set:
  710. format slot 0 of arg-2 with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Normal" to be unstealable
  711. else if {{@variable}::GD} is "gi":
  712. format slot 0 of arg-2 with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Ingot" to be unstealable
  713. else if {{@variable}::GD} is "gn":
  714. format slot 0 of arg-2 with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Nugget" to be unstealable
  715. else if {{@variable}::GD} is "gb":
  716. format slot 0 of arg-2 with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Block" to be unstealable
  717. format slot 1 of arg-2 with a redstone block named "{@C}Reset Drops" to run "needthisforgui gr %arg-2%"
  718. format slot 2 of arg-2 with a gold nugget named "{@C}Drop Gold Nugget" to run "needthisforgui gdn %arg-2%"
  719. format slot 3 of arg-2 with a gold ingot named "{@C}Drop Gold Ingot" to run "needthisforgui gdi %arg-2%"
  720. format slot 4 of arg-2 with a gold block named "{@C}Drop Gold Block" to run "needthisforgui gdb %arg-2%"
  721. formatBack(arg-2)
  722.  
  723. else if arg-1 is "headsgui":
  724. wait 4 ticks
  725. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  726. wait 1 tick
  727. if {{@variable}::GHeads} is not set:
  728. format slot 0 of arg-2 with a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  729. else:
  730. if {{@variable}::GHeadHeal} is not set:
  731. format slot 0 of arg-2 with 8 player heads named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}4{@BC}{@HeartSymbol}" to be unstealable
  732. else:
  733. format slot 0 of arg-2 with (({{@variable}::GHeadHeal}) of player head) named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}%{{@variable}::GHeadHeal}/2%{@BC}{@HeartSymbol}" to be unstealable
  734. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Player Heads" to run "needthisforgui toghead %arg-2%"
  735. format slot 2 of arg-2 with a green wool named "{@H}+0.5 {@BC}{@HeartSymbol}" with lore "{@C}to healing amount" to run "needthisforgui addhead %arg-2%"
  736. format slot 3 of arg-2 with a red wool named "{@H}-0.5 {@BC}{@HeartSymbol}" with lore "{@C}to healing amount" to run "needthisforgui remhead %arg-2%"
  737. formatBack(arg-2)
  738.  
  739. else if arg-1 is "toghead":
  740. if {{@variable}::GHeads} is not set:
  741. set {{@variable}::GHeads} to true
  742. close arg-2's inventory
  743. send arg-2 title "{@H}Enabled{@C} Golden Heads" with subtitle "" for 1 second
  744. wait 1 second
  745. command "/needthisforgui headsgui %arg-2%"
  746. else:
  747. delete {{@variable}::GHeads}
  748. delete {{@variable}::GHeadHeal}
  749. close arg-2's inventory
  750. send arg-2 title "{@H}Disabled{@C} Golden Heads" with subtitle "" for 1 second
  751. wait 1 second
  752. command "/needthisforgui headsgui %arg-2%"
  753.  
  754. else if arg-1 is "addhead":
  755. if {{@variable}::GHeadHeal} is not set:
  756. set {{@variable}::GHeadHeal} to 9
  757. close arg-2's inventory
  758. send arg-2 title "{@H}Added{@C} 0.5 {@BC}{@HeartSymbol}" with subtitle "{@BC}{@DoubleArrow}{@C} Now heals %{{@variable}::GHeadHeal}/2% {@BC}{@HeartSymbol}"
  759. wait 1 second
  760. command "/needthisforgui headsgui %arg-2%"
  761.  
  762. else:
  763. add 1 to {{@variable}::GHeadHeal}
  764. close arg-2's inventory
  765. send arg-2 title "{@H}Added{@C} 0.5 {@BC}{@HeartSymbol}" with subtitle "{@BC}{@DoubleArrow}{@C} Now heals %{{@variable}::GHeadHeal}/2% {@BC}{@HeartSymbol}"
  766. wait 1 second
  767. command "/needthisforgui headsgui %arg-2%"
  768.  
  769. else if arg-1 is "remhead":
  770. if {{@variable}::GHeadHeal} is not set:
  771. set {{@variable}::GHeadHeal} to 7
  772. close arg-2's inventory
  773. send arg-2 title "{@H}Removed{@C} 0.5 {@BC}{@HeartSymbol}" with subtitle "{@BC}{@DoubleArrow}{@C} Now heals %{{@variable}::GHeadHeal}/2% {@BC}{@HeartSymbol}"
  774. wait 1 second
  775. command "/needthisforgui headsgui %arg-2%"
  776.  
  777. else:
  778. remove 1 from {{@variable}::GHeadHeal}
  779. close arg-2's inventory
  780. send arg-2 title "{@H}Removed{@C} 0.5 {@BC}{@HeartSymbol}" with subtitle "{@BC}{@DoubleArrow}{@C} Now heals %{{@variable}::GHeadHeal}/2% {@BC}{@HeartSymbol}"
  781. wait 1 second
  782. command "/needthisforgui headsgui %arg-2%"
  783.  
  784. else if arg-1 is "horsearmorgui":
  785. wait 4 ticks
  786. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  787. wait 1 tick
  788. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Horse Armor" to run "needthisforgui tha %arg-2%"
  789. if {{@variable}::HorseArmor} is not set:
  790. format slot 0 of arg-2 with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  791. else:
  792. format slot 0 of arg-2 with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  793. formatBack(arg-2)
  794.  
  795. else if arg-1 is "tha":
  796. if {{@variable}::HorseArmor} is not set:
  797. set {{@variable}::HorseArmor} to true
  798. close arg-2's inventory
  799. send arg-2 title "{@H}Disabled{@C} Horse Armor" for 1 second
  800. wait 1 second
  801. command "/needthisforgui horsearmorgui %arg-2%"
  802. else:
  803. delete {{@variable}::HorseArmor}
  804. close arg-2's inventory
  805. send arg-2 title "{@H}Enabled{@C} Horse Armor" for 1 second
  806. wait 1 second
  807. command "/needthisforgui horsearmorgui %arg-2%"
  808.  
  809. else if arg-1 is "glowgui":
  810. wait 4 ticks
  811. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  812. wait 1 tick
  813. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Glowstone" to run "needthisforgui tg %arg-2%"
  814. if {{@variable}::NoGlow} is not set:
  815. format slot 0 of arg-2 with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  816. else:
  817. format slot 0 of arg-2 with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  818. formatBack(arg-2)
  819.  
  820. else if arg-1 is "tg":
  821. if {{@variable}::NoGlow} is not set:
  822. set {{@variable}::NoGlow} to true
  823. close arg-2's inventory
  824. send arg-2 title "{@H}Disabled{@C} Glowstone" for 1 second
  825. wait 1 second
  826. command "/needthisforgui glowgui %arg-2%"
  827. else:
  828. delete {{@variable}::NoGlow}
  829. close arg-2's inventory
  830. send arg-2 title "{@H}Enabled{@C} Glowstone" for 1 second
  831. wait 1 second
  832. command "/needthisforgui glowgui %arg-2%"
  833.  
  834. else if arg-1 is "splashgui":
  835. wait 4 ticks
  836. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  837. wait 1 tick
  838. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Splash Potions" to run "needthisforgui tsp %arg-2%"
  839. if {{@variable}::SplashPots} is not set:
  840. format slot 0 of arg-2 with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  841. else:
  842. format slot 0 of arg-2 with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  843. formatBack(arg-2)
  844.  
  845. else if arg-1 is "tsp":
  846. if {{@variable}::SplashPots} is not set:
  847. set {{@variable}::SplashPots} to true
  848. close arg-2's inventory
  849. send arg-2 title "{@H}Disabled{@C} Splash Potions" for 1 second
  850. wait 1 second
  851. command "/needthisforgui splashgui %arg-2%"
  852. else:
  853. delete {{@variable}::SplashPots}
  854. close arg-2's inventory
  855. send arg-2 title "{@H}Enabled{@C} Splash Potions" for 1 second
  856. wait 1 second
  857. command "/needthisforgui splashgui %arg-2%"
  858.  
  859. else if arg-1 is "trapgui":
  860. wait 4 ticks
  861. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  862. wait 1 tick
  863. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Anti Portal Trapping" to run "needthisforgui tpt %arg-2%"
  864. if {{@variable}::AntiTrap} is not set:
  865. format slot 0 of arg-2 with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  866. else:
  867. format slot 0 of arg-2 with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  868. formatBack(arg-2)
  869.  
  870. else if arg-1 is "tpt":
  871. if {{@variable}::AntiTrap} is not set:
  872. set {{@variable}::AntiTrap} to true
  873. close arg-2's inventory
  874. send arg-2 title "{@H}Enabled{@C} Anti Portal Trapping" for 1 second
  875. wait 1 second
  876. command "/needthisforgui trapgui %arg-2%"
  877. else:
  878. delete {{@variable}::AntiTrap}
  879. close arg-2's inventory
  880. send arg-2 title "{@H}Disabled{@C} Anti Portal Trapping" for 1 second
  881. wait 1 second
  882. command "/needthisforgui trapgui %arg-2%"
  883.  
  884. else if arg-1 is "brewgui":
  885. wait 4 ticks
  886. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  887. wait 1 tick
  888. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Brewing Stands" to run "needthisforgui tbs %arg-2%"
  889. if {{@variable}::BrewingStands} is not set:
  890. format slot 0 of arg-2 with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  891. else:
  892. format slot 0 of arg-2 with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  893. formatBack(arg-2)
  894.  
  895. else if arg-1 is "tbs":
  896. if {{@variable}::BrewingStands} is not set:
  897. set {{@variable}::BrewingStands} to true
  898. close arg-2's inventory
  899. send arg-2 title "{@H}Disabled{@C} Brewing Stands" for 1 second
  900. wait 1 second
  901. command "/needthisforgui brewgui %arg-2%"
  902. else:
  903. delete {{@variable}::BrewingStands}
  904. close arg-2's inventory
  905. send arg-2 title "{@H}Enabled{@C} Brewing Stands" for 1 second
  906. wait 1 second
  907. command "/needthisforgui brewgui %arg-2%"
  908.  
  909. else if arg-1 is "strgui":
  910. wait 4 ticks
  911. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  912. wait 1 tick
  913. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Blaze Powder (Str Pots)" to run "needthisforgui tbp %arg-2%"
  914. if {{@variable}::StrPots} is not set:
  915. format slot 0 of arg-2 with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  916. else:
  917. format slot 0 of arg-2 with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  918. formatBack(arg-2)
  919.  
  920. else if arg-1 is "tbp":
  921. if {{@variable}::StrPots} is not set:
  922. set {{@variable}::StrPots} to true
  923. close arg-2's inventory
  924. send arg-2 title "{@H}Disabled{@C} Blaze Powder (Str Pots)" for 1 second
  925. wait 1 second
  926. command "/needthisforgui strgui %arg-2%"
  927. else:
  928. delete {{@variable}::StrPots}
  929. close arg-2's inventory
  930. send arg-2 title "{@H}Enabled{@C} Blaze Powder (Str Pots)" for 1 second
  931. wait 1 second
  932. command "/needthisforgui strgui %arg-2%"
  933.  
  934. else if arg-1 is "godgui":
  935. wait 4 ticks
  936. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  937. wait 1 tick
  938. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} God Apples" to run "needthisforgui tga %arg-2%"
  939. if {{@variable}::GodApp} is not set:
  940. format slot 0 of arg-2 with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  941. else:
  942. format slot 0 of arg-2 with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  943. formatBack(arg-2)
  944.  
  945. else if arg-1 is "tga":
  946. if {{@variable}::GodApp} is not set:
  947. set {{@variable}::GodApp} to true
  948. close arg-2's inventory
  949. send arg-2 title "{@H}Disabled{@C} God Apples" for 1 second
  950. wait 1 second
  951. command "/needthisforgui godgui %arg-2%"
  952. else:
  953. delete {{@variable}::GodApp}
  954. close arg-2's inventory
  955. send arg-2 title "{@H}Enabled{@C} God Apples" for 1 second
  956. wait 1 second
  957. command "/needthisforgui godgui %arg-2%"
  958.  
  959. else if arg-1 is "bookgui":
  960. wait 4 ticks
  961. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  962. wait 1 tick
  963. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Bookshelves" to run "needthisforgui tb %arg-2%"
  964. if {{@variable}::Bookshelves} is not set:
  965. format slot 0 of arg-2 with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  966. else:
  967. format slot 0 of arg-2 with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  968. formatBack(arg-2)
  969.  
  970. else if arg-1 is "tb":
  971. if {{@variable}::Bookshelves} is not set:
  972. set {{@variable}::Bookshelves} to true
  973. close arg-2's inventory
  974. send arg-2 title "{@H}Disabled{@C} Bookshelves" for 1 second
  975. wait 1 second
  976. command "/needthisforgui bookgui %arg-2%"
  977. else:
  978. delete {{@variable}::Bookshelves}
  979. close arg-2's inventory
  980. send arg-2 title "{@H}Enabled{@C} Bookshelves" for 1 second
  981. wait 1 second
  982. command "/needthisforgui bookgui %arg-2%"
  983.  
  984. else if arg-1 is "melongui":
  985. wait 4 ticks
  986. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  987. wait 1 tick
  988. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Hard Melon Recipe" to run "needthisforgui tm %arg-2%"
  989. if {{@variable}::GlistMelon} is not set:
  990. format slot 0 of arg-2 with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  991. else:
  992. format slot 0 of arg-2 with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  993. formatBack(arg-2)
  994.  
  995. else if arg-1 is "tm":
  996. if {{@variable}::GlistMelon} is not set:
  997. set {{@variable}::GlistMelon} to true
  998. close arg-2's inventory
  999. send arg-2 title "{@H}Enabled{@C} Hard Melon Recipe" for 1 second
  1000. wait 1 second
  1001. command "/needthisforgui melongui %arg-2%"
  1002. else:
  1003. delete {{@variable}::GlistMelon}
  1004. close arg-2's inventory
  1005. send arg-2 title "{@H}Disabled{@C} Hard Melon Recipe" for 1 second
  1006. wait 1 second
  1007. command "/needthisforgui melongui %arg-2%"
  1008.  
  1009. else if arg-1 is "absorpgui":
  1010. wait 4 ticks
  1011. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  1012. wait 1 tick
  1013. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Absorption" to run "needthisforgui tab %arg-2%"
  1014. if {{@variable}::Absorp} is not set:
  1015. format slot 0 of arg-2 with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  1016. else:
  1017. format slot 0 of arg-2 with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  1018. formatBack(arg-2)
  1019.  
  1020. else if arg-1 is "tab":
  1021. if {{@variable}::Absorp} is not set:
  1022. set {{@variable}::Absorp} to true
  1023. close arg-2's inventory
  1024. send arg-2 title "{@H}Enabled{@C} Absorption" for 1 second
  1025. wait 1 second
  1026. command "/needthisforgui absorpgui %arg-2%"
  1027. else:
  1028. delete {{@variable}::Absorp}
  1029. close arg-2's inventory
  1030. send arg-2 title "{@H}Disabled{@C} Absorption" for 1 second
  1031. wait 1 second
  1032. command "/needthisforgui absorpgui %arg-2%"
  1033.  
  1034. else if arg-1 is "ipvpgui":
  1035. wait 4 ticks
  1036. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  1037. wait 1 tick
  1038. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Anti iPvP" to run "needthisforgui tan %arg-2%"
  1039. if {{@variable}::AntiiPvP} is not set:
  1040. format slot 0 of arg-2 with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  1041. else:
  1042. format slot 0 of arg-2 with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  1043. formatBack(arg-2)
  1044.  
  1045. else if arg-1 is "tan":
  1046. if {{@variable}::AntiiPvP} is not set:
  1047. set {{@variable}::AntiiPvP} to true
  1048. close arg-2's inventory
  1049. send arg-2 title "{@H}Enabled{@C} Anti iPvP" for 1 second
  1050. wait 1 second
  1051. command "/needthisforgui ipvpgui %arg-2%"
  1052. else:
  1053. delete {{@variable}::AntiiPvP}
  1054. close arg-2's inventory
  1055. send arg-2 title "{@H}Disabled{@C} Anti iPvP" for 1 second
  1056. wait 1 second
  1057. command "/needthisforgui ipvpgui %arg-2%"
  1058.  
  1059. else if arg-1 is "nethergui":
  1060. wait 4 ticks
  1061. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  1062. wait 1 tick
  1063. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Nether" to run "needthisforgui tn %arg-2%"
  1064. if {{@variable}::NP} is not set:
  1065. format slot 0 of arg-2 with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
  1066. else:
  1067. format slot 0 of arg-2 with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  1068. formatBack(arg-2)
  1069.  
  1070. else if arg-1 is "tn":
  1071. if {{@variable}::NP} is not set:
  1072. set {{@variable}::NP} to true
  1073. close arg-2's inventory
  1074. send arg-2 title "{@H}Disabled{@C} Nether" for 1 second
  1075. wait 1 second
  1076. command "/needthisforgui nethergui %arg-2%"
  1077. else:
  1078. delete {{@variable}::NP}
  1079. close arg-2's inventory
  1080. send arg-2 title "{@H}Enabled{@C} Nether" for 1 second
  1081. wait 1 second
  1082. command "/needthisforgui nethergui %arg-2%"
  1083.  
  1084. else if arg-1 is "xpgui":
  1085. wait 4 ticks
  1086. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  1087. wait 1 tick
  1088. format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Quartz XP Nerf" to run "needthisforgui txpn %arg-2%"
  1089. if {{@variable}::QuartzXP} is not set:
  1090. format slot 0 of arg-2 with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
  1091. else:
  1092. format slot 0 of arg-2 with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Enabled (1/2 of Vanilla XP)" to be unstealable
  1093. formatBack(arg-2)
  1094.  
  1095. else if arg-1 is "txpn":
  1096. if {{@variable}::QuartzXP} is not set:
  1097. set {{@variable}::QuartzXP} to true
  1098. close arg-2's inventory
  1099. send arg-2 title "{@H}Enabled{@C} Quartz XP Nerf" for 1 second
  1100. wait 1 second
  1101. command "/needthisforgui xpgui %arg-2%"
  1102. else:
  1103. delete {{@variable}::QuartzXP}
  1104. close arg-2's inventory
  1105. send arg-2 title "{@H}Disabled{@C} Quartz XP Nerf" for 1 second
  1106. wait 1 second
  1107. command "/needthisforgui xpgui %arg-2%"
  1108.  
  1109. else if arg-1 is "flintgui":
  1110. wait 4 ticks
  1111. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  1112. wait 1 tick
  1113. formatBack(arg-2)
  1114. if {{@variable}::FlintRates} is not set:
  1115. format slot 0 of arg-2 with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla" to be unstealable
  1116. else:
  1117. format slot 0 of arg-2 with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::FlintRates}%%%" to be unstealable
  1118. format slot 1 of arg-2 with a redstone block named "{@C}Reset Flint Rates" to run "needthisforgui rfr %arg-2%"
  1119. format slot 2 of arg-2 with a green wool named "{@C}+0.5%% Rates" to run "needthisforgui add05flint %arg-2%"
  1120. format slot 3 of arg-2 with a green wool named "{@C}+1%% Rates" to run "needthisforgui add1flint %arg-2%"
  1121. format slot 4 of arg-2 with a green wool named "{@C}+10%% Rates" to run "needthisforgui add10flint %arg-2%"
  1122. format slot 5 of arg-2 with a red wool named "{@C}-0.5%% Rates" to run "needthisforgui rem05flint %arg-2%"
  1123. format slot 6 of arg-2 with a red wool named "{@C}-1%% Rates" to run "needthisforgui rem1flint %arg-2%"
  1124. format slot 7 of arg-2 with a red wool named "{@C}-10%% Rates" to run "needthisforgui rem10flint %arg-2%"
  1125.  
  1126. else if arg-1 is "applegui":
  1127. wait 4 ticks
  1128. open chest with 1 row named "{@FeatureConfigName}" to arg-2
  1129. wait 1 tick
  1130. formatBack(arg-2)
  1131. if {{@variable}::AppleRates} is not set:
  1132. format slot 0 of arg-2 with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (0.55%%) (no shears!)" to be unstealable
  1133. else:
  1134. if {{@variable}::OakOnly} is set:
  1135. set {_oa} to "Oak and Dark Oak trees only drop apples"
  1136. else:
  1137. set {_oa} to "All trees drop apples"
  1138. if {{@variable}::NoShears} is set:
  1139. set {_NS} to "Shears don't work"
  1140. else:
  1141. set {_NS} to "Shears will work"
  1142. format slot 0 of arg-2 with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::AppleRates}%%% || {@BC}{@DoubleArrow}{@H} %{_NS}% || {@BC}{@DoubleArrow}{@H} %{_oa}%" to be unstealable
  1143. format slot 1 of arg-2 with a redstone block named "{@C}Reset Apple Rates" to run "needthisforgui rar %arg-2%"
  1144. format slot 2 of arg-2 with a green wool named "{@C}+0.5%% Rates" to run "needthisforgui add05apple %arg-2%"
  1145. format slot 3 of arg-2 with a green wool named "{@C}+5%% Rates" to run "needthisforgui add5apple %arg-2%"
  1146. format slot 4 of arg-2 with a red wool named "{@C}-0.5%% Rates" to run "needthisforgui rem05apple %arg-2%"
  1147. format slot 5 of arg-2 with a red wool named "{@C}-5%% Rates" to run "needthisforgui rem5apple %arg-2%"
  1148. format slot 6 of arg-2 with shears named "{@C}Toggle Shears" to run "needthisforgui togshears %arg-2%"
  1149. format slot 7 of arg-2 with oak wood block named "{@C}Toggle Oak Only" to run "needthisforgui togoakonly %arg-2%"
  1150.  
  1151. else if arg-1 is "rar":
  1152. delete {{@variable}::AppleRates}
  1153. delete {{@variable}::NoShears}
  1154. delete {{@variable}::OakOnly}
  1155. close arg-2's inventory
  1156. send arg-2 title "{@H}Reset{@C} apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now Vanilla (0.55%%)" for 1 second
  1157. wait 1 second
  1158. command "/needthisforgui applegui %arg-2%"
  1159.  
  1160. else if arg-1 is "togshears":
  1161. if {{@variable}::NoShears} is not set:
  1162. set {{@variable}::NoShears} to true
  1163. close arg-2's inventory
  1164. send arg-2 title "{@H}Disabled{@C} Shears" with subtitle "" for 1 second
  1165. wait 1 second
  1166. command "/needthisforgui applegui %arg-2%"
  1167. else:
  1168. delete {{@variable}::NoShears}
  1169. close arg-2's inventory
  1170. send arg-2 title "{@H}Enabled{@C} Shears" with subtitle "" for 1 second
  1171. wait 1 second
  1172. command "/needthisforgui applegui %arg-2%"
  1173.  
  1174. else if arg-1 is "togoakonly":
  1175. if {{@variable}::OakOnly} is not set:
  1176. set {{@variable}::OakOnly} to true
  1177. close arg-2's inventory
  1178. send arg-2 title "{@H}Enabled{@C} Oak Only Apples" with subtitle "" for 1 second
  1179. wait 1 second
  1180. command "/needthisforgui applegui %arg-2%"
  1181. else:
  1182. delete {{@variable}::OakOnly}
  1183. close arg-2's inventory
  1184. send arg-2 title "{@H}Disabled{@C} Oak Only Apples" with subtitle "" for 1 second
  1185. wait 1 second
  1186. command "/needthisforgui applegui %arg-2%"
  1187.  
  1188. else if arg-1 is "rem5apple":
  1189. if {{@variable}::AppleRates} is not set:
  1190. close arg-2's inventory
  1191. set {{@variable}::AppleRates} to 0
  1192. send arg-2 title "{@H}Removed{@C} 5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
  1193. wait 1 second
  1194. command "/needthisforgui applegui %arg-2%"
  1195.  
  1196. else if {{@variable}::AppleRates} is less than or equal to 0:
  1197. close arg-2's inventory
  1198. send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
  1199. wait 1 second
  1200. command "/needthisforgui applegui %arg-2%"
  1201.  
  1202. else:
  1203. remove 5 from {{@variable}::AppleRates}
  1204. if {{@variable}::AppleRates} is less than 0:
  1205. set {{@variable}::AppleRates} to 0
  1206. close arg-2's inventory
  1207. send arg-2 title "{@H}Removed{@C} 5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
  1208. wait 1 second
  1209. command "/needthisforgui applegui %arg-2%"
  1210.  
  1211. else if arg-1 is "add5apple":
  1212. if {{@variable}::AppleRates} is not set:
  1213. close arg-2's inventory
  1214. set {{@variable}::AppleRates} to 5.05
  1215. send arg-2 title "{@H}Added{@C} 5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
  1216. wait 1 second
  1217. command "/needthisforgui applegui %arg-2%"
  1218.  
  1219. else if {{@variable}::AppleRates} is greater than or equal to 100:
  1220. close arg-2's inventory
  1221. send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
  1222. wait 1 second
  1223. command "/needthisforgui applegui %arg-2%"
  1224.  
  1225. else:
  1226. add 5 to {{@variable}::AppleRates}
  1227. if {{@variable}::AppleRates} is more than 100:
  1228. set {{@variable}::AppleRates} to 100
  1229. close arg-2's inventory
  1230. send arg-2 title "{@H}Added{@C} 5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
  1231. wait 1 second
  1232. command "/needthisforgui applegui %arg-2%"
  1233.  
  1234. else if arg-1 is "rem05apple":
  1235. if {{@variable}::AppleRates} is not set:
  1236. close arg-2's inventory
  1237. set {{@variable}::AppleRates} to 0.05
  1238. send arg-2 title "{@H}Removed{@C} 0.5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
  1239. wait 1 second
  1240. command "/needthisforgui applegui %arg-2%"
  1241.  
  1242. else if {{@variable}::AppleRates} is less than or equal to 0:
  1243. close arg-2's inventory
  1244. send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
  1245. wait 1 second
  1246. command "/needthisforgui applegui %arg-2%"
  1247.  
  1248. else:
  1249. remove 0.5 from {{@variable}::AppleRates}
  1250. if {{@variable}::AppleRates} is less than 0:
  1251. set {{@variable}::AppleRates} to 0
  1252. close arg-2's inventory
  1253. send arg-2 title "{@H}Removed{@C} 0.5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
  1254. wait 1 second
  1255. command "/needthisforgui applegui %arg-2%"
  1256.  
  1257. else if arg-1 is "add05apple":
  1258. if {{@variable}::AppleRates} is not set:
  1259. close arg-2's inventory
  1260. set {{@variable}::AppleRates} to 1.05
  1261. send arg-2 title "{@H}Added{@C} 0.5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
  1262. wait 1 second
  1263. command "/needthisforgui applegui %arg-2%"
  1264.  
  1265. else if {{@variable}::AppleRates} is greater than or equal to 100:
  1266. close arg-2's inventory
  1267. send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
  1268. wait 1 second
  1269. command "/needthisforgui applegui %arg-2%"
  1270.  
  1271. else:
  1272. add 0.5 to {{@variable}::AppleRates}
  1273. if {{@variable}::AppleRates} is more than 100:
  1274. set {{@variable}::AppleRates} to 100
  1275. close arg-2's inventory
  1276. send arg-2 title "{@H}Added{@C} 0.5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
  1277. wait 1 second
  1278. command "/needthisforgui applegui %arg-2%"
  1279.  
  1280. else if arg-1 is "add10flint":
  1281. if {{@variable}::FlintRates} is not set:
  1282. close arg-2's inventory
  1283. set {{@variable}::FlintRates} to 20
  1284. send arg-2 title "{@H}Added{@C} 10%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1285. wait 1 second
  1286. command "/needthisforgui flintgui %arg-2%"
  1287.  
  1288. else if {{@variable}::FlintRates} is greater than or equal to 100:
  1289. close arg-2's inventory
  1290. send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
  1291. wait 1 second
  1292. command "/needthisforgui flintgui %arg-2%"
  1293.  
  1294. else:
  1295. add 10 to {{@variable}::FlintRates}
  1296. if {{@variable}::FlintRates} is more than 100:
  1297. set {{@variable}::FlintRates} to 100
  1298. close arg-2's inventory
  1299. send arg-2 title "{@H}Added{@C} 10%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1300. wait 1 second
  1301. command "/needthisforgui flintgui %arg-2%"
  1302.  
  1303. else if arg-1 is "rem10flint":
  1304. if {{@variable}::FlintRates} is not set:
  1305. close arg-2's inventory
  1306. set {{@variable}::FlintRates} to 0
  1307. send arg-2 title "{@H}Removed{@C} 10%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1308. wait 1 second
  1309. command "/needthisforgui flintgui %arg-2%"
  1310.  
  1311. else if ({{@variable}::FlintRates}) is less than or equal to 0:
  1312. close arg-2's inventory
  1313. send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
  1314. wait 1 second
  1315. command "/needthisforgui flintgui %arg-2%"
  1316.  
  1317. else:
  1318. remove 10 from {{@variable}::FlintRates}
  1319. if {{@variable}::FlintRates} is less than 0:
  1320. set {{@variable}::FlintRates} to 0
  1321. close arg-2's inventory
  1322. send arg-2 title "{@H}Removed{@C} 10%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1323. wait 1 second
  1324. command "/needthisforgui flintgui %arg-2%"
  1325.  
  1326. else if arg-1 is "add05flint":
  1327. if {{@variable}::FlintRates} is not set:
  1328. close arg-2's inventory
  1329. set {{@variable}::FlintRates} to 10.5
  1330. send arg-2 title "{@H}Added{@C} 0.5%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1331. wait 1 second
  1332. command "/needthisforgui flintgui %arg-2%"
  1333.  
  1334. else if {{@variable}::FlintRates} is greater than or equal to 100:
  1335. close arg-2's inventory
  1336. send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
  1337. wait 1 second
  1338. command "/needthisforgui flintgui %arg-2%"
  1339.  
  1340. else:
  1341. add 0.5 to {{@variable}::FlintRates}
  1342. if {{@variable}::FlintRates} is more than 100:
  1343. set {{@variable}::FlintRates} to 100
  1344. close arg-2's inventory
  1345. send arg-2 title "{@H}Added{@C} 0.5%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1346. wait 1 second
  1347. command "/needthisforgui flintgui %arg-2%"
  1348.  
  1349. else if arg-1 is "add1flint":
  1350. if {{@variable}::FlintRates} is not set:
  1351. close arg-2's inventory
  1352. set {{@variable}::FlintRates} to 11
  1353. send arg-2 title "{@H}Added{@C} 1%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1354. wait 1 second
  1355. command "/needthisforgui flintgui %arg-2%"
  1356.  
  1357. else if {{@variable}::FlintRates} is greater than or equal to 100:
  1358. close arg-2's inventory
  1359. send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
  1360. wait 1 second
  1361. command "/needthisforgui flintgui %arg-2%"
  1362.  
  1363. else:
  1364. add 1 to {{@variable}::FlintRates}
  1365. if {{@variable}::FlintRates} is more than 100:
  1366. set {{@variable}::FlintRates} to 100
  1367. close arg-2's inventory
  1368. send arg-2 title "{@H}Added{@C} 1%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1369. wait 1 second
  1370. command "/needthisforgui flintgui %arg-2%"
  1371.  
  1372. else if arg-1 is "rem1flint":
  1373. if {{@variable}::FlintRates} is not set:
  1374. close arg-2's inventory
  1375. set {{@variable}::FlintRates} to 9
  1376. send arg-2 title "{@H}Removed{@C} 1%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1377. wait 1 second
  1378. command "/needthisforgui flintgui %arg-2%"
  1379.  
  1380. else if {{@variable}::FlintRates} is less than or equal to 0:
  1381. close arg-2's inventory
  1382. send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
  1383. wait 1 second
  1384. command "/needthisforgui flintgui %arg-2%"
  1385.  
  1386. else:
  1387. remove 1 from {{@variable}::FlintRates}
  1388. if {{@variable}::FlintRates} is less than 0:
  1389. set {{@variable}::FlintRates} to 0
  1390. close arg-2's inventory
  1391. send arg-2 title "{@H}Removed{@C} 1%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1392. wait 1 second
  1393. command "/needthisforgui flintgui %arg-2%"
  1394.  
  1395. else if arg-1 is "rem05flint":
  1396. if {{@variable}::FlintRates} is not set:
  1397. close arg-2's inventory
  1398. set {{@variable}::FlintRates} to 9.5
  1399. send arg-2 title "{@H}Removed{@C} 0.5%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1400. wait 1 second
  1401. command "/needthisforgui flintgui %arg-2%"
  1402.  
  1403. else if {{@variable}::FlintRates} is less than or equal to 0:
  1404. close arg-2's inventory
  1405. send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
  1406. wait 1 second
  1407. command "/needthisforgui flintgui %arg-2%"
  1408.  
  1409. else:
  1410. remove 0.5 from {{@variable}::FlintRates}
  1411. if {{@variable}::FlintRates} is less than 0:
  1412. set {{@variable}::FlintRates} to 0
  1413. close arg-2's inventory
  1414. send arg-2 title "{@H}Removed{@C} 0.5%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
  1415. wait 1 second
  1416. command "/needthisforgui flintgui %arg-2%"
  1417.  
  1418. else if arg-1 is "rfr":
  1419. delete {{@variable}::FlintRates}
  1420. close arg-2's inventory
  1421. send arg-2 title "{@H}Reset{@C} flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now Vanilla (10%%)" for 1 second
  1422. wait 1 second
  1423. command "/needthisforgui flintgui %arg-2%"
  1424.  
  1425. else if arg-1 is "openconfig":
  1426. close arg-2's inventory
  1427. wait 5 ticks
  1428. arg-2 command "/feature config"
  1429.  
  1430. on shoot:
  1431. world is not "{@ExcludedWorld}"
  1432. "%projectile%" is "thrown potion"
  1433. {{@variable}::SplashPots} is set
  1434. cancel the event
  1435. send "{@E}{@C} Splash Potions are {@H}DISABLED!" to shooter
  1436.  
  1437. on rightclick on chest:
  1438. {{@variable}::HorseArmor} is set
  1439. loop all items in inventory of event-block:
  1440. if loop-item's id is 417, 418 or 419:
  1441. set loop-item to air
  1442.  
  1443. on break of chest:
  1444. {{@variable}::HorseArmor} is set
  1445. loop all items in inventory of event-block:
  1446. if loop-item's id is 417, 418 or 419:
  1447. set loop-item to air
  1448.  
  1449. on death of a ghast:
  1450. {{@variable}::GD} is set
  1451. clear drops
  1452. if {{@variable}::GD} is "gn":
  1453. drop a gold nugget at location of victim
  1454. else if {{@variable}::GD} is "gi":
  1455. drop a gold ingot at location of victim
  1456. else if {{@variable}::GD} is "gb":
  1457. drop a gold block at location of victim
  1458.  
  1459. on death of a player:
  1460. set {_w} to world of victim
  1461. {_w} is not "{@ExcludedWorld}"
  1462. if {{@variable}::DL} is true:
  1463. strike lightning effect at the victim
  1464. loop all players:
  1465. "%world of loop-player%" is not {_w}
  1466. command "/playsound ambient.weather.thunder %loop-player% ~ ~ ~ 1 1 1"
  1467. if {{@variable}::AS} is true:
  1468. set {_a} to armorStand(location at victim)
  1469. if {{@variable}::GHeads} is true:
  1470. equip {_a} with victim's skull
  1471. if victim's leggings is not air:
  1472. set {_vp} to victim's leggings
  1473. if victim's chestplate is not air:
  1474. set {_vc} to victim's chestplate
  1475. if victim's boots is not air:
  1476. set {_vb} to victim's boots
  1477. if {_vc} is set:
  1478. equip {_a} with victim's chestplate
  1479. remove victim's chestplate from the drops
  1480. if {_vp} is set:
  1481. equip {_a} with victim's leggings
  1482. remove victim's leggings from the drops
  1483. if {_vb} is set:
  1484. equip {_a} with victim's boots
  1485. remove victim's boots from the drops
  1486. else:
  1487. if victim's helmet is not air:
  1488. set {_vh} to victim's helmet
  1489. if victim's leggings is not air:
  1490. set {_vp} to victim's leggings
  1491. if victim's chestplate is not air:
  1492. set {_vc} to victim's chestplate
  1493. if victim's boots is not air:
  1494. set {_vb} to victim's boots
  1495. if {_vh} is set:
  1496. equip {_a} with victim's helmet
  1497. remove victim's helmet from the drops
  1498. if {_vc} is set:
  1499. equip {_a} with victim's chestplate
  1500. remove victim's chestplate from the drops
  1501. if {_vp} is set:
  1502. equip {_a} with victim's leggings
  1503. remove victim's leggings from the drops
  1504. if {_vb} is set:
  1505. equip {_a} with victim's boots
  1506. remove victim's boots from the drops
  1507. else:
  1508. {{@variable}::GHeads} is true
  1509. drop victim's skull at location of victim
  1510.  
  1511. on heal:
  1512. if {{@variable}::NR} is not set:
  1513. event-entity is a player
  1514. heal reason is satiated
  1515. cancel the event
  1516. wait 1 tick
  1517. updateTab(player)
  1518.  
  1519. function saveVar(p: player, var: text):
  1520. if {{@variable}::%{_var}%} is set:
  1521. set {{@variable}::Hosting::%{_p}%::%{_var}%} to {{@variable}::%{_var}%}
  1522. send "{@P}{@C} SAVED {@H}[->]{@C} %{_var}% {@H}[->]{@C} %{_p}%" to {_p}
  1523.  
  1524. function loadVar(p: player, var: text):
  1525. if {{@variable}::Hosting::%{_p}%::%{_var}%} is set:
  1526. set {{@variable}::%{_var}%} to ({{@variable}::Hosting::%{_p}%::%{_var}%})
  1527. else:
  1528. delete {{@variable}::%{_var}%}
  1529. send "{@P}{@C} LOADED {@H}[->]{@C} %{_var}% {@H}[->]{@C} %{_p}%" to {_p}
  1530.  
  1531. command /savehostingpreferences:
  1532. aliases: /saveconfig, /savehosting, /savepreferences
  1533. permission: skript.op
  1534. trigger:
  1535. delete {{@variable}::Hosting::%command sender%::*}
  1536. saveVar(command sender, "EPD")
  1537. saveVar(command sender, "GD")
  1538. saveVar(command sender, "AS")
  1539. saveVar(command sender, "GHeads")
  1540. saveVar(command sender, "GHeadHeal")
  1541. saveVar(command sender, "NR")
  1542. saveVar(command sender, "Horses")
  1543. saveVar(command sender, "HorseHeal")
  1544. saveVar(command sender, "HorseArmor")
  1545. saveVar(command sender, "NoGlow")
  1546. saveVar(command sender, "AntiTrap")
  1547. saveVar(command sender, "BrewingStands")
  1548. saveVar(command sender, "Bookshelves")
  1549. saveVar(command sender, "GodApp")
  1550. saveVar(command sender, "StrPots")
  1551. saveVar(command sender, "Absorp")
  1552. saveVar(command sender, "FlintRates")
  1553. saveVar(command sender, "OakOnly")
  1554. saveVar(command sender, "NoShears")
  1555. saveVar(command sender, "AppleRates")
  1556. saveVar(command sender, "AntiiPvP")
  1557. saveVar(command sender, "NP")
  1558. saveVar(command sender, "QuartzXP")
  1559. saveVar(command sender, "GlistMelon")
  1560. saveVar(command sender, "SplashPots")
  1561.  
  1562. command /loadhostingpreferences:
  1563. aliases: /loadconfig, /loadhosting, /loadprefernces
  1564. trigger:
  1565. loadVar(command sender, "EPD")
  1566. loadVar(command sender, "GD")
  1567. loadVar(command sender, "AS")
  1568. loadVar(command sender, "GHeads")
  1569. loadVar(command sender, "GHeadHeal")
  1570. loadVar(command sender, "NR")
  1571. loadVar(command sender, "Horses")
  1572. loadVar(command sender, "HorseHeal")
  1573. loadVar(command sender, "HorseArmor")
  1574. loadVar(command sender, "NoGlow")
  1575. loadVar(command sender, "AntiTrap")
  1576. loadVar(command sender, "BrewingStands")
  1577. loadVar(command sender, "Bookshelves")
  1578. loadVar(command sender, "GodApp")
  1579. loadVar(command sender, "StrPots")
  1580. loadVar(command sender, "Absorp")
  1581. loadVar(command sender, "FlintRates")
  1582. loadVar(command sender, "OakOnly")
  1583. loadVar(command sender, "NoShears")
  1584. loadVar(command sender, "AppleRates")
  1585. loadVar(command sender, "AntiiPvP")
  1586. loadVar(command sender, "NP")
  1587. loadVar(command sender, "QuartzXP")
  1588. loadVar(command sender, "GlistMelon")
  1589. loadVar(command sender, "SplashPots")
  1590.  
  1591. on hunger meter change:
  1592. {@SatFix} is true
  1593. wait 1 tick
  1594. set player's saturation level to (player's saturation level*2.5)
  1595.  
  1596. on rightclick on a horse holding sugar, wheat, apple, golden apple, hay block or golden carrot:
  1597. {{@variable}::HorseHeal} is set
  1598. cancel the event
  1599. if {{@variable}::HorseHeal} is 0:
  1600. send "{@E}{@C} Horse Healing is {@H}DISABLED!" to event-player
  1601. stop trigger
  1602. if player's tool is a sugar:
  1603. remove (1 of (event-player's tool)) from event-player's tool
  1604. heal event-entity by {@SugarHealHorse}*({{@variable}::HorseHeal}/1000)
  1605. else if player's tool is a wheat:
  1606. remove (1 of (event-player's tool)) from event-player's tool
  1607. heal event-entity by {@WheatHealHorse}*({{@variable}::HorseHeal}/1000)
  1608. else if player's tool is a apple:
  1609. remove (1 of (event-player's tool)) from event-player's tool
  1610. heal event-entity by {@AppleHealHorse}*({{@variable}::HorseHeal}/1000)
  1611. else if player's tool is a golden apple:
  1612. remove (1 of (event-player's tool)) from event-player's tool
  1613. heal event-entity by {@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)
  1614. else if player's tool is a golden carrot:
  1615. remove (1 of (event-player's tool)) from event-player's tool
  1616. heal event-entity by {@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)
  1617. else if player's tool is a hay block:
  1618. remove (1 of (event-player's tool)) from event-player's tool
  1619. heal event-entity by {@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)
  1620.  
  1621. command /horsehealamounts:
  1622. trigger:
  1623. if {{@variable}::HorseHeal} is not set:
  1624. set {_t} to 0.1
  1625. else:
  1626. set {_t} to ({{@variable}::HorseHeal}/1000)
  1627. send "{@P}{@C} Sugar:{@H} %{@SugarHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1628. send "{@P}{@C} Wheat:{@H} %{@WheatHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1629. send "{@P}{@C} Apple:{@H} %{@AppleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1630. send "{@P}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1631. send "{@P}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1632. send "{@P}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1633.  
  1634. on death of a witch:
  1635. {{@variable}::NoGlow} is set
  1636. remove all glowstone from the drops
  1637.  
  1638. on skript load:
  1639. command "/difficulty {@Difficulty}"
  1640. register new shapeless recipe for glistering melon named "&fGlistering Melon" using air, air, air, melon slice, gold block, air, air, air, air
  1641. register new shaped recipe for golden apple item named "&6Golden Head" using gold ingot, gold ingot, gold ingot, gold ingot, player head, gold ingot, gold ingot, gold ingot, gold ingot
  1642. command "/scoreboard objectives add Health dummy {@HeartSymbol}"
  1643. command "/scoreboard objectives add HealthTab dummy HealthTab"
  1644. command "/scoreboard objectives setdisplay list HealthTab"
  1645. command "/scoreboard objectives setdisplay belowName Health"
  1646.  
  1647. on join:
  1648. player has permission "skript.op"
  1649. if text from "http://pastebin.com/raw.php?i=GvTraFpF" does not contain "{@CurrentVersion}":
  1650. send "{@P}{@C} New update found for %script%.sk"
  1651. send "{@P}{@C} Download here{@BC}: {@H}pastebin.com/raw.php?i=GvTraFpF"
  1652.  
  1653. on mine of glowstone:
  1654. {{@variable}::NoGlow} is set
  1655. cancel the event
  1656. set the event-block to air
  1657. send "{@E}{@C} Glowstone is {@H}DISABLED!"
  1658.  
  1659. on flow:
  1660. world of event-block is not "{@ExcludedWorld}"
  1661. {{@variable}::AntiTrap} is set
  1662. event-block is lava
  1663. loop blocks in radius 4:
  1664. loop-block is a portal
  1665. cancel the event
  1666. stop loop
  1667.  
  1668. on place of lava:
  1669. world of event-block is not "{@ExcludedWorld}"
  1670. {{@variable}::AntiTrap} is set
  1671. event-block is lava
  1672. loop blocks in radius 4:
  1673. loop-block is a portal
  1674. cancel the event
  1675. send "{@E}{@C} Portal Trapping is {@H}DISABLED!"
  1676. stop loop
  1677.  
  1678. on craft:
  1679. if {{@variable}::BrewingStands} is set:
  1680. event-item is a brewing stand
  1681. cancel the event
  1682. send "{@E}{@C} Brewing Stands are {@H}DISABLED!"
  1683. if {{@variable}::StrPots} is set:
  1684. event-item is a blaze powder
  1685. cancel the event
  1686. send "{@E}{@C} Strength Potions are {@H}DISABLED!"
  1687. if {{@variable}::GodApp} is set:
  1688. event-item is a enchanted golden apple
  1689. cancel the event
  1690. send "{@E}{@C} God Apples are {@H}DISABLED!"
  1691. if {{@variable}::Bookshelves} is set:
  1692. event-item is a bookshelf
  1693. cancel the event
  1694. send "{@E}{@C} Bookshelves are {@H}DISABLED!"
  1695. if {{@variable}::GHeads} is not set:
  1696. "%name of event-item%" is "&6Golden Head"
  1697. cancel the event
  1698. send "{@E}{@C} Golden Heads are {@H}DISABLED!"
  1699. if {{@variable}::GlistMelon} is true:
  1700. event-item is a glistering melon
  1701. "%name of event-item%" is not "&fGlistering Melon"
  1702. cancel the event
  1703. send "{@E}{@C} Use one gold block. Not nuggets!"
  1704. else:
  1705. event-item is a glistering melon
  1706. "%name of event-item%" is "&fGlistering Melon"
  1707. cancel the event
  1708. send "{@E}{@C} Hard Melon Recipe isn't enabled!"
  1709.  
  1710.  
  1711. on consume:
  1712. if event-item is a enchanted golden apple:
  1713. {{@variable}::GodApp} is set
  1714. cancel the event
  1715. send "{@E}{@C} God Apples are {@H}DISABLED!"
  1716. if event-item is a golden apple:
  1717. if name of player's tool contains "&6Golden Head":
  1718. remove regeneration from player
  1719. set {_lo} to {{@variable}::GHeadHeal}
  1720. if {_lo} is not set:
  1721. set {_lo} to 8
  1722. apply regeneration 2 to player for ("%1.25*{_lo}% seconds" parsed as timespan)
  1723. wait 1 tick
  1724. remove absorption from player
  1725. if {{@variable}::Absorp} is true:
  1726. apply absorption to player for 2 minutes
  1727.  
  1728. on mine of gravel:
  1729. world is not "{@ExcludedWorld}"
  1730. {{@variable}::FlintRates} is set
  1731. cancel the event
  1732. set event-block to air
  1733. set {_var} to a random integer between 1 and 10000
  1734. if ({_var}/100) is between 0 and ({{@variable}::FlintRates}):
  1735. drop 1 flint at location 0.5 above event-block
  1736. else:
  1737. drop 1 gravel at location 0.5 above event-block
  1738.  
  1739. on leaves decay:
  1740. world is not "{@ExcludedWorld}"
  1741. if {{@variable}::AppleRates} is set:
  1742. set {_ar} to {{@variable}::AppleRates}
  1743. else:
  1744. set {_ar} to 0.55
  1745. if chance of 5%:
  1746. if event-block is oak leaves:
  1747. drop 1 oak sapling at event-block
  1748. else if event-block is spruce leaves:
  1749. drop 1 spruce sapling at event-block
  1750. else if event-block is dark oak leaves:
  1751. drop 1 dark oak sapling at event-block
  1752. else if event-block is birch leaves:
  1753. drop 1 birch sapling at event-block
  1754. else if event-block is jungle leaves:
  1755. drop 1 jungle sapling at event-block
  1756. else if event-block is acacia leaves:
  1757. drop 1 acacia sapling at event-block
  1758. set {_r} to a random integer between 1 and 10000
  1759. if {{@variable}::OakOnly} is set:
  1760. event-block is not oak leaves or dark oak leaves
  1761. stop trigger
  1762. if ({_r}/100) is between 0 and ({_ar}):
  1763. drop 1 apple at event-block
  1764. cancel the event
  1765. set event-block to air
  1766.  
  1767. on break of leaves:
  1768. world is not "{@ExcludedWorld}"
  1769. {{@variable}::AppleRates} is set
  1770. if event-player's tool is shears:
  1771. drop (1 of ("%event-block%" parsed as item)) at event-block
  1772. {{@variable}::NoShears} is true
  1773. stop trigger
  1774. if chance of 5%:
  1775. if event-block is oak leaves:
  1776. drop 1 oak sapling at event-block
  1777. else if event-block is spruce leaves:
  1778. drop 1 spruce sapling at event-block
  1779. else if event-block is dark oak leaves:
  1780. drop 1 dark oak sapling at event-block
  1781. else if event-block is birch leaves:
  1782. drop 1 birch sapling at event-block
  1783. else if event-block is jungle leaves:
  1784. drop 1 jungle sapling at event-block
  1785. else if event-block is acacia leaves:
  1786. drop 1 acacia sapling at event-block
  1787. if {{@variable}::OakOnly} is set:
  1788. event-block is not oak leaves or dark oak leaves
  1789. stop trigger
  1790. if chance of {{@variable}::AppleRates}%:
  1791. drop 1 apple at event-block
  1792. cancel the event
  1793. set event-block to air
  1794.  
  1795. on join:
  1796. if {{@variable}::IPs::%player%} is not set:
  1797. set {{@variable}::IPs::%player%} to "%ip of player%"
  1798. loop {{@variable}::IPs::*}:
  1799. (ip of player) is equal to (loop-value)
  1800. "%loop-index%" is not "%player%"
  1801. (uuid of player) is not (uuid of ("%loop-index%" parsed as player))
  1802. add loop-index to {_alts::*}
  1803. {_alts::*} is set
  1804. send "{@P}{@C} Players who logged in under {@H}%player%'s{@C} IP:"
  1805. send "{@P}{@H} %{_alts::*}%"
  1806.  
  1807. command /findalt [<text>]:
  1808. permission: skript.op
  1809. aliases: /findalts
  1810. trigger:
  1811. if arg-1 is not set:
  1812. send "{@E}{@C} Provide a player!"
  1813. stop trigger
  1814. set {_p} to ("%arg-1%" parsed as player)
  1815. set {_ip} to {{@variable}::IPs::%arg-1%}
  1816. if {_ip} is not set:
  1817. send "{@E}{@C} No player under the username {@H}%arg-1%{@C} has logged in."
  1818. stop trigger
  1819. loop {{@variable}::IPs::*}:
  1820. {_ip} is equal to (loop-value)
  1821. "%loop-index%" is not "%arg-1%"
  1822. set {_uuid} to (uuid of ({_p}))
  1823. {_uuid} is not (uuid of ("%loop-index%" parsed as player))
  1824. add loop-value to {_alts::*}
  1825. if {_alts::*} is not set:
  1826. send "{@P}{@C} No other players logged on under {@H}%arg-1%'s{@C} IP."
  1827. else:
  1828. send "{@P}{@C} Players who logged in under {@H}%arg-1%'s{@C} IP:"
  1829. send "{@P}{@H} %{_alts::*}%"
  1830.  
  1831. on damage of a player:
  1832. if {{@variable}::Freeze} is true:
  1833. cancel the event
  1834. if damage cause is fall:
  1835. projectile exists
  1836. projectile is a enderpearl
  1837. cancel the event
  1838. {{@variable}::EPD} is set
  1839. damage victim by (({{@variable}::EPD})/10)
  1840. if {{@variable}::AntiiPvP} is set:
  1841. damage cause is suffocation, contact or burning
  1842. loop players in radius 7 around victim:
  1843. loop-player is not victim
  1844. if damage cause is suffocation:
  1845. loop-player has gravel or sand:
  1846. add loop-player to {_possible::*}
  1847. else if damage cause is burning:
  1848. loop-player has a bucket or lava bucket or flint and steel:
  1849. add loop-player to {_possible::*}
  1850. else if damage cause is contact:
  1851. loop-player has a cactus:
  1852. add loop-player to {_possible::*}
  1853. {_possible::*} is set
  1854. send "{@P}{@H} %victim%{@C} &lmay{@C} of gotten iPvP'ed by:" to all ops
  1855. loop {_possible::*}:
  1856. send " {@BC}{@DoubleArrow} {@H}%loop-value%" to all ops
  1857. wait 1 tick
  1858. updateTab(victim)
  1859.  
  1860. every 75 ticks:
  1861. set {_s} to now
  1862. wait 75 ticks
  1863. set {_d} to difference between {_s} and now
  1864. set {_g} to ("%{_d}%" parsed as text)
  1865. replace all " seconds" in {_g} with ""
  1866. set {_l} to ("%{_g}%" parsed as number)
  1867. set {tps} to (75/{_l})
  1868. if {tps} is greater than 20:
  1869. set {tps} to 20
  1870.  
  1871. command /tps:
  1872. trigger:
  1873. set {_tps} to ({tps})
  1874. if {_tps} is less than 17.5:
  1875. send "{@P}{@C} Current TPS:{@H} &c%{_tps}%"
  1876. else if {_tps} is less than 19:
  1877. send "{@P}{@C} Current TPS:{@H} &e%{_tps}%"
  1878. else if {_tps} is more than or equal to 19:
  1879. send "{@P}{@C} Current TPS:{@H} &a%{_tps}%"
  1880.  
  1881. on mine of quartz ore:
  1882. {{@variable}::QuartzXP} is set
  1883. cancel the event
  1884. set the event-block to air
  1885. set {_xp} to a random integer between 1 and 3
  1886. loop {_xp} times:
  1887. drop 1 experience at event-block
  1888. drop 1 quartz at event-block
  1889.  
  1890. on vehicle enter:
  1891. world of event-entity is not "{@ExcludedWorld}"
  1892. wait 1 tick
  1893. set {_player} to (event-entity's passenger)
  1894. {{@variable}::Horses} is not set
  1895. event-entity is a horse
  1896. make {_player} dismount
  1897. send "{@E}{@C} Horses are {@H}DISABLED!" to {_player}
  1898.  
  1899. on portal:
  1900. world of player is not "{@ExcludedWorld}"
  1901. {{@variable}::NP} is set
  1902. cancel the event
  1903. send "{@E}{@C} Portal's are {@H}DISABLED!"
  1904.  
  1905. command /heal [<offlineplayer>]:
  1906. usage: /heal [<player>]
  1907. permission: skript.op
  1908. trigger:
  1909. if arg-1 is not set:
  1910. heal the command sender
  1911. send "{@P}{@C} You healed yourself!"
  1912. loop all ops:
  1913. loop-player is not command sender
  1914. send "{@P}{@H} %command sender%&f healed {@H}himself{@C}!" to loop-player
  1915. if arg-1 is set:
  1916. if arg-1 is "*" or "all" or "**":
  1917. heal all players
  1918. broadcast "{@P}{@H} %command sender%{@C} healed {@H}all {@C}players!"
  1919. else:
  1920. if arg-1 is not online:
  1921. send "{@E}{@C} You need to specify a online player!"
  1922. stop
  1923. heal arg-1
  1924. send "{@P}{@C} Healed by {@H}%command sender%{@C}!" to arg-1
  1925. loop all ops:
  1926. loop-player is not command sender
  1927. loop-player is not arg-1
  1928. send "{@P}{@H} %command sender%{@C} healed {@H}%arg-1%{@C}!" to loop-player
  1929. send "{@P}{@C} You healed {@H}%arg-1%{@C}!"
  1930.  
  1931. command /feed [<offlineplayer>]:
  1932. usage: /feed [<player>]
  1933. permission: skript.op
  1934. trigger:
  1935. if arg-1 is not set:
  1936. set the command sender's food level to 10
  1937. send "{@P}{@C} Fed to full hunger!"
  1938. loop all ops:
  1939. loop-player is not command sender
  1940. send "{@P}{@H} %command sender%{@C} fed {@H}himself{@C}!" to loop-player
  1941. if arg-1 is set:
  1942. if arg-1 is "*" or "all" or "**":
  1943. loop all players:
  1944. set the loop-player's food level to 10
  1945. broadcast "{@P}{@H} %command sender%{@C} fed {@H}all{@C} players!"
  1946. else:
  1947. if arg-1 is not online:
  1948. send "{@E}{@C} You need to specify a online player!"
  1949. stop
  1950. set arg-1's food level to 10
  1951. send "{@P}{@C} Fed by {@H}%command sender%{@C}!" to arg-1
  1952. loop all ops:
  1953. loop-player is not command sender
  1954. loop-player is not arg-1
  1955. send "{@P}{@H} %command sender%{@C} fed {@H}%arg-1%{@C}!" to loop-player
  1956. send "&fYou fed &c%arg-1%!"
  1957.  
  1958. command /ci [<offlineplayer>]:
  1959. usage: /ci [<player>]
  1960. permission: skript.op
  1961. trigger:
  1962. if arg-1 is not set:
  1963. clear command sender's inventory
  1964. send "{@P}{@C} Inventory Cleared!"
  1965. loop all ops:
  1966. loop-player is not command sender
  1967. send "{@P}{@H} %command sender%{@C} cleared {@H}their {@C}inventory!" to loop-player
  1968. if arg-1 is set:
  1969. if arg-1 is "*" or "all" or "**":
  1970. loop all players:
  1971. clear loop-player's inventory
  1972. broadcast "{@P}{@H} %command sender%{@C} cleared all players inventories!"
  1973. else:
  1974. if arg-1 is not online:
  1975. send "{@E}{@C} You need to specify a online player!"
  1976. stop
  1977. clear inventory of arg-1
  1978. send "{@P}{@C} Your inventory was cleared by {@H}%command sender%{@C}!" to arg-1
  1979. loop all ops:
  1980. loop-player is not command sender
  1981. loop-player is not arg-1
  1982. send "{@P}{@H} %command sender%{@C} cleared {@H}%arg-1%'s{@C} inventory!" to loop-player
  1983. send "{@P}{@C} You cleared {@H}%arg-1%'s{@C} inventory!"
  1984.  
  1985. command /kill [<offlineplayer>]:
  1986. usage: /kill [<player>]
  1987. permission: skript.op
  1988. trigger:
  1989. if arg-1 is not set:
  1990. send "{@P}{@C} You killed {@H}yourself!"
  1991. kill the command sender
  1992. loop all ops:
  1993. loop-player is not command sender
  1994. send "{@P}{@H} %command sender%{@C} killed {@H}himself" to loop-player
  1995. if arg-1 is set:
  1996. if arg-1 is "*" or "all" or "**":
  1997. kill all players
  1998. broadcast "{@P}{@H}%command sender%{@C} killed all players"
  1999. else:
  2000. if arg-1 is not online:
  2001. send "{@E}{@C} You need to specify a {@H}online player!"
  2002. stop
  2003. kill arg-1
  2004. send "{@P}{@C} Killed by {@H}%command sender%" to arg-1
  2005. loop all ops:
  2006. loop-player is not command sender
  2007. loop-player is not arg-1
  2008. send "{@P}{@H} %command sender%{@C} killed {@H}%arg-1%" to loop-player
  2009. send "{@P}{@C} You killed {@H}%arg-1%"
  2010.  
  2011. command /clearall:
  2012. permission: skript.op
  2013. trigger:
  2014. broadcast "{@P}{@H} Everyone's{@C} inventory has been cleared."
  2015. clear the inventory of all players
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement