Guest User

Segregation Skript V. 1.1

a guest
Apr 6th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. #Segregation#
  2. #Skript by Szboy#
  3. #Gamemode by FDeath#
  4. options:
  5. P : &6[&4Segregation&6]
  6. command /segregation <text>:
  7. description: Toggles Segregation!
  8. usage: /segregation <on:off>
  9. aliases: /seg
  10. permission: skript.op
  11. trigger:
  12. if arg 1 is "on":
  13. set {seg} to true
  14. reset {cyclemobs}
  15. broadcast "{@P} &6Seregation &aenabled!"
  16. set {cyclemobs} to random integer between 0 and 7
  17. if {cyclemobs} is 0:
  18. broadcast "{@P} &6Only &2&lZombies &r&6will spawn!"
  19. else if {cyclemobs} is 1:
  20. broadcast "{@P} &6Only &f&lSkeletons &r&6will spawn!"
  21. else if {cyclemobs} is 2:
  22. broadcast "{@P} &6Only &4&lSpiders &r&6will spawn!"
  23. else if {cyclemobs} is 3:
  24. broadcast "{@P} &6Only &a&lCreepers &r&6will spawn!"
  25. else if {cyclemobs} is 4:
  26. broadcast "{@P} &6Only &5&lCave Spiders &r&6will spawn!"
  27. else if {cyclemobs} is 5:
  28. broadcast "{@P} &6Only &b&lWitches &r&6will &6spawn!"
  29. else if {cyclemobs} is 6:
  30. broadcast "{@P} &6Only &6&lBlazes &r&6will &6spawn!"
  31. else if {cyclemobs} is 7:
  32. broadcast "{@P} &6Only &8&lSilverfish &r&6will spawn!"
  33. if arg 1 is "off":
  34. set {seg} to false
  35. reset {cyclemobs}
  36. broadcast "{@P} &6Segregation &cdisabled!"
  37. #Cycling
  38. Every 5 minutes:
  39. if {seg} is true:
  40. set {cyclemobs} to random integer between 0 and 7
  41. if {cyclemobs} is 0:
  42. broadcast "{@P} &6Only &2&lZombies &r&6will spawn!"
  43. else if {cyclemobs} is 1:
  44. broadcast "{@P} &6Only &f&lSkeletons &r&6will spawn!"
  45. else if {cyclemobs} is 2:
  46. broadcast "{@P} &6Only &4&lSpiders &r&6will spawn!"
  47. else if {cyclemobs} is 3:
  48. broadcast "{@P} &6Only &a&lCreepers &r&6will spawn!"
  49. else if {cyclemobs} is 4:
  50. broadcast "{@P} &6Only &5&lCave Spiders &r&6will spawn!"
  51. else if {cyclemobs} is 5:
  52. broadcast "{@P} &6Only &b&lWitches &r&6will &6spawn!"
  53. else if {cyclemobs} is 6:
  54. broadcast "{@P} &6Only &6&lBlazes &r&5will &6spawn!"
  55. else if {cyclemobs} is 7:
  56. broadcast "{@P} &6Only &8&lSilverfish &r&6will spawn!"
  57. else:
  58. stop
  59. #Spawns
  60. On spawn of a zombie:
  61. if {seg} is true:
  62. if {cyclemobs} is not 0:
  63. damage all zombies by 1000 hearts
  64. cancel the event
  65.  
  66. On spawn of a skeleton:
  67. if {seg} is true:
  68. if {cyclemobs} is not 1:
  69. damage all skeletons by 1000 hearts
  70. cancel the event
  71.  
  72. On spawn of a spider:
  73. if {seg} is true:
  74. if {cyclemobs} is not 2:
  75. damage all spiders by 1000 hearts
  76. cancel the event
  77.  
  78. On spawn of a creepers:
  79. if {seg} is true:
  80. if {cyclemobs} is not 3:
  81. damage all creepers by 1000 hearts
  82. cancel the event
  83.  
  84. On spawn of a cave spider:
  85. if {seg} is true:
  86. if {cyclemobs} is not 4:
  87. damage all cave spiders by 1000 hearts
  88. cancel the event
  89.  
  90. On spawn of a witch:
  91. if {seg} is true:
  92. if {cyclemobs} is not 5:
  93. damage all witches by 1000 hearts
  94. cancel the event
  95. On spawn of a blaze:
  96. if {seg} is true:
  97. if {cyclemobs} is not 6:
  98. damage all blazes by 1000 hearts
  99. cancel the event
  100.  
  101. On spawn of a silverfish:
  102. if {seg} is true:
  103. if {cyclemobs} is not 7:
  104. damage all silverfishes by 1000 hearts
  105. cancel the event
  106. #Drops
  107. On death of a zombie:
  108. if {seg} is true:
  109. if {cyclemobs} is not 0:
  110. clear drops
  111. On death of a skeleton:
  112. if {seg} is true:
  113. if {cyclemobs} is not 1:
  114. clear drops
  115. On death of a spider:
  116. if {seg} is true:
  117. if {cyclemobs} is not 2:
  118. clear drops
  119. On death of a creeper:
  120. if {seg} is true:
  121. if {cyclemobs} is not 3:
  122. clear drops
  123. On death of a cave spider:
  124. if {seg} is true:
  125. if {cyclemobs} is not 4:
  126. clear drops
  127. On death of a witch:
  128. if {seg} is true:
  129. if {cyclemobs} is not 5:
  130. clear drops
  131. On death of a blaze:
  132. if {seg} is true:
  133. if {cyclemobs} is not 6:
  134. clear drops
  135. On death of a silverfish:
  136. if {seg} is true:
  137. if {cyclemobs} is not 7:
  138. clear drops
Advertisement
Add Comment
Please, Sign In to add comment