Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Segregation#
- #Skript by Szboy#
- #Gamemode by FDeath#
- options:
- P : &6[&4Segregation&6]
- command /segregation <text>:
- description: Toggles Segregation!
- usage: /segregation <on:off>
- aliases: /seg
- permission: skript.op
- trigger:
- if arg 1 is "on":
- set {seg} to true
- reset {cyclemobs}
- broadcast "{@P} &6Seregation &aenabled!"
- set {cyclemobs} to random integer between 0 and 7
- if {cyclemobs} is 0:
- broadcast "{@P} &6Only &2&lZombies &r&6will spawn!"
- else if {cyclemobs} is 1:
- broadcast "{@P} &6Only &f&lSkeletons &r&6will spawn!"
- else if {cyclemobs} is 2:
- broadcast "{@P} &6Only &4&lSpiders &r&6will spawn!"
- else if {cyclemobs} is 3:
- broadcast "{@P} &6Only &a&lCreepers &r&6will spawn!"
- else if {cyclemobs} is 4:
- broadcast "{@P} &6Only &5&lCave Spiders &r&6will spawn!"
- else if {cyclemobs} is 5:
- broadcast "{@P} &6Only &b&lWitches &r&6will &6spawn!"
- else if {cyclemobs} is 6:
- broadcast "{@P} &6Only &6&lBlazes &r&6will &6spawn!"
- else if {cyclemobs} is 7:
- broadcast "{@P} &6Only &8&lSilverfish &r&6will spawn!"
- if arg 1 is "off":
- set {seg} to false
- reset {cyclemobs}
- broadcast "{@P} &6Segregation &cdisabled!"
- #Cycling
- Every 5 minutes:
- if {seg} is true:
- set {cyclemobs} to random integer between 0 and 7
- if {cyclemobs} is 0:
- broadcast "{@P} &6Only &2&lZombies &r&6will spawn!"
- else if {cyclemobs} is 1:
- broadcast "{@P} &6Only &f&lSkeletons &r&6will spawn!"
- else if {cyclemobs} is 2:
- broadcast "{@P} &6Only &4&lSpiders &r&6will spawn!"
- else if {cyclemobs} is 3:
- broadcast "{@P} &6Only &a&lCreepers &r&6will spawn!"
- else if {cyclemobs} is 4:
- broadcast "{@P} &6Only &5&lCave Spiders &r&6will spawn!"
- else if {cyclemobs} is 5:
- broadcast "{@P} &6Only &b&lWitches &r&6will &6spawn!"
- else if {cyclemobs} is 6:
- broadcast "{@P} &6Only &6&lBlazes &r&5will &6spawn!"
- else if {cyclemobs} is 7:
- broadcast "{@P} &6Only &8&lSilverfish &r&6will spawn!"
- else:
- stop
- #Spawns
- On spawn of a zombie:
- if {seg} is true:
- if {cyclemobs} is not 0:
- damage all zombies by 1000 hearts
- cancel the event
- On spawn of a skeleton:
- if {seg} is true:
- if {cyclemobs} is not 1:
- damage all skeletons by 1000 hearts
- cancel the event
- On spawn of a spider:
- if {seg} is true:
- if {cyclemobs} is not 2:
- damage all spiders by 1000 hearts
- cancel the event
- On spawn of a creepers:
- if {seg} is true:
- if {cyclemobs} is not 3:
- damage all creepers by 1000 hearts
- cancel the event
- On spawn of a cave spider:
- if {seg} is true:
- if {cyclemobs} is not 4:
- damage all cave spiders by 1000 hearts
- cancel the event
- On spawn of a witch:
- if {seg} is true:
- if {cyclemobs} is not 5:
- damage all witches by 1000 hearts
- cancel the event
- On spawn of a blaze:
- if {seg} is true:
- if {cyclemobs} is not 6:
- damage all blazes by 1000 hearts
- cancel the event
- On spawn of a silverfish:
- if {seg} is true:
- if {cyclemobs} is not 7:
- damage all silverfishes by 1000 hearts
- cancel the event
- #Drops
- On death of a zombie:
- if {seg} is true:
- if {cyclemobs} is not 0:
- clear drops
- On death of a skeleton:
- if {seg} is true:
- if {cyclemobs} is not 1:
- clear drops
- On death of a spider:
- if {seg} is true:
- if {cyclemobs} is not 2:
- clear drops
- On death of a creeper:
- if {seg} is true:
- if {cyclemobs} is not 3:
- clear drops
- On death of a cave spider:
- if {seg} is true:
- if {cyclemobs} is not 4:
- clear drops
- On death of a witch:
- if {seg} is true:
- if {cyclemobs} is not 5:
- clear drops
- On death of a blaze:
- if {seg} is true:
- if {cyclemobs} is not 6:
- clear drops
- On death of a silverfish:
- if {seg} is true:
- if {cyclemobs} is not 7:
- clear drops
Advertisement
Add Comment
Please, Sign In to add comment