Mireacul

UHCsk FORK

Apr 18th, 2026 (edited)
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.86 KB | None | 0 0
  1. options:
  2. P: &7[&6UHC&7] #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. Difficulty: HARD
  9. perms: skript.host
  10. KYS: peace be with you #replaces kys with this message instead try to keep it 16 letters or less
  11.  
  12. #=====================
  13. #
  14. # The Skript setting, do no touch unless you know what you are doing
  15. #
  16. #=====================
  17. SpecVariable: spec
  18. variable: uhcsk
  19. FeatureListName: &3Feature List
  20. HeartSymbol: ♄
  21. DoubleArrow: &l↠
  22. SugarHealHorse: 5
  23. WheatHealHorse: 10
  24. AppleHealHorse: 15
  25. GoldenCarrotHealHorse: 20
  26. GoldenAppleHealHorse: 50
  27. HayBaleHealHorse: 100
  28. CurrentVersion: UHCSK_1.7.2_FORK
  29.  
  30. function armorStand(loc: location) :: entity:
  31. spawn an armor stand at {_loc}
  32. set {_arm} to the last spawned entity
  33. return {_arm}
  34.  
  35. function updateTab(p: player):
  36. "%{{@variable}::Temps::%{_p}%}%" is not "%floor({_p}'s health*10)%"
  37. set {{@variable}::Temps::%{_p}%} to floor({_p}'s health*10)
  38. command "/scoreboard players set %{_p}% Health %floor({_p}'s health*10)%"
  39. command "/scoreboard players set %{_p}% HealthTab %floor({_p}'s health*10)%"
  40.  
  41.  
  42. on load:
  43. delete {{@variable}::Temps::*}
  44. command "/difficulty {@Difficulty}"
  45. register new shapeless recipe for glistering melon named "&fGlistering Melon" using air, air, air, melon slice, gold block, air, air, air, air
  46. 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
  47. command "/scoreboard objectives add Health dummy {@HeartSymbol}"
  48. command "/scoreboard objectives add HealthTab dummy HealthTab"
  49. command "/scoreboard objectives setdisplay list HealthTab"
  50. command "/scoreboard objectives setdisplay belowName Health"
  51. loop all players:
  52. loop-player has permission "{@perms}"
  53. if text from "https://pastebin.com/raw/n9UyrhTB" does not contain "{@CurrentVersion}":
  54. send "{@P}{@C} New update found for %script%.sk" to loop-player
  55. send "{@P}{@C} Download here{@BC}: {@H}https://pastebin.com/raw/n9UyrhTB" to loop-player
  56.  
  57.  
  58. on join:
  59. player has permission "{@perms}"
  60. if text from "https://pastebin.com/raw/n9UyrhTB" does not contain "{@CurrentVersion}":
  61. send "{@P}{@C} New update found for %script%.sk"
  62. send "{@P}{@C} Download here{@BC}: {@H}https://pastebin.com/raw/n9UyrhTB"
  63.  
  64. #================================
  65. #
  66. # Feature Menu
  67. #
  68. #===============================
  69.  
  70. function openFeatureList(p: player):
  71. set {featurelist::%{_p}%} to true
  72. open chest with 3 rows named "{@FeatureListName}" to {_p}
  73. wait 3 ticks
  74. if {{@variable}::EPD} is not set:
  75. set slot 0 of {_p}'s current inventory to an ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} 0 {@BC}{@HeartSymbol}"
  76. else:
  77. set slot 0 of {_p}'s current inventory to an ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}"
  78.  
  79. if {{@variable}::DL} is not set:
  80. set slot 1 of {_p}'s current inventory to a sea lantern named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  81. else:
  82. set slot 1 of {_p}'s current inventory to a sea lantern named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  83.  
  84. if {{@variable}::GHeads} is not set:
  85. set slot 2 of {_p}'s current inventory to a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  86. else:
  87. if {{@variable}::GHeadHeal} is not set:
  88. set slot 2 of {_p}'s current inventory to a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}4{@BC}{@HeartSymbol}"
  89. else:
  90. set slot 2 of {_p}'s current inventory to a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}%{{@variable}::GHeadHeal}/2%{@BC}{@HeartSymbol}"
  91.  
  92.  
  93.  
  94. if {{@variable}::Absorp} is not set:
  95. set slot 3 of {_p}'s current inventory to a golden apple named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  96. else:
  97. set slot 3 of {_p}'s current inventory to a golden apple named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  98.  
  99. if {{@variable}::AS} is not set:
  100. set slot 4 of {_p}'s current inventory to an armor stand named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  101. else:
  102. set slot 4 of {_p}'s current inventory to an armor stand named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  103.  
  104. if {{@variable}::AntiiPvP} is not set:
  105. set slot 5 of {_p}'s current inventory to a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  106. else:
  107. set slot 5 of {_p}'s current inventory to a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  108.  
  109. if {{@variable}::FlintRates} is not set:
  110. set slot 6 of {_p}'s current inventory to a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (10%%)"
  111. else:
  112. set slot 6 of {_p}'s current inventory to a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::FlintRates}%%%"
  113.  
  114. if {{@variable}::AppleRates} is not set:
  115. set slot 7 of {_p}'s current inventory to a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (0.55%%) (no shears!)"
  116. else:
  117. if {{@variable}::OakOnly} is set:
  118. set {_oa} to "Oak and Dark Oak trees only drop apples"
  119. else:
  120. set {_oa} to "All trees drop apples"
  121. if {{@variable}::NoShears} is set:
  122. set {_NS} to "Shears don't work"
  123. else:
  124. set {_NS} to "Shears will work"
  125. set slot 7 of {_p}'s current inventory to a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::AppleRates}%%% || {@BC}{@DoubleArrow}{@H} %{_NS}% || {@BC}{@DoubleArrow}{@H} %{_oa}%"
  126.  
  127. if {{@variable}::Bookshelves} is not set:
  128. set slot 8 of {_p}'s current inventory to a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  129. else:
  130. set slot 8 of {_p}'s current inventory to a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  131.  
  132. if {{@variable}::Horses} is not set:
  133. set slot 9 of {_p}'s current inventory to a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  134. else:
  135. set slot 9 of {_p}'s current inventory to a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  136.  
  137. if {{@variable}::HorseArmor} is not set:
  138. set slot 10 of {_p}'s current inventory to a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  139. else:
  140. set slot 10 of {_p}'s current inventory to a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  141.  
  142. if {{@variable}::HorseHeal} is not set:
  143. set slot 11 of {_p}'s current inventory to a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Not nerfed"
  144. else if {{@variable}::HorseHeal} is less than or equal to 0:
  145. set slot 11 of {_p}'s current inventory to a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  146. else:
  147. set {_Sugar} to "{@BC}{@DoubleArrow}{@C} Sugar:{@H} %{@SugarHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  148. set {_Whe} to "{@BC}{@DoubleArrow}{@C} Wheat:{@H} %{@WheatHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  149. set {_App} to "{@BC}{@DoubleArrow}{@C} Apple:{@H} %{@AppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  150. set {_Gapp} to "{@BC}{@DoubleArrow}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  151. set {_Gcar} to "{@BC}{@DoubleArrow}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  152. set {_HB} to "{@BC}{@DoubleArrow}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
  153. set slot 11 of {_p}'s current inventory to a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::HorseHeal}%%% as effective || %{_Sugar}% || %{_Whe}% || %{_App}% || %{_Gcar}% || %{_Gapp}% || %{_HB}%"
  154.  
  155.  
  156. #====================
  157. # Nether
  158. #====================
  159.  
  160.  
  161.  
  162. if {{@variable}::NP} is not set:
  163. set slot 12 of {_p}'s current inventory to a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  164. else:
  165. set slot 12 of {_p}'s current inventory to a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  166.  
  167. if {{@variable}::GD} is not set:
  168. set slot 13 of {_p}'s current inventory to a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Normal"
  169. else if {{@variable}::GD} is "gi":
  170. set slot 13 of {_p}'s current inventory to a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Ingot"
  171. else if {{@variable}::GD} is "gn":
  172. set slot 13 of {_p}'s current inventory to a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Nugget"
  173. else if {{@variable}::GD} is "gb":
  174. set slot 13 of {_p}'s current inventory to a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Block"
  175.  
  176. if {{@variable}::NoGlow} is not set:
  177. set slot 14 of {_p}'s current inventory to a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  178. else:
  179. set slot 14 of {_p}'s current inventory to a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  180.  
  181.  
  182. if {{@variable}::GlistMelon} is not set:
  183. set slot 15 of {_p}'s current inventory to a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  184. else:
  185. set slot 15 of {_p}'s current inventory to a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  186.  
  187.  
  188. if {{@variable}::AntiTrap} is not set:
  189. set slot 16 of {_p}'s current inventory to a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  190. else:
  191. set slot 16 of {_p}'s current inventory to a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  192.  
  193. if {{@variable}::BrewingStands} is not set:
  194. set slot 17 of {_p}'s current inventory to a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  195. else:
  196. set slot 17 of {_p}'s current inventory to a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  197.  
  198.  
  199. if {{@variable}::StrPots} is not set:
  200. set slot 18 of {_p}'s current inventory to a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  201. else:
  202. set slot 18 of {_p}'s current inventory to a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  203.  
  204.  
  205. if {{@variable}::QuartzXP} is not set:
  206. set slot 19 of {_p}'s current inventory to a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  207. else:
  208. set slot 19 of {_p}'s current inventory to a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Enabled (1/2 of Vanilla XP)"
  209.  
  210. if {{@variable}::SplashPots} is not set:
  211. set slot 20 of {_p}'s current inventory to a splash potion of speed named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
  212. else:
  213. set slot 20 of {_p}'s current inventory to a splash potion of speed named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
  214.  
  215. on inventory click:
  216. {featurelist::%player%} is set
  217. cancel event
  218.  
  219. on inventory close:
  220. delete {featurelist::%player%}
  221.  
  222.  
  223. #====================================
  224. #
  225. # Main /feature command
  226. #
  227. #====================================
  228.  
  229. command /feature [<text>] [<text>] [<text>]:
  230. trigger:
  231. if arg-1 is not set:
  232. if command sender has permission "{@perms}":
  233. send "{@P}{@C} /feature list {@H}- view settings"
  234. send "{@P}{@C} /feature set {@H}<option> [value]"
  235. else:
  236. make command sender execute command "/feature list"
  237. stop
  238. if arg-1 is "list":
  239. openFeatureList(command sender)
  240. stop
  241.  
  242. #======================================
  243. #
  244. # Setting Features
  245. #
  246. #======================================
  247. if arg-1 is "set":
  248. if command sender does not have permission "{@perms}":
  249. send "{@E}{@C} No permission."
  250. stop
  251. if arg-2 is not set:
  252. make command sender execute command "/feature set help"
  253. stop
  254. if arg-2 is "help":
  255. send "{@P}{@H} Toggle Options:"
  256. send "{@C} deathlightning, deathstands, heads, natregen"
  257. send "{@C} horses, horsearmor, glowstone, melon"
  258. send "{@C} antitrap, brewing, strpots, godapples"
  259. send "{@C} bookshelves, absorption, ipvp, nether"
  260. send "{@C} quartzxp, splash, shears, oakonly"
  261. send "{@P}{@H} Value Options:"
  262. send "{@C} epd <0-100> {@H}- Enderpearl dmg (half hearts)"
  263. send "{@C} headheal <amount> {@H}- Head heal (half hearts)"
  264. send "{@C} horseheal <0-250> {@H}- Horse heal %%"
  265. send "{@C} flint <0-100> {@H}- Flint rate %%"
  266. send "{@C} apple <0-100> {@H}- Apple rate %%"
  267. send "{@C} ghast <normal/nugget/ingot/block>"
  268. stop
  269.  
  270. #=========================================
  271. #
  272. # Non-Toggleable Options
  273. #
  274. #=========================================
  275.  
  276. if arg-2 is "epd":
  277. if arg-3 is not set:
  278. send "{@P}{@C} /feature set epd {@H}<0-100>"
  279. stop
  280. set {_val} to "%arg-3%" parsed as integer
  281. if {_val} is not set:
  282. send "{@E}{@C} Must be a number."
  283. stop
  284. if {_val} <= 0:
  285. delete {{@variable}::EPD}
  286. send "{@P}{@H} EPD{@C} set to {@H}0 {@BC}{@HeartSymbol}"
  287. else:
  288. if {_val} > 100:
  289. set {_val} to 100
  290. set {{@variable}::EPD} to {_val}
  291. send "{@P}{@H} EPD{@C} set to {@H}%{_val}/10% {@BC}{@HeartSymbol}"
  292. stop
  293. if arg-2 is "headheal":
  294. if arg-3 is not set:
  295. send "{@P}{@C} /feature set headheal {@H}<half hearts>"
  296. stop
  297. set {_val} to "%arg-3%" parsed as integer
  298. if {_val} is not set:
  299. send "{@E}{@C} Must be a number."
  300. stop
  301. set {{@variable}::GHeadHeal} to {_val}
  302. send "{@P}{@H} Head Heal{@C} set to {@H}%{_val}/2% {@BC}{@HeartSymbol}"
  303. stop
  304. if arg-2 is "horseheal":
  305. if arg-3 is not set:
  306. send "{@P}{@C} /feature set horseheal {@H}<0-250>"
  307. stop
  308. set {_val} to "%arg-3%" parsed as integer
  309. if {_val} is not set:
  310. send "{@E}{@C} Must be a number."
  311. stop
  312. if {_val} > 250:
  313. set {_val} to 250
  314. set {{@variable}::HorseHeal} to {_val}
  315. if {_val} <= 0:
  316. send "{@P}{@H} Horse Healing{@C} {@H}Disabled"
  317. else:
  318. send "{@P}{@H} Horse Healing{@C} set to {@H}%{_val}%%%"
  319. stop
  320. if arg-2 is "flint":
  321. if arg-3 is not set:
  322. send "{@P}{@C} /feature set flint {@H}<0-100>"
  323. stop
  324. set {_val} to "%arg-3%" parsed as number
  325. if {_val} is not set:
  326. send "{@E}{@C} Must be a number."
  327. stop
  328. if {_val} <= 0:
  329. delete {{@variable}::FlintRates}
  330. send "{@P}{@H} Flint Rates{@C} set to {@H}Vanilla (10%%)"
  331. else:
  332. if {_val} > 100:
  333. set {_val} to 100
  334. set {{@variable}::FlintRates} to {_val}
  335. send "{@P}{@H} Flint Rates{@C} set to {@H}%{_val}%%%"
  336. stop
  337. if arg-2 is "apple":
  338. if arg-3 is not set:
  339. send "{@P}{@C} /feature set apple {@H}<0-100>"
  340. stop
  341. set {_val} to "%arg-3%" parsed as number
  342. if {_val} is not set:
  343. send "{@E}{@C} Must be a number."
  344. stop
  345. if {_val} <= 0:
  346. delete {{@variable}::AppleRates}
  347. delete {{@variable}::NoShears}
  348. delete {{@variable}::OakOnly}
  349. send "{@P}{@H} Apple Rates{@C} set to {@H}Vanilla"
  350. else:
  351. if {_val} > 100:
  352. set {_val} to 100
  353. set {{@variable}::AppleRates} to {_val}
  354. send "{@P}{@H} Apple Rates{@C} set to {@H}%{_val}%%%"
  355. stop
  356. if arg-2 is "ghast":
  357. if arg-3 is "normal":
  358. delete {{@variable}::GD}
  359. send "{@P}{@H} Ghast Drops{@C} set to {@H}Normal"
  360. else if arg-3 is "nugget":
  361. set {{@variable}::GD} to "gn"
  362. send "{@P}{@H} Ghast Drops{@C} set to {@H}Gold Nugget"
  363. else if arg-3 is "ingot":
  364. set {{@variable}::GD} to "gi"
  365. send "{@P}{@H} Ghast Drops{@C} set to {@H}Gold Ingot"
  366. else if arg-3 is "block":
  367. set {{@variable}::GD} to "gb"
  368. send "{@P}{@H} Ghast Drops{@C} set to {@H}Gold Block"
  369. else:
  370. send "{@P}{@C} /feature set ghast {@H}<normal/nugget/ingot/block>"
  371. stop
  372.  
  373. #============================================
  374. #
  375. # Toggle Options
  376. #
  377. #============================================
  378.  
  379.  
  380. if arg-2 is "deathlightning" or "dl":
  381. if arg-3 is not set:
  382. if {{@variable}::DL} is not set:
  383. set {{@variable}::DL} to true
  384. send "{@P}{@H} Death Lightning{@C} {@H}Enabled"
  385. else:
  386. delete {{@variable}::DL}
  387. send "{@P}{@H} Death Lightning{@C} {@H}Disabled"
  388. else if arg-3 is "on" or "enable":
  389. if {{@variable}::DL} is not set:
  390. set {{@variable}::DL} to true
  391. send "{@P}{@H} Death Lightning{@C} {@H}Enabled"
  392. else:
  393. send "{@E}{@C}Death Lightning is already enabled. {@H}/feature set dl on&7/{@H}off&7/{@H}toggle"
  394. else if arg-3 is "off" or "disable":
  395. if {{@variable}::DL} is set:
  396. delete {{@variable}::DL}
  397. send "{@P}{@H} Death Lightning{@C} {@H}Disabled"
  398. else:
  399. send "{@E}{@C}Death Lightning is already disabled. {@H}/feature set dl on&7/{@H}off&7/{@H}toggle"
  400. else if arg-3 is "toggle" or "t":
  401. if {{@variable}::DL} is not set:
  402. set {{@variable}::DL} to true
  403. send "{@P}{@H} Death Lightning{@C} {@H}Enabled"
  404. else:
  405. delete {{@variable}::DL}
  406. send "{@P}{@H} Death Lightning{@C} {@H}Disabled"
  407. else:
  408. send "{@H}/feature set dl on&7/{@H}off&7/{@H}toggle"
  409. stop
  410. if arg-2 is "deathstands" or "ds":
  411. if arg-3 is not set:
  412. if {{@variable}::AS} is not set:
  413. set {{@variable}::AS} to true
  414. send "{@P}{@H} Death Stands{@C} {@H}Enabled"
  415. else:
  416. delete {{@variable}::AS}
  417. send "{@P}{@H} Death Stands{@C} {@H}Disabled"
  418. else if arg-3 is "on" or "enable":
  419. if {{@variable}::AS} is not set:
  420. set {{@variable}::AS} to true
  421. send "{@P}{@H} Death Stands{@C} {@H}Enabled"
  422. else:
  423. send "{@E}{@C}Death Stands is already enabled. {@H}/feature set ds on&7/{@H}off&7/{@H}toggle"
  424. else if arg-3 is "off" or "disable":
  425. if {{@variable}::AS} is set:
  426. delete {{@variable}::AS}
  427. send "{@P}{@H} Death Stands{@C} {@H}Disabled"
  428. else:
  429. send "{@E}{@C}Death Stands is already disabled. {@H}/feature set ds on&7/{@H}off&7/{@H}toggle"
  430. else if arg-3 is "toggle" or "t":
  431. if {{@variable}::AS} is not set:
  432. set {{@variable}::AS} to true
  433. send "{@P}{@H} Death Stands{@C} {@H}Enabled"
  434. else:
  435. delete {{@variable}::AS}
  436. send "{@P}{@H} Death Stands{@C} {@H}Disabled"
  437. else:
  438. send "{@H}/feature set ds on&7/{@H}off&7/{@H}toggle"
  439. stop
  440. if arg-2 is "heads":
  441. if arg-3 is not set:
  442. if {{@variable}::GHeads} is not set:
  443. set {{@variable}::GHeads} to true
  444. send "{@P}{@H} Golden Heads{@C} {@H}Enabled"
  445. else:
  446. delete {{@variable}::GHeads}
  447. delete {{@variable}::GHeadHeal}
  448. send "{@P}{@H} Golden Heads{@C} {@H}Disabled"
  449. else if arg-3 is "on" or "enable":
  450. if {{@variable}::GHeads} is not set:
  451. set {{@variable}::GHeads} to true
  452. send "{@P}{@H} Golden Heads{@C} {@H}Enabled"
  453. else:
  454. send "{@E}{@C}Golden Heads is already enabled. {@H}/feature set heads on&7/{@H}off&7/{@H}toggle"
  455. else if arg-3 is "off" or "disable":
  456. if {{@variable}::GHeads} is set:
  457. delete {{@variable}::GHeads}
  458. delete {{@variable}::GHeadHeal}
  459. send "{@P}{@H} Golden Heads{@C} {@H}Disabled"
  460. else:
  461. send "{@E}{@C}Golden Heads is already disabled. {@H}/feature set heads on&7/{@H}off&7/{@H}toggle"
  462. else if arg-3 is "toggle" or "t":
  463. if {{@variable}::GHeads} is not set:
  464. set {{@variable}::GHeads} to true
  465. send "{@P}{@H} Golden Heads{@C} {@H}Enabled"
  466. else:
  467. delete {{@variable}::GHeads}
  468. delete {{@variable}::GHeadHeal}
  469. send "{@P}{@H} Golden Heads{@C} {@H}Disabled"
  470. else:
  471. send "{@H}/feature set heads on&7/{@H}off&7/{@H}toggle"
  472. stop
  473. if arg-2 is "natregen" or "nr":
  474. if arg-3 is not set:
  475. if {{@variable}::NR} is not set:
  476. set {{@variable}::NR} to true
  477. send "{@P}{@H} Natural Regeneration{@C} {@H}Enabled"
  478. else:
  479. delete {{@variable}::NR}
  480. send "{@P}{@H} Natural Regeneration{@C} {@H}Disabled"
  481. else if arg-3 is "on" or "enable":
  482. if {{@variable}::NR} is not set:
  483. set {{@variable}::NR} to true
  484. send "{@P}{@H} Natural Regeneration{@C} {@H}Enabled"
  485. else:
  486. send "{@E}{@C}Natural Regeneration is already enabled. {@H}/feature set nr on&7/{@H}off&7/{@H}toggle"
  487. else if arg-3 is "off" or "disable":
  488. if {{@variable}::NR} is set:
  489. delete {{@variable}::NR}
  490. send "{@P}{@H} Natural Regeneration{@C} {@H}Disabled"
  491. else:
  492. send "{@E}{@C}Natural Regeneration is already disabled. {@H}/feature set nr on&7/{@H}off&7/{@H}toggle"
  493. else if arg-3 is "toggle" or "t":
  494. if {{@variable}::NR} is not set:
  495. set {{@variable}::NR} to true
  496. send "{@P}{@H} Natural Regeneration{@C} {@H}Enabled"
  497. else:
  498. delete {{@variable}::NR}
  499. send "{@P}{@H} Natural Regeneration{@C} {@H}Disabled"
  500. else:
  501. send "{@H}/feature set nr on&7/{@H}off&7/{@H}toggle"
  502. stop
  503. if arg-2 is "horses":
  504. if arg-3 is not set:
  505. if {{@variable}::Horses} is not set:
  506. set {{@variable}::Horses} to true
  507. send "{@P}{@H} Horses{@C} {@H}Enabled"
  508. else:
  509. delete {{@variable}::Horses}
  510. send "{@P}{@H} Horses{@C} {@H}Disabled"
  511. else if arg-3 is "on" or "enable":
  512. if {{@variable}::Horses} is not set:
  513. set {{@variable}::Horses} to true
  514. send "{@P}{@H} Horses{@C} {@H}Enabled"
  515. else:
  516. send "{@E}{@C}Horses is already enabled. {@H}/feature set horses on&7/{@H}off&7/{@H}toggle"
  517. else if arg-3 is "off" or "disable":
  518. if {{@variable}::Horses} is set:
  519. delete {{@variable}::Horses}
  520. send "{@P}{@H} Horses{@C} {@H}Disabled"
  521. else:
  522. send "{@E}{@C}Horses is already disabled. {@H}/feature set horses on&7/{@H}off&7/{@H}toggle"
  523. else if arg-3 is "toggle" or "t":
  524. if {{@variable}::Horses} is not set:
  525. set {{@variable}::Horses} to true
  526. send "{@P}{@H} Horses{@C} {@H}Enabled"
  527. else:
  528. delete {{@variable}::Horses}
  529. send "{@P}{@H} Horses{@C} {@H}Disabled"
  530. else:
  531. send "{@H}/feature set horses on&7/{@H}off&7/{@H}toggle"
  532. stop
  533. if arg-2 is "horsearmor" or "ha":
  534. if arg-3 is not set:
  535. if {{@variable}::HorseArmor} is not set:
  536. set {{@variable}::HorseArmor} to true
  537. send "{@P}{@H} Horse Armor{@C} {@H}Disabled"
  538. else:
  539. delete {{@variable}::HorseArmor}
  540. send "{@P}{@H} Horse Armor{@C} {@H}Enabled"
  541. else if arg-3 is "on" or "enable":
  542. if {{@variable}::HorseArmor} is set:
  543. delete {{@variable}::HorseArmor}
  544. send "{@P}{@H} Horse Armor{@C} {@H}Enabled"
  545. else:
  546. send "{@E}{@C}Horse Armor is already enabled. {@H}/feature set ha on&7/{@H}off&7/{@H}toggle"
  547. else if arg-3 is "off" or "disable":
  548. if {{@variable}::HorseArmor} is not set:
  549. set {{@variable}::HorseArmor} to true
  550. send "{@P}{@H} Horse Armor{@C} {@H}Disabled"
  551. else:
  552. send "{@E}{@C}Horse Armor is already disabled. {@H}/feature set ha on&7/{@H}off&7/{@H}toggle"
  553. else if arg-3 is "toggle" or "t":
  554. if {{@variable}::HorseArmor} is not set:
  555. set {{@variable}::HorseArmor} to true
  556. send "{@P}{@H} Horse Armor{@C} {@H}Disabled"
  557. else:
  558. delete {{@variable}::HorseArmor}
  559. send "{@P}{@H} Horse Armor{@C} {@H}Enabled"
  560. else:
  561. send "{@H}/feature set ha on&7/{@H}off&7/{@H}toggle"
  562. stop
  563. if arg-2 is "glowstone" or "glow":
  564. if arg-3 is not set:
  565. if {{@variable}::NoGlow} is not set:
  566. set {{@variable}::NoGlow} to true
  567. send "{@P}{@H} Glowstone{@C} {@H}Disabled"
  568. else:
  569. delete {{@variable}::NoGlow}
  570. send "{@P}{@H} Glowstone{@C} {@H}Enabled"
  571. else if arg-3 is "on" or "enable":
  572. if {{@variable}::NoGlow} is set:
  573. delete {{@variable}::NoGlow}
  574. send "{@P}{@H} Glowstone{@C} {@H}Enabled"
  575. else:
  576. send "{@E}{@C}Glowstone is already enabled. {@H}/feature set glow on&7/{@H}off&7/{@H}toggle"
  577. else if arg-3 is "off" or "disable":
  578. if {{@variable}::NoGlow} is not set:
  579. set {{@variable}::NoGlow} to true
  580. send "{@P}{@H} Glowstone{@C} {@H}Disabled"
  581. else:
  582. send "{@E}{@C}Glowstone is already disabled. {@H}/feature set glow on&7/{@H}off&7/{@H}toggle"
  583. else if arg-3 is "toggle" or "t":
  584. if {{@variable}::NoGlow} is not set:
  585. set {{@variable}::NoGlow} to true
  586. send "{@P}{@H} Glowstone{@C} {@H}Disabled"
  587. else:
  588. delete {{@variable}::NoGlow}
  589. send "{@P}{@H} Glowstone{@C} {@H}Enabled"
  590. else:
  591. send "{@H}/feature set glow on&7/{@H}off&7/{@H}toggle"
  592. stop
  593. if arg-2 is "melon":
  594. if arg-3 is not set:
  595. if {{@variable}::GlistMelon} is not set:
  596. set {{@variable}::GlistMelon} to true
  597. send "{@P}{@H} Hard Melon Recipe{@C} {@H}Enabled"
  598. else:
  599. delete {{@variable}::GlistMelon}
  600. send "{@P}{@H} Hard Melon Recipe{@C} {@H}Disabled"
  601. else if arg-3 is "on" or "enable":
  602. if {{@variable}::GlistMelon} is not set:
  603. set {{@variable}::GlistMelon} to true
  604. send "{@P}{@H} Hard Melon Recipe{@C} {@H}Enabled"
  605. else:
  606. send "{@E}{@C}Hard Melon Recipe is already enabled. {@H}/feature set melon on&7/{@H}off&7/{@H}toggle"
  607. else if arg-3 is "off" or "disable":
  608. if {{@variable}::GlistMelon} is set:
  609. delete {{@variable}::GlistMelon}
  610. send "{@P}{@H} Hard Melon Recipe{@C} {@H}Disabled"
  611. else:
  612. send "{@E}{@C}Hard Melon Recipe is already disabled. {@H}/feature set melon on&7/{@H}off&7/{@H}toggle"
  613. else if arg-3 is "toggle" or "t":
  614. if {{@variable}::GlistMelon} is not set:
  615. set {{@variable}::GlistMelon} to true
  616. send "{@P}{@H} Hard Melon Recipe{@C} {@H}Enabled"
  617. else:
  618. delete {{@variable}::GlistMelon}
  619. send "{@P}{@H} Hard Melon Recipe{@C} {@H}Disabled"
  620. else:
  621. send "{@H}/feature set melon on&7/{@H}off&7/{@H}toggle"
  622. stop
  623. if arg-2 is "antitrap" or "at":
  624. if arg-3 is not set:
  625. if {{@variable}::AntiTrap} is not set:
  626. set {{@variable}::AntiTrap} to true
  627. send "{@P}{@H} Anti Portal Trapping{@C} {@H}Enabled"
  628. else:
  629. delete {{@variable}::AntiTrap}
  630. send "{@P}{@H} Anti Portal Trapping{@C} {@H}Disabled"
  631. else if arg-3 is "on" or "enable":
  632. if {{@variable}::AntiTrap} is not set:
  633. set {{@variable}::AntiTrap} to true
  634. send "{@P}{@H} Anti Portal Trapping{@C} {@H}Enabled"
  635. else:
  636. send "{@E}{@C}Anti Portal Trapping is already enabled. {@H}/feature set at on&7/{@H}off&7/{@H}toggle"
  637. else if arg-3 is "off" or "disable":
  638. if {{@variable}::AntiTrap} is set:
  639. delete {{@variable}::AntiTrap}
  640. send "{@P}{@H} Anti Portal Trapping{@C} {@H}Disabled"
  641. else:
  642. send "{@E}{@C}Anti Portal Trapping is already disabled. {@H}/feature set at on&7/{@H}off&7/{@H}toggle"
  643. else if arg-3 is "toggle" or "t":
  644. if {{@variable}::AntiTrap} is not set:
  645. set {{@variable}::AntiTrap} to true
  646. send "{@P}{@H} Anti Portal Trapping{@C} {@H}Enabled"
  647. else:
  648. delete {{@variable}::AntiTrap}
  649. send "{@P}{@H} Anti Portal Trapping{@C} {@H}Disabled"
  650. else:
  651. send "{@H}/feature set at on&7/{@H}off&7/{@H}toggle"
  652. stop
  653. if arg-2 is "brewing":
  654. if arg-3 is not set:
  655. if {{@variable}::BrewingStands} is not set:
  656. set {{@variable}::BrewingStands} to true
  657. send "{@P}{@H} Brewing Stands{@C} {@H}Disabled"
  658. else:
  659. delete {{@variable}::BrewingStands}
  660. send "{@P}{@H} Brewing Stands{@C} {@H}Enabled"
  661. else if arg-3 is "on" or "enable":
  662. if {{@variable}::BrewingStands} is set:
  663. delete {{@variable}::BrewingStands}
  664. send "{@P}{@H} Brewing Stands{@C} {@H}Enabled"
  665. else:
  666. send "{@E}{@C}Brewing Stands is already enabled. {@H}/feature set brewing on&7/{@H}off&7/{@H}toggle"
  667. else if arg-3 is "off" or "disable":
  668. if {{@variable}::BrewingStands} is not set:
  669. set {{@variable}::BrewingStands} to true
  670. send "{@P}{@H} Brewing Stands{@C} {@H}Disabled"
  671. else:
  672. send "{@E}{@C}Brewing Stands is already disabled. {@H}/feature set brewing on&7/{@H}off&7/{@H}toggle"
  673. else if arg-3 is "toggle" or "t":
  674. if {{@variable}::BrewingStands} is not set:
  675. set {{@variable}::BrewingStands} to true
  676. send "{@P}{@H} Brewing Stands{@C} {@H}Disabled"
  677. else:
  678. delete {{@variable}::BrewingStands}
  679. send "{@P}{@H} Brewing Stands{@C} {@H}Enabled"
  680. else:
  681. send "{@H}/feature set brewing on&7/{@H}off&7/{@H}toggle"
  682. stop
  683. if arg-2 is "strpots":
  684. if arg-3 is not set:
  685. if {{@variable}::StrPots} is not set:
  686. set {{@variable}::StrPots} to true
  687. send "{@P}{@H} Strength Pots{@C} {@H}Disabled"
  688. else:
  689. delete {{@variable}::StrPots}
  690. send "{@P}{@H} Strength Pots{@C} {@H}Enabled"
  691. else if arg-3 is "on" or "enable":
  692. if {{@variable}::StrPots} is set:
  693. delete {{@variable}::StrPots}
  694. send "{@P}{@H} Strength Pots{@C} {@H}Enabled"
  695. else:
  696. send "{@E}{@C}Strength Pots is already enabled. {@H}/feature set strpots on&7/{@H}off&7/{@H}toggle"
  697. else if arg-3 is "off" or "disable":
  698. if {{@variable}::StrPots} is not set:
  699. set {{@variable}::StrPots} to true
  700. send "{@P}{@H} Strength Pots{@C} {@H}Disabled"
  701. else:
  702. send "{@E}{@C}Strength Pots is already disabled. {@H}/feature set strpots on&7/{@H}off&7/{@H}toggle"
  703. else if arg-3 is "toggle" or "t":
  704. if {{@variable}::StrPots} is not set:
  705. set {{@variable}::StrPots} to true
  706. send "{@P}{@H} Strength Pots{@C} {@H}Disabled"
  707. else:
  708. delete {{@variable}::StrPots}
  709. send "{@P}{@H} Strength Pots{@C} {@H}Enabled"
  710. else:
  711. send "{@H}/feature set strpots on&7/{@H}off&7/{@H}toggle"
  712. stop
  713. if arg-2 is "godapples" or "ga":
  714. if arg-3 is not set:
  715. if {{@variable}::GodApp} is not set:
  716. set {{@variable}::GodApp} to true
  717. send "{@P}{@H} God Apples{@C} {@H}Disabled"
  718. else:
  719. delete {{@variable}::GodApp}
  720. send "{@P}{@H} God Apples{@C} {@H}Enabled"
  721. else if arg-3 is "on" or "enable":
  722. if {{@variable}::GodApp} is set:
  723. delete {{@variable}::GodApp}
  724. send "{@P}{@H} God Apples{@C} {@H}Enabled"
  725. else:
  726. send "{@E}{@C}God Apples is already enabled. {@H}/feature set ga on&7/{@H}off&7/{@H}toggle"
  727. else if arg-3 is "off" or "disable":
  728. if {{@variable}::GodApp} is not set:
  729. set {{@variable}::GodApp} to true
  730. send "{@P}{@H} God Apples{@C} {@H}Disabled"
  731. else:
  732. send "{@E}{@C}God Apples is already disabled. {@H}/feature set ga on&7/{@H}off&7/{@H}toggle"
  733. else if arg-3 is "toggle" or "t":
  734. if {{@variable}::GodApp} is not set:
  735. set {{@variable}::GodApp} to true
  736. send "{@P}{@H} God Apples{@C} {@H}Disabled"
  737. else:
  738. delete {{@variable}::GodApp}
  739. send "{@P}{@H} God Apples{@C} {@H}Enabled"
  740. else:
  741. send "{@H}/feature set ga on&7/{@H}off&7/{@H}toggle"
  742. stop
  743. if arg-2 is "bookshelves" or "bs":
  744. if arg-3 is not set:
  745. if {{@variable}::Bookshelves} is not set:
  746. set {{@variable}::Bookshelves} to true
  747. send "{@P}{@H} Bookshelves{@C} {@H}Disabled"
  748. else:
  749. delete {{@variable}::Bookshelves}
  750. send "{@P}{@H} Bookshelves{@C} {@H}Enabled"
  751. else if arg-3 is "on" or "enable":
  752. if {{@variable}::Bookshelves} is set:
  753. delete {{@variable}::Bookshelves}
  754. send "{@P}{@H} Bookshelves{@C} {@H}Enabled"
  755. else:
  756. send "{@E}{@C}Bookshelves is already enabled. {@H}/feature set bs on&7/{@H}off&7/{@H}toggle"
  757. else if arg-3 is "off" or "disable":
  758. if {{@variable}::Bookshelves} is not set:
  759. set {{@variable}::Bookshelves} to true
  760. send "{@P}{@H} Bookshelves{@C} {@H}Disabled"
  761. else:
  762. send "{@E}{@C}Bookshelves is already disabled. {@H}/feature set bs on&7/{@H}off&7/{@H}toggle"
  763. else if arg-3 is "toggle" or "t":
  764. if {{@variable}::Bookshelves} is not set:
  765. set {{@variable}::Bookshelves} to true
  766. send "{@P}{@H} Bookshelves{@C} {@H}Disabled"
  767. else:
  768. delete {{@variable}::Bookshelves}
  769. send "{@P}{@H} Bookshelves{@C} {@H}Enabled"
  770. else:
  771. send "{@H}/feature set bs on&7/{@H}off&7/{@H}toggle"
  772. stop
  773. if arg-2 is "absorption":
  774. if arg-3 is not set:
  775. if {{@variable}::Absorp} is not set:
  776. set {{@variable}::Absorp} to true
  777. send "{@P}{@H} Absorption{@C} {@H}Enabled"
  778. else:
  779. delete {{@variable}::Absorp}
  780. send "{@P}{@H} Absorption{@C} {@H}Disabled"
  781. else if arg-3 is "on" or "enable":
  782. if {{@variable}::Absorp} is not set:
  783. set {{@variable}::Absorp} to true
  784. send "{@P}{@H} Absorption{@C} {@H}Enabled"
  785. else:
  786. send "{@E}{@C}Absorption is already enabled. {@H}/feature set absorption on&7/{@H}off&7/{@H}toggle"
  787. else if arg-3 is "off" or "disable":
  788. if {{@variable}::Absorp} is set:
  789. delete {{@variable}::Absorp}
  790. send "{@P}{@H} Absorption{@C} {@H}Disabled"
  791. else:
  792. send "{@E}{@C}Absorption is already disabled. {@H}/feature set absorption on&7/{@H}off&7/{@H}toggle"
  793. else if arg-3 is "toggle" or "t":
  794. if {{@variable}::Absorp} is not set:
  795. set {{@variable}::Absorp} to true
  796. send "{@P}{@H} Absorption{@C} {@H}Enabled"
  797. else:
  798. delete {{@variable}::Absorp}
  799. send "{@P}{@H} Absorption{@C} {@H}Disabled"
  800. else:
  801. send "{@H}/feature set absorption on&7/{@H}off&7/{@H}toggle"
  802. stop
  803. if arg-2 is "ipvp":
  804. if arg-3 is not set:
  805. if {{@variable}::AntiiPvP} is not set:
  806. set {{@variable}::AntiiPvP} to true
  807. send "{@P}{@H} Anti iPvP{@C} {@H}Enabled"
  808. else:
  809. delete {{@variable}::AntiiPvP}
  810. send "{@P}{@H} Anti iPvP{@C} {@H}Disabled"
  811. else if arg-3 is "on" or "enable":
  812. if {{@variable}::AntiiPvP} is not set:
  813. set {{@variable}::AntiiPvP} to true
  814. send "{@P}{@H} Anti iPvP{@C} {@H}Enabled"
  815. else:
  816. send "{@E}{@C}Anti iPvP is already enabled. {@H}/feature set ipvp on&7/{@H}off&7/{@H}toggle"
  817. else if arg-3 is "off" or "disable":
  818. if {{@variable}::AntiiPvP} is set:
  819. delete {{@variable}::AntiiPvP}
  820. send "{@P}{@H} Anti iPvP{@C} {@H}Disabled"
  821. else:
  822. send "{@E}{@C}Anti iPvP is already disabled. {@H}/feature set ipvp on&7/{@H}off&7/{@H}toggle"
  823. else if arg-3 is "toggle" or "t":
  824. if {{@variable}::AntiiPvP} is not set:
  825. set {{@variable}::AntiiPvP} to true
  826. send "{@P}{@H} Anti iPvP{@C} {@H}Enabled"
  827. else:
  828. delete {{@variable}::AntiiPvP}
  829. send "{@P}{@H} Anti iPvP{@C} {@H}Disabled"
  830. else:
  831. send "{@H}/feature set ipvp on&7/{@H}off&7/{@H}toggle"
  832. stop
  833. if arg-2 is "nether":
  834. if arg-3 is not set:
  835. if {{@variable}::NP} is not set:
  836. set {{@variable}::NP} to true
  837. send "{@P}{@H} Nether{@C} {@H}Disabled"
  838. else:
  839. delete {{@variable}::NP}
  840. send "{@P}{@H} Nether{@C} {@H}Enabled"
  841. else if arg-3 is "on" or "enable":
  842. if {{@variable}::NP} is set:
  843. delete {{@variable}::NP}
  844. send "{@P}{@H} Nether{@C} {@H}Enabled"
  845. else:
  846. send "{@E}{@C}Nether is already enabled. {@H}/feature set nether on&7/{@H}off&7/{@H}toggle"
  847. else if arg-3 is "off" or "disable":
  848. if {{@variable}::NP} is not set:
  849. set {{@variable}::NP} to true
  850. send "{@P}{@H} Nether{@C} {@H}Disabled"
  851. else:
  852. send "{@E}{@C}Nether is already disabled. {@H}/feature set nether on&7/{@H}off&7/{@H}toggle"
  853. else if arg-3 is "toggle" or "t":
  854. if {{@variable}::NP} is not set:
  855. set {{@variable}::NP} to true
  856. send "{@P}{@H} Nether{@C} {@H}Disabled"
  857. else:
  858. delete {{@variable}::NP}
  859. send "{@P}{@H} Nether{@C} {@H}Enabled"
  860. else:
  861. send "{@H}/feature set nether on&7/{@H}off&7/{@H}toggle"
  862. stop
  863. if arg-2 is "quartzxp" or "qxp":
  864. if arg-3 is not set:
  865. if {{@variable}::QuartzXP} is not set:
  866. set {{@variable}::QuartzXP} to true
  867. send "{@P}{@H} Quartz XP Nerf{@C} {@H}Enabled"
  868. else:
  869. delete {{@variable}::QuartzXP}
  870. send "{@P}{@H} Quartz XP Nerf{@C} {@H}Disabled"
  871. else if arg-3 is "on" or "enable":
  872. if {{@variable}::QuartzXP} is not set:
  873. set {{@variable}::QuartzXP} to true
  874. send "{@P}{@H} Quartz XP Nerf{@C} {@H}Enabled"
  875. else:
  876. send "{@E}{@C}Quartz XP Nerf is already enabled. {@H}/feature set qxp on&7/{@H}off&7/{@H}toggle"
  877. else if arg-3 is "off" or "disable":
  878. if {{@variable}::QuartzXP} is set:
  879. delete {{@variable}::QuartzXP}
  880. send "{@P}{@H} Quartz XP Nerf{@C} {@H}Disabled"
  881. else:
  882. send "{@E}{@C}Quartz XP Nerf is already disabled. {@H}/feature set qxp on&7/{@H}off&7/{@H}toggle"
  883. else if arg-3 is "toggle" or "t":
  884. if {{@variable}::QuartzXP} is not set:
  885. set {{@variable}::QuartzXP} to true
  886. send "{@P}{@H} Quartz XP Nerf{@C} {@H}Enabled"
  887. else:
  888. delete {{@variable}::QuartzXP}
  889. send "{@P}{@H} Quartz XP Nerf{@C} {@H}Disabled"
  890. else:
  891. send "{@H}/feature set qxp on&7/{@H}off&7/{@H}toggle"
  892. stop
  893. if arg-2 is "splash":
  894. if arg-3 is not set:
  895. if {{@variable}::SplashPots} is not set:
  896. set {{@variable}::SplashPots} to true
  897. send "{@P}{@H} Splash Potions{@C} {@H}Disabled"
  898. else:
  899. delete {{@variable}::SplashPots}
  900. send "{@P}{@H} Splash Potions{@C} {@H}Enabled"
  901. else if arg-3 is "on" or "enable":
  902. if {{@variable}::SplashPots} is set:
  903. delete {{@variable}::SplashPots}
  904. send "{@P}{@H} Splash Potions{@C} {@H}Enabled"
  905. else:
  906. send "{@E}{@C}Splash Potions is already enabled. {@H}/feature set splash on&7/{@H}off&7/{@H}toggle"
  907. else if arg-3 is "off" or "disable":
  908. if {{@variable}::SplashPots} is not set:
  909. set {{@variable}::SplashPots} to true
  910. send "{@P}{@H} Splash Potions{@C} {@H}Disabled"
  911. else:
  912. send "{@E}{@C}Splash Potions is already disabled. {@H}/feature set splash on&7/{@H}off&7/{@H}toggle"
  913. else if arg-3 is "toggle" or "t":
  914. if {{@variable}::SplashPots} is not set:
  915. set {{@variable}::SplashPots} to true
  916. send "{@P}{@H} Splash Potions{@C} {@H}Disabled"
  917. else:
  918. delete {{@variable}::SplashPots}
  919. send "{@P}{@H} Splash Potions{@C} {@H}Enabled"
  920. else:
  921. send "{@H}/feature set splash on&7/{@H}off&7/{@H}toggle"
  922. stop
  923. if arg-2 is "shears":
  924. if arg-3 is not set:
  925. if {{@variable}::NoShears} is not set:
  926. set {{@variable}::NoShears} to true
  927. send "{@P}{@H} Shears{@C} {@H}Disabled"
  928. else:
  929. delete {{@variable}::NoShears}
  930. send "{@P}{@H} Shears{@C} {@H}Enabled"
  931. else if arg-3 is "on" or "enable":
  932. if {{@variable}::NoShears} is set:
  933. delete {{@variable}::NoShears}
  934. send "{@P}{@H} Shears{@C} {@H}Enabled"
  935. else:
  936. send "{@E}{@C}Shears is already enabled. {@H}/feature set shears on&7/{@H}off&7/{@H}toggle"
  937. else if arg-3 is "off" or "disable":
  938. if {{@variable}::NoShears} is not set:
  939. set {{@variable}::NoShears} to true
  940. send "{@P}{@H} Shears{@C} {@H}Disabled"
  941. else:
  942. send "{@E}{@C}Shears is already disabled. {@H}/feature set shears on&7/{@H}off&7/{@H}toggle"
  943. else if arg-3 is "toggle" or "t":
  944. if {{@variable}::NoShears} is not set:
  945. set {{@variable}::NoShears} to true
  946. send "{@P}{@H} Shears{@C} {@H}Disabled"
  947. else:
  948. delete {{@variable}::NoShears}
  949. send "{@P}{@H} Shears{@C} {@H}Enabled"
  950. else:
  951. send "{@H}/feature set shears on&7/{@H}off&7/{@H}toggle"
  952. stop
  953. if arg-2 is "oakonly":
  954. if arg-3 is not set:
  955. if {{@variable}::OakOnly} is not set:
  956. set {{@variable}::OakOnly} to true
  957. send "{@P}{@H} Oak Only Apples{@C} {@H}Enabled"
  958. else:
  959. delete {{@variable}::OakOnly}
  960. send "{@P}{@H} Oak Only Apples{@C} {@H}Disabled"
  961. else if arg-3 is "on" or "enable":
  962. if {{@variable}::OakOnly} is not set:
  963. set {{@variable}::OakOnly} to true
  964. send "{@P}{@H} Oak Only Apples{@C} {@H}Enabled"
  965. else:
  966. send "{@E}{@C}Oak Only Apples is already enabled. {@H}/feature set oakonly on&7/{@H}off&7/{@H}toggle"
  967. else if arg-3 is "off" or "disable":
  968. if {{@variable}::OakOnly} is set:
  969. delete {{@variable}::OakOnly}
  970. send "{@P}{@H} Oak Only Apples{@C} {@H}Disabled"
  971. else:
  972. send "{@E}{@C}Oak Only Apples is already disabled. {@H}/feature set oakonly on&7/{@H}off&7/{@H}toggle"
  973. else if arg-3 is "toggle" or "t":
  974. if {{@variable}::OakOnly} is not set:
  975. set {{@variable}::OakOnly} to true
  976. send "{@P}{@H} Oak Only Apples{@C} {@H}Enabled"
  977. else:
  978. delete {{@variable}::OakOnly}
  979. send "{@P}{@H} Oak Only Apples{@C} {@H}Disabled"
  980. else:
  981. send "{@H}/feature set oakonly on&7/{@H}off&7/{@H}toggle"
  982. stop
  983.  
  984. #============================================
  985. #
  986. # Errors
  987. #
  988. #============================================
  989.  
  990. send "{@E}{@C} Unknown option. {@H}/feature set help"
  991. stop
  992. if command sender has permission "{@perms}":
  993. send "{@E}{@C}{@H} /feature &elist&7/&eset"
  994. else:
  995. send "{@E}{@C}{@H} /feature list"
  996.  
  997.  
  998.  
  999.  
  1000. on tab completer for "/feature":
  1001. if player has permission "{@perms}":
  1002. add "set" to completions
  1003. add "list" to completions
  1004.  
  1005. on chat:
  1006. replace all "kys" with "{@KYS}" in message
  1007.  
  1008. #============================================
  1009. #
  1010. # Hosting Commands
  1011. #
  1012. #============================================
  1013.  
  1014. command /spec [<player>]:
  1015. permission: {@specperms}
  1016. trigger:
  1017. if arg-1 is not set:
  1018. set {_target} to command sender
  1019. if {{@SpecVariable}::%{_target}%} is set:
  1020. send "{@E}{@C} You are already spectating {@H}/unspec"
  1021. stop
  1022. set {{@SpecVariable}::%{_target}%} to true
  1023. set {_target}'s gamemode to spectator
  1024. send "{@P} &fYou are now spectating." to {_target}
  1025. else:
  1026. set {_target} to arg-1
  1027. if {{@SpecVariable}::%{_target}%} is set:
  1028. send "{@E}{@C} %{_target}% is already spectating {@H}/unspec %{_target}%"
  1029. stop
  1030. set {{@SpecVariable}::%{_target}%} to true
  1031. set {_target}'s gamemode to spectator
  1032. send "{@P} &f%{_target}% is now spectating." to {_target}
  1033. send "{@P} &f%{_target}% is now spectating." to command sender
  1034.  
  1035. command /unspec [<player>]:
  1036. permission: {@specperms}
  1037. trigger:
  1038. if arg-1 is not set:
  1039. set {_target} to command sender
  1040. if {{@SpecVariable}::%{_target}%} is not set:
  1041. send "{@E}{@C} You are not spectating {@H}/spec"
  1042. stop
  1043. delete {{@SpecVariable}::%{_target}%}
  1044. set {_target}'s gamemode to survival
  1045. send "{@P} &fYou are no longer spectating." to command sender
  1046. stop
  1047. else:
  1048. set {_target} to arg-1
  1049. if {{@SpecVariable}::%{_target}%} is not set:
  1050. send "{@E}{@C} %{_target}% is not spectating {@H}/spec %{_target}%"
  1051. stop
  1052. delete {{@SpecVariable}::%{_target}%}
  1053. set {_target}'s gamemode to survival
  1054. send "{@P} &f%{_target}% is no longer spectating." to {_target}
  1055. send "{@P} &f%{_target}% is no longer spectating." to command sender
  1056.  
  1057.  
  1058.  
  1059. command /heal [<offlineplayer>]:
  1060. usage: /heal [<player>]
  1061. permission: {@perms}
  1062. trigger:
  1063. if arg-1 is not set:
  1064. heal the command sender
  1065. send "{@P}{@C} You healed yourself!"
  1066. loop all ops:
  1067. loop-player is not command sender
  1068. send "{@P}{@H} %command sender%&f healed {@H}himself{@C}!" to loop-player
  1069. if arg-1 is set:
  1070. if arg-1 is "*" or "all" or "**":
  1071. heal all players
  1072. broadcast "{@P}{@H} %command sender%{@C} healed {@H}all {@C}players!"
  1073. else:
  1074. if arg-1 is not online:
  1075. send "{@E}{@C} You need to specify a online player!"
  1076. stop
  1077. heal arg-1
  1078. send "{@P}{@C} Healed by {@H}%command sender%{@C}!" to arg-1
  1079. loop all ops:
  1080. loop-player is not command sender
  1081. loop-player is not arg-1
  1082. send "{@P}{@H} %command sender%{@C} healed {@H}%arg-1%{@C}!" to loop-player
  1083. send "{@P}{@C} You healed {@H}%arg-1%{@C}!"
  1084.  
  1085. command /feed [<offlineplayer>]:
  1086. usage: /feed [<player>]
  1087. permission: {@perms}
  1088. trigger:
  1089. if arg-1 is not set:
  1090. set the command sender's food level to 10
  1091. send "{@P}{@C} Fed to full hunger!"
  1092. loop all ops:
  1093. loop-player is not command sender
  1094. send "{@P}{@H} %command sender%{@C} fed {@H}himself{@C}!" to loop-player
  1095. if arg-1 is set:
  1096. if arg-1 is "*" or "all" or "**":
  1097. loop all players:
  1098. set the loop-player's food level to 10
  1099. broadcast "{@P}{@H} %command sender%{@C} fed {@H}all{@C} players!"
  1100. else:
  1101. if arg-1 is not online:
  1102. send "{@E}{@C} You need to specify a online player!"
  1103. stop
  1104. set arg-1's food level to 10
  1105. send "{@P}{@C} Fed by {@H}%command sender%{@C}!" to arg-1
  1106. loop all ops:
  1107. loop-player is not command sender
  1108. loop-player is not arg-1
  1109. send "{@P}{@H} %command sender%{@C} fed {@H}%arg-1%{@C}!" to loop-player
  1110. send "&fYou fed &c%arg-1%!"
  1111.  
  1112. command /ci [<offlineplayer>]:
  1113. usage: /ci [<player>]
  1114. permission: {@perms}
  1115. trigger:
  1116. if arg-1 is not set:
  1117. clear command sender's inventory
  1118. send "{@P}{@C} Inventory Cleared!"
  1119. loop all ops:
  1120. loop-player is not command sender
  1121. send "{@P}{@H} %command sender%{@C} cleared {@H}their {@C}inventory!" to loop-player
  1122. if arg-1 is set:
  1123. if arg-1 is "*" or "all" or "**":
  1124. loop all players:
  1125. clear loop-player's inventory
  1126. broadcast "{@P}{@H} %command sender%{@C} cleared all players inventories!"
  1127. else:
  1128. if arg-1 is not online:
  1129. send "{@E}{@C} You need to specify a online player!"
  1130. stop
  1131. clear inventory of arg-1
  1132. send "{@P}{@C} Your inventory was cleared by {@H}%command sender%{@C}!" to arg-1
  1133. loop all ops:
  1134. loop-player is not command sender
  1135. loop-player is not arg-1
  1136. send "{@P}{@H} %command sender%{@C} cleared {@H}%arg-1%'s{@C} inventory!" to loop-player
  1137. send "{@P}{@C} You cleared {@H}%arg-1%'s{@C} inventory!"
  1138.  
  1139. command /kill [<offlineplayer>]:
  1140. usage: /kill [<player>]
  1141. permission: {@perms}
  1142. trigger:
  1143. if arg-1 is not set:
  1144. send "{@P}{@C} You killed {@H}yourself!"
  1145. kill the command sender
  1146. loop all ops:
  1147. loop-player is not command sender
  1148. send "{@P}{@H} %command sender%{@C} killed {@H}himself" to loop-player
  1149. if arg-1 is set:
  1150. if arg-1 is "*" or "all" or "**":
  1151. kill all players
  1152. broadcast "{@P}{@H}%command sender%{@C} killed all players"
  1153. else:
  1154. if arg-1 is not online:
  1155. send "{@E}{@C} You need to specify a {@H}online player!"
  1156. stop
  1157. kill arg-1
  1158. send "{@P}{@C} Killed by {@H}%command sender%" to arg-1
  1159. loop all ops:
  1160. loop-player is not command sender
  1161. loop-player is not arg-1
  1162. send "{@P}{@H} %command sender%{@C} killed {@H}%arg-1%" to loop-player
  1163. send "{@P}{@C} You killed {@H}%arg-1%"
  1164.  
  1165. command /clearall:
  1166. permission: {@perms}
  1167. trigger:
  1168. broadcast "{@P}{@H} Everyone's{@C} inventory has been cleared."
  1169. clear the inventory of all players
  1170.  
  1171. command /setlevel [<int>]:
  1172. permission: {@perms}
  1173. aliases: /setxp
  1174. trigger:
  1175. if arg-1 is not set:
  1176. send "{@E}{@C} Provide a level number!"
  1177. else:
  1178. set level of all players to arg-1
  1179. set level progress of all players to 0
  1180. broadcast "{@P}{@H} %command sender%{@C} set everyone's level to {@H}%arg-1%"
  1181.  
  1182. command /freeze:
  1183. permission: {@perms}
  1184. trigger:
  1185. if {{@variable}::Freeze} is not set:
  1186. broadcast "{@P}{@C} All players now {@H}frozen"
  1187. set {{@variable}::Freeze} to true
  1188. loop all players:
  1189. {{@SpecVariable}::%loop-player%} is not set
  1190. set loop-player's gamemode to adventure
  1191. set loop-player's walk speed to 0
  1192. #set the freeze state of player to true
  1193. else:
  1194. broadcast "{@P}{@C} All players are no longer {@H}frozen"
  1195. delete {{@variable}::Freeze}
  1196. loop all players:
  1197. {{@SpecVariable}::%loop-player%} is not set
  1198. #set the freeze state of loop-player to false
  1199. set loop-player's gamemode to survival
  1200. set loop-player's walk speed to 0.2
  1201.  
  1202.  
  1203. #==================
  1204. # KNOWN BUG
  1205. # after scatter freeze does not work unless you /freeze, /freeze
  1206. # fix 1 add a world checker
  1207. #==================
  1208.  
  1209.  
  1210. on any movement:
  1211. {{@variable}::Freeze} is set
  1212. set {_w} to world of player
  1213. set {_y} to y coordinate of player
  1214. set {_loc} to location of player
  1215. wait 20 ticks
  1216. {_y} is less than y coordinate of player
  1217. set {_w2} to world of player
  1218. {_w2} is {_w}
  1219. teleport player to {_loc}
  1220.  
  1221. on join:
  1222. if {{@variable}::Freeze} is set:
  1223. # set the freeze state of player to true
  1224. set player's gamemode to adventure
  1225. set player's walk speed to 0
  1226. else:
  1227. # set the freeze state of player to false
  1228. set player's gamemode to survival
  1229. set player's walk speed to 0.2
  1230.  
  1231. every 20 ticks:
  1232. loop all players:
  1233. if {{@variable}::Freeze} is set:
  1234. {{@SpecVariable}::%loop-player%} is not set
  1235. if loop-player's gamemode is not adventure:
  1236. set loop-player's gamemode to adventure
  1237. set loop-player's walk speed to 0
  1238. #if loop-player's freeze state is false:
  1239. if {{@variable}::HorseArmor} is set:
  1240. loop all items in loop-player's inventory:
  1241. "%loop-item's id%" is "417", "418" or "419":
  1242. set loop-item to air
  1243. send "{@E}{@C} Horse armor is {@H}DISABLED!" to loop-player
  1244. if {{@variable}::GHeads} is set:
  1245. loop all items in loop-player's inventory:
  1246. if "%name of loop-item%" is "&6Golden Head":
  1247. set {_r} to a random integer between 1 and 9
  1248. set name of loop-item to "&%{_r}%%name of loop-item%"
  1249. set {_r} to a random integer between 1 and 9
  1250. set name of loop-item to "&%{_r}%%name of loop-item%"
  1251. set {_r} to a random integer between 1 and 9
  1252. set name of loop-item to "&%{_r}%%name of loop-item%"
  1253. set {_r} to a random integer between 1 and 9
  1254. set name of loop-item to "&%{_r}%%name of loop-item%"
  1255. set name of loop-item to "%colored name of loop-item%"
  1256. updateTab(loop-player)
  1257.  
  1258.  
  1259. #============================================
  1260. #
  1261. # Alt Detection
  1262. #
  1263. #============================================
  1264.  
  1265. on join:
  1266. if {{@variable}::IPs::%player%} is not set:
  1267. set {{@variable}::IPs::%player%} to "%ip of player%"
  1268. loop {{@variable}::IPs::*}:
  1269. (ip of player) is equal to (loop-value)
  1270. "%loop-index%" is not "%player%"
  1271. (uuid of player) is not (uuid of ("%loop-index%" parsed as player))
  1272. add loop-index to {_alts::*}
  1273. {_alts::*} is set
  1274. loop all players:
  1275. loop-player has permission "{@perms}"
  1276. send "{@P}{@C} Players who logged in under {@H}%player%'s{@C} IP:" to loop-player
  1277. send "{@P}{@H} %{_alts::*}%" to loop-player
  1278.  
  1279. command /findalt [<text>]:
  1280. permission: {@perms}
  1281. aliases: /findalts
  1282. trigger:
  1283. if arg-1 is not set:
  1284. send "{@E}{@C} Provide a player!"
  1285. stop trigger
  1286. set {_p} to ("%arg-1%" parsed as player)
  1287. set {_ip} to {{@variable}::IPs::%arg-1%}
  1288. if {_ip} is not set:
  1289. send "{@E}{@C} No player under the username {@H}%arg-1%{@C} has logged in."
  1290. stop trigger
  1291. loop {{@variable}::IPs::*}:
  1292. {_ip} is equal to (loop-value)
  1293. "%loop-index%" is not "%arg-1%"
  1294. set {_uuid} to (uuid of ({_p}))
  1295. {_uuid} is not (uuid of ("%loop-index%" parsed as player))
  1296. add loop-value to {_alts::*}
  1297. if {_alts::*} is not set:
  1298. send "{@P}{@C} No other players logged on under {@H}%arg-1%'s{@C} IP."
  1299. else:
  1300. send "{@P}{@C} Players who logged in under {@H}%arg-1%'s{@C} IP:"
  1301. send "{@P}{@H} %{_alts::*}%"
  1302.  
  1303. #============================================
  1304. #
  1305. # Hosting Preferences
  1306. #
  1307. #============================================
  1308.  
  1309. function saveVar(p: player, var: text):
  1310. if {{@variable}::%{_var}%} is set:
  1311. set {{@variable}::Hosting::%{_p}%::%{_var}%} to {{@variable}::%{_var}%}
  1312. send "{@P}{@C} SAVED {@H}[->]{@C} %{_var}% {@H}[->]{@C} %{_p}%" to {_p}
  1313.  
  1314. function loadVar(p: player, var: text):
  1315. if {{@variable}::Hosting::%{_p}%::%{_var}%} is set:
  1316. set {{@variable}::%{_var}%} to ({{@variable}::Hosting::%{_p}%::%{_var}%})
  1317. else:
  1318. delete {{@variable}::%{_var}%}
  1319. send "{@P}{@C} LOADED {@H}[->]{@C} %{_var}% {@H}[->]{@C} %{_p}%" to {_p}
  1320.  
  1321. command /savehostingpreferences:
  1322. aliases: /saveconfig, /savehosting, /savepreferences
  1323. permission: {@perms}
  1324. trigger:
  1325. delete {{@variable}::Hosting::%command sender%::*}
  1326. saveVar(command sender, "EPD")
  1327. saveVar(command sender, "GD")
  1328. saveVar(command sender, "AS")
  1329. saveVar(command sender, "GHeads")
  1330. saveVar(command sender, "GHeadHeal")
  1331. saveVar(command sender, "NR")
  1332. saveVar(command sender, "Horses")
  1333. saveVar(command sender, "HorseHeal")
  1334. saveVar(command sender, "HorseArmor")
  1335. saveVar(command sender, "NoGlow")
  1336. saveVar(command sender, "AntiTrap")
  1337. saveVar(command sender, "BrewingStands")
  1338. saveVar(command sender, "Bookshelves")
  1339. saveVar(command sender, "GodApp")
  1340. saveVar(command sender, "StrPots")
  1341. saveVar(command sender, "Absorp")
  1342. saveVar(command sender, "FlintRates")
  1343. saveVar(command sender, "OakOnly")
  1344. saveVar(command sender, "NoShears")
  1345. saveVar(command sender, "AppleRates")
  1346. saveVar(command sender, "AntiiPvP")
  1347. saveVar(command sender, "NP")
  1348. saveVar(command sender, "QuartzXP")
  1349. saveVar(command sender, "GlistMelon")
  1350. saveVar(command sender, "SplashPots")
  1351.  
  1352. command /loadhostingpreferences:
  1353. aliases: /loadconfig, /loadhosting, /loadprefernces
  1354. permission: {@perms}
  1355. trigger:
  1356. loadVar(command sender, "EPD")
  1357. loadVar(command sender, "GD")
  1358. loadVar(command sender, "AS")
  1359. loadVar(command sender, "GHeads")
  1360. loadVar(command sender, "GHeadHeal")
  1361. loadVar(command sender, "NR")
  1362. loadVar(command sender, "Horses")
  1363. loadVar(command sender, "HorseHeal")
  1364. loadVar(command sender, "HorseArmor")
  1365. loadVar(command sender, "NoGlow")
  1366. loadVar(command sender, "AntiTrap")
  1367. loadVar(command sender, "BrewingStands")
  1368. loadVar(command sender, "Bookshelves")
  1369. loadVar(command sender, "GodApp")
  1370. loadVar(command sender, "StrPots")
  1371. loadVar(command sender, "Absorp")
  1372. loadVar(command sender, "FlintRates")
  1373. loadVar(command sender, "OakOnly")
  1374. loadVar(command sender, "NoShears")
  1375. loadVar(command sender, "AppleRates")
  1376. loadVar(command sender, "AntiiPvP")
  1377. loadVar(command sender, "NP")
  1378. loadVar(command sender, "QuartzXP")
  1379. loadVar(command sender, "GlistMelon")
  1380. loadVar(command sender, "SplashPots")
  1381.  
  1382.  
  1383. #============================================
  1384. #
  1385. # UHC Variables
  1386. #
  1387. #============================================
  1388.  
  1389.  
  1390. on shoot:
  1391. world is not "{@ExcludedWorld}"
  1392. "%projectile%" is "thrown potion"
  1393. {{@variable}::SplashPots} is set
  1394. cancel the event
  1395. send "{@E}{@C} Splash Potions are {@H}DISABLED!" to shooter
  1396.  
  1397. on rightclick on chest:
  1398. {{@variable}::HorseArmor} is set
  1399. loop all items in inventory of event-block:
  1400. if loop-item's id is 417, 418 or 419:
  1401. set loop-item to air
  1402.  
  1403. on break of chest:
  1404. {{@variable}::HorseArmor} is set
  1405. loop all items in inventory of event-block:
  1406. if loop-item's id is 417, 418 or 419:
  1407. set loop-item to air
  1408.  
  1409. on death of a ghast:
  1410. {{@variable}::GD} is set
  1411. clear drops
  1412. if {{@variable}::GD} is "gn":
  1413. drop a gold nugget at location of victim
  1414. else if {{@variable}::GD} is "gi":
  1415. drop a gold ingot at location of victim
  1416. else if {{@variable}::GD} is "gb":
  1417. drop a gold block at location of victim
  1418.  
  1419. on death of a player:
  1420. set {_w} to world of victim
  1421. {_w} is not "{@ExcludedWorld}"
  1422. if {{@variable}::DL} is true:
  1423. strike lightning effect at the victim
  1424. loop all players:
  1425. "%world of loop-player%" is not {_w}
  1426. command "/playsound ambient.weather.thunder %loop-player% ~ ~ ~ 1 1 1"
  1427. if {{@variable}::AS} is true:
  1428. set {_a} to armorStand(location at victim)
  1429. if {{@variable}::GHeads} is true:
  1430. equip {_a} with victim's skull
  1431. if victim's leggings is not air:
  1432. set {_vp} to victim's leggings
  1433. if victim's chestplate is not air:
  1434. set {_vc} to victim's chestplate
  1435. if victim's boots is not air:
  1436. set {_vb} to victim's boots
  1437. if {_vc} is set:
  1438. equip {_a} with victim's chestplate
  1439. remove victim's chestplate from the drops
  1440. if {_vp} is set:
  1441. equip {_a} with victim's leggings
  1442. remove victim's leggings from the drops
  1443. if {_vb} is set:
  1444. equip {_a} with victim's boots
  1445. remove victim's boots from the drops
  1446. else:
  1447. if victim's helmet is not air:
  1448. set {_vh} to victim's helmet
  1449. if victim's leggings is not air:
  1450. set {_vp} to victim's leggings
  1451. if victim's chestplate is not air:
  1452. set {_vc} to victim's chestplate
  1453. if victim's boots is not air:
  1454. set {_vb} to victim's boots
  1455. if {_vh} is set:
  1456. equip {_a} with victim's helmet
  1457. remove victim's helmet from the drops
  1458. if {_vc} is set:
  1459. equip {_a} with victim's chestplate
  1460. remove victim's chestplate from the drops
  1461. if {_vp} is set:
  1462. equip {_a} with victim's leggings
  1463. remove victim's leggings from the drops
  1464. if {_vb} is set:
  1465. equip {_a} with victim's boots
  1466. remove victim's boots from the drops
  1467. else:
  1468. {{@variable}::GHeads} is true
  1469. drop victim's skull at location of victim
  1470.  
  1471. on heal:
  1472. if {{@variable}::NR} is not set:
  1473. event-entity is a player
  1474. heal reason is satiated
  1475. cancel the event
  1476. wait 10 ticks
  1477. updateTab(player)
  1478.  
  1479. on rightclick on a horse holding sugar, wheat, apple, golden apple, hay block or golden carrot:
  1480. {{@variable}::HorseHeal} is set
  1481. cancel the event
  1482. if {{@variable}::HorseHeal} is 0:
  1483. send "{@E}{@C} Horse Healing is {@H}DISABLED!" to event-player
  1484. stop trigger
  1485. if player's tool is a sugar:
  1486. remove (1 of (event-player's tool)) from event-player's tool
  1487. heal event-entity by {@SugarHealHorse}*({{@variable}::HorseHeal}/1000)
  1488. else if player's tool is a wheat:
  1489. remove (1 of (event-player's tool)) from event-player's tool
  1490. heal event-entity by {@WheatHealHorse}*({{@variable}::HorseHeal}/1000)
  1491. else if player's tool is a apple:
  1492. remove (1 of (event-player's tool)) from event-player's tool
  1493. heal event-entity by {@AppleHealHorse}*({{@variable}::HorseHeal}/1000)
  1494. else if player's tool is a golden apple:
  1495. remove (1 of (event-player's tool)) from event-player's tool
  1496. heal event-entity by {@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)
  1497. else if player's tool is a golden carrot:
  1498. remove (1 of (event-player's tool)) from event-player's tool
  1499. heal event-entity by {@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)
  1500. else if player's tool is a hay block:
  1501. remove (1 of (event-player's tool)) from event-player's tool
  1502. heal event-entity by {@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)
  1503.  
  1504. command /horsehealamounts:
  1505. trigger:
  1506. if {{@variable}::HorseHeal} is not set:
  1507. set {_t} to 0.1
  1508. else:
  1509. set {_t} to ({{@variable}::HorseHeal}/1000)
  1510. send "{@P}{@C} Sugar:{@H} %{@SugarHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1511. send "{@P}{@C} Wheat:{@H} %{@WheatHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1512. send "{@P}{@C} Apple:{@H} %{@AppleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1513. send "{@P}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1514. send "{@P}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1515. send "{@P}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
  1516.  
  1517. on death of a witch:
  1518. {{@variable}::NoGlow} is set
  1519. remove all glowstone from the drops
  1520.  
  1521. on mine of glowstone:
  1522. {{@variable}::NoGlow} is set
  1523. cancel the event
  1524. set the event-block to air
  1525. send "{@E}{@C} Glowstone is {@H}DISABLED!"
  1526.  
  1527. on flow:
  1528. world of event-block is not "{@ExcludedWorld}"
  1529. {{@variable}::AntiTrap} is set
  1530. event-block is lava
  1531. loop blocks in radius 4:
  1532. loop-block is a portal
  1533. cancel the event
  1534. stop loop
  1535.  
  1536. on place of lava:
  1537. world of event-block is not "{@ExcludedWorld}"
  1538. {{@variable}::AntiTrap} is set
  1539. event-block is lava
  1540. loop blocks in radius 4:
  1541. loop-block is a portal
  1542. cancel the event
  1543. send "{@E}{@C} Portal Trapping is {@H}DISABLED!"
  1544. stop loop
  1545.  
  1546. on craft:
  1547. if {{@variable}::BrewingStands} is set:
  1548. event-item is a brewing stand
  1549. cancel the event
  1550. send "{@E}{@C} Brewing Stands are {@H}DISABLED!"
  1551. if {{@variable}::StrPots} is set:
  1552. event-item is a blaze powder
  1553. cancel the event
  1554. send "{@E}{@C} Strength Potions are {@H}DISABLED!"
  1555. if {{@variable}::GodApp} is set:
  1556. event-item is a enchanted golden apple
  1557. cancel the event
  1558. send "{@E}{@C} God Apples are {@H}DISABLED!"
  1559. if {{@variable}::Bookshelves} is set:
  1560. event-item is a bookshelf
  1561. cancel the event
  1562. send "{@E}{@C} Bookshelves are {@H}DISABLED!"
  1563. if {{@variable}::GHeads} is not set:
  1564. "%name of event-item%" is "&6Golden Head"
  1565. cancel the event
  1566. send "{@E}{@C} Golden Heads are {@H}DISABLED!"
  1567. if {{@variable}::GlistMelon} is true:
  1568. event-item is a glistering melon
  1569. "%name of event-item%" is not "&fGlistering Melon"
  1570. cancel the event
  1571. send "{@E}{@C} Use one gold block. Not nuggets!"
  1572. else:
  1573. event-item is a glistering melon
  1574. "%name of event-item%" is "&fGlistering Melon"
  1575. cancel the event
  1576. send "{@E}{@C} Hard Melon Recipe isn't enabled!"
  1577.  
  1578.  
  1579. on consume:
  1580. if event-item is a enchanted golden apple:
  1581. {{@variable}::GodApp} is set
  1582. cancel the event
  1583. send "{@E}{@C} God Apples are {@H}DISABLED!"
  1584. if event-item is a golden apple:
  1585. if name of player's tool contains "&6Golden Head":
  1586. remove regeneration from player
  1587. set {_lo} to {{@variable}::GHeadHeal}
  1588. if {_lo} is not set:
  1589. set {_lo} to 8
  1590. apply regeneration 2 to player for ("%1.25*{_lo}% seconds" parsed as timespan)
  1591. wait 10 ticks
  1592. remove absorption from player
  1593. if {{@variable}::Absorp} is true:
  1594. apply absorption to player for 2 minutes
  1595.  
  1596. on mine of gravel:
  1597. world is not "{@ExcludedWorld}"
  1598. {{@variable}::FlintRates} is set
  1599. cancel the event
  1600. set event-block to air
  1601. set {_var} to a random integer between 1 and 10000
  1602. if ({_var}/100) is between 0 and ({{@variable}::FlintRates}):
  1603. drop 1 flint at location 0.5 above event-block
  1604. else:
  1605. drop 1 gravel at location 0.5 above event-block
  1606.  
  1607. on leaves decay:
  1608. world is not "{@ExcludedWorld}"
  1609. if {{@variable}::AppleRates} is set:
  1610. set {_ar} to {{@variable}::AppleRates}
  1611. else:
  1612. set {_ar} to 0.55
  1613. if chance of 5%:
  1614. if event-block is oak leaves:
  1615. drop 1 oak sapling at event-block
  1616. else if event-block is spruce leaves:
  1617. drop 1 spruce sapling at event-block
  1618. else if event-block is dark oak leaves:
  1619. drop 1 dark oak sapling at event-block
  1620. else if event-block is birch leaves:
  1621. drop 1 birch sapling at event-block
  1622. else if event-block is jungle leaves:
  1623. drop 1 jungle sapling at event-block
  1624. else if event-block is acacia leaves:
  1625. drop 1 acacia sapling at event-block
  1626. set {_r} to a random integer between 1 and 10000
  1627. if {{@variable}::OakOnly} is set:
  1628. event-block is not oak leaves or dark oak leaves
  1629. stop trigger
  1630. if ({_r}/100) is between 0 and ({_ar}):
  1631. drop 1 apple at event-block
  1632. cancel the event
  1633. set event-block to air
  1634.  
  1635. on break of leaves:
  1636. world is not "{@ExcludedWorld}"
  1637. {{@variable}::AppleRates} is set
  1638. if event-player's tool is shears:
  1639. drop (1 of ("%event-block%" parsed as item)) at event-block
  1640. {{@variable}::NoShears} is true
  1641. stop trigger
  1642. if chance of 5%:
  1643. if event-block is oak leaves:
  1644. drop 1 oak sapling at event-block
  1645. else if event-block is spruce leaves:
  1646. drop 1 spruce sapling at event-block
  1647. else if event-block is dark oak leaves:
  1648. drop 1 dark oak sapling at event-block
  1649. else if event-block is birch leaves:
  1650. drop 1 birch sapling at event-block
  1651. else if event-block is jungle leaves:
  1652. drop 1 jungle sapling at event-block
  1653. else if event-block is acacia leaves:
  1654. drop 1 acacia sapling at event-block
  1655. if {{@variable}::OakOnly} is set:
  1656. event-block is not oak leaves or dark oak leaves
  1657. stop trigger
  1658. if chance of {{@variable}::AppleRates}%:
  1659. drop 1 apple at event-block
  1660. cancel the event
  1661. set event-block to air
  1662.  
  1663.  
  1664. on damage of a player:
  1665. if {{@variable}::Freeze} is true:
  1666. cancel the event
  1667. if damage cause is fall:
  1668. projectile exists
  1669. projectile is a enderpearl
  1670. cancel the event
  1671. {{@variable}::EPD} is set
  1672. damage victim by (({{@variable}::EPD})/10)
  1673. if {{@variable}::AntiiPvP} is set:
  1674. damage cause is suffocation, contact or burning
  1675. loop players in radius 7 around victim:
  1676. loop-player is not victim
  1677. if damage cause is suffocation:
  1678. loop-player has gravel or sand:
  1679. add loop-player to {_possible::*}
  1680. else if damage cause is burning:
  1681. loop-player has a bucket or lava bucket or flint and steel:
  1682. add loop-player to {_possible::*}
  1683. else if damage cause is contact:
  1684. loop-player has a cactus:
  1685. add loop-player to {_possible::*}
  1686. {_possible::*} is set
  1687. send "{@P}{@H} %victim%{@C} &lmay{@C} of gotten iPvP'ed by:" to all ops
  1688. loop {_possible::*}:
  1689. send " {@BC}{@DoubleArrow} {@H}%loop-value%" to all ops
  1690. wait 10 ticks
  1691. updateTab(victim)
  1692.  
  1693.  
  1694. on mine of quartz ore:
  1695. {{@variable}::QuartzXP} is set
  1696. cancel the event
  1697. set the event-block to air
  1698. set {_xp} to a random integer between 1 and 3
  1699. loop {_xp} times:
  1700. drop 1 experience at event-block
  1701. drop 1 quartz at event-block
  1702.  
  1703. on vehicle enter:
  1704. world of event-entity is not "{@ExcludedWorld}"
  1705. wait 10 ticks
  1706. set {_player} to (event-entity's passenger)
  1707. {{@variable}::Horses} is not set
  1708. event-entity is a horse
  1709. make {_player} dismount
  1710. send "{@E}{@C} Horses are {@H}DISABLED!" to {_player}
  1711.  
  1712. on portal:
  1713. world of player is not "{@ExcludedWorld}"
  1714. {{@variable}::NP} is set
  1715. cancel the event
  1716. send "{@E}{@C} Portal's are {@H}DISABLED!"
  1717.  
Advertisement
Add Comment
Please, Sign In to add comment