Ilom_uk

Broken UHC Skript

May 13th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. options:
  2. P: &7[&8Nightmare UHC&7]
  3. p: &7[&8Nightmare UHC&7]
  4. p2: &7[&8Nightmare UHC&7]
  5.  
  6. variables:
  7. {DropFixes:Enderman} = false
  8.  
  9. {DropFixes:Blaze} = false
  10.  
  11.  
  12. on death of enderman:
  13. if {DropFixes:Enderman} is true:
  14. chance of {DropFixes:EPearlDropChance}%:
  15. clear drops
  16. drop 1 ender pearl at the enderman
  17.  
  18. on death of blaze:
  19. if {DropFixes:Blaze} is true:
  20. chance of {DropFixes:BlazeRodDropChance}%:
  21. clear drops
  22. drop 1 blaze rod at the blaze
  23.  
  24. command /dropfix [<text>] [<integer>]:
  25. permission: skript.op
  26. usage: /dropfix <mob:reset> <integer>
  27. aliases: /fixdrops, /fixdrop, /dropfixes
  28. trigger:
  29. if arg-1 is "reset":
  30. broadcast "{@p} Mob Drop Rates set to Vanilla"
  31. delete {DropFixes:EPearlDropChance}
  32. delete {DropFixes:BlazeRodDropChance}
  33. loop all players:
  34. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  35. else if arg-1 is "enderman":
  36. if arg-2 is not set:
  37. send "{@p} You must specify a rate to set it to!" to command sender
  38. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  39. stop
  40. else if arg-2 is less than 0:
  41. send "{@p} No number lower than 0!" to command sender
  42. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  43. stop
  44. else if arg-2 is greater than 100:
  45. send "{@p} No number higher than 100!" to command sender
  46. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  47. stop
  48. set {DropFixes:EPearlDropChance} to arg-2
  49. set {DropFixes:Enderman} to true
  50. broadcast "{@p} Ender Pearl Rates set to %arg-2%%%"
  51. loop all players:
  52. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  53. else:
  54. if {DropFixes:EPearlDropChance} is set:
  55. send "{@p2} Current Ender Pearl Rates: %{DropFixes:EPearlDropChance}%%%"
  56. else:
  57. send "{@p2} Current Ender Pearl Rates: Vanilla"
  58. send "{@p} /dropfix [<enderman:blaze:reset>] [<rate (1-100)>]"
  59. command "/playsound random.explode %command sender% ~ ~ ~ 1 0.5 1"
  60.  
  61. else if arg-1 is "blaze":
  62. if arg-2 is not set:
  63. send "{@p} You must specify a rate to set it to!" to command sender
  64. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  65. stop
  66. else if arg-2 is less than 0:
  67. send "{@p} No number lower than 0!" to command sender
  68. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  69. stop
  70. else if arg-2 is greater than 100:
  71. send "{@p} No number higher than 100!" to command sender
  72. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  73. stop
  74. set {DropFixes:BlazeRodDropChance} to arg-2
  75. set {DropFixes:Blaze} to true
  76. broadcast "{@p} Blaze Rod Rates set to %arg-2%%%"
  77. loop all players:
  78. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  79. else:
  80. if {DropFixes:BlazeRodDropChance} is set:
  81. send "{@p2} Current Blaze Rod Rates: %{DropFixes:EPearlDropChance}%%%"
  82. else:
  83. send "{@p2} Current Blaze Rod Rates: Vanilla"
  84. send "{@p} /dropfix [<enderman:blaze:reset>] [<rate (1-100)>]"
  85. command "/playsound random.explode %command sender% ~ ~ ~ 1 0.5 1"
  86.  
  87. command /witch [<text>]:
  88. description: Witch Enable:Disable:Toggle
  89. usage: /witch <enable:disable:toggle>
  90. permission: skript.admin
  91. trigger:
  92. if arg 1 is "enable":
  93. if arg-2 is not set:
  94. set {witchnerfs1} to true
  95. set {witchnerfs2} to false
  96. send "&7Normal Witch Nerfs Enabled!"
  97. if arg-2 is "special":
  98. set {witchnerfs1} to true
  99. set {witchnerfs2} to true
  100. send "&7Extra Witch Nerfs Enabled!"
  101. if arg-2 is normal:
  102. set {witchnerfs1} to true
  103. set {witchnerfs2} to false
  104. send "&7Normal Witch Nerfs Enabled!"
  105. if arg 1 is "disable":
  106. if arg-2 is not set:
  107. set {witchnerfs1} to false
  108. set {witchnerfs2} to false
  109. send "&7Normal Witch Nerfs Disabled!"
  110. if arg-2 is "special":
  111. set {witchnerfs2} to false
  112. send "&7Extra Witch Nerfs Disabled!"
  113. if arg-2 is normal:
  114. set {witchnerfs1} to false
  115. set {witchnerfs2} to false
  116. send "&7Normal Witch Nerfs Disabled!"
  117.  
  118. on death of witch:
  119. if {witchnerfs1} is true:
  120. chance of 30%:
  121. clear drops
  122. drop a health potion at the witch
  123. else if {witchnerfs2} is true:
  124. chance of 20%:
  125. clear drops
  126. drop a health potion at the witch
  127. drop %a random integer between 1 and 3% gold ingots at the witch
Advertisement
Add Comment
Please, Sign In to add comment