Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ENABLE AND DISABLE COMMANDS
- command /elfenable:
- description: Enables Eight-Legged Freaks.
- usage: /elfenable
- permission: skript.elf.enable
- trigger:
- set {ELF} to "true"
- broadcast "&6Eight-Legged Freaks enabled."
- command /elfdisable:
- description: Disables Eight-Legged Freaks.
- usage: /elfdisable
- permission: skript.elf.disable
- trigger:
- set {ELF} to "false"
- broadcast "&6Eight-Legged Freaks disabled."
- # REPLACING MOB SPAWNS WITH SPIDERS
- # Note that slimes will still spawn due to a problem with Skript.
- on spawn of zombie:
- {ELF} is "true":
- cancel the event
- spawn a spider at the location
- on spawn of skeleton:
- {ELF} is "true":
- cancel the event
- spawn a spider at the location
- on spawn of creeper:
- {ELF} is "true":
- cancel the event
- spawn a spider at the location
- on spawn of enderman:
- {ELF} is "true":
- cancel the event
- spawn a cave spider at the location
- on spawn of witch:
- {ELF} is "true":
- cancel the event
- spawn a cave spider at the location
- # SPIDERS SPAWN WITH BUFFS
- on spawn of cave spider:
- {ELF} is "true":
- apply fire resistance 2 to the cave spider for 99999 seconds
- on spawn of spider:
- {ELF} is "true":
- apply strength 1 to the spider for 99999 seconds
- apply swiftness 1 to the spider for 99999 seconds
- apply fire resistance 2 to the spider for 99999 seconds
- set {NormalSpider.%spider%} to "true"
- # RARE SPECIAL SPIDERS
- # Jumpers
- chance of 3%:
- remove strength from the spider
- remove swiftness from the spider
- remove fire resistance from the spider
- remove damage resistance from the spider
- remove slowness from the spider
- set {NormalSpider.%spider%} to "false"
- set {MotherSpider.%spider%} to "false"
- set {Spinner.%spider%} to "false"
- set the max health of the spider to 12
- heal the spider
- apply strength 1 to the spider for 99999 seconds
- apply swiftness 2 to the spider for 99999 seconds
- apply jump boost 8 to the spider for 99999 seconds
- apply fire resistance 2 to the spider for 99999 seconds
- set {Jumper.%spider%} to "true"
- set the spider's name to "&cJumper"
- stop
- # Mother Spider
- chance of 3%:
- remove strength from the spider
- remove swiftness from the spider
- remove fire resistance from the spider
- remove jump boost from the spider
- set {NormalSpider.%spider%} to "false"
- set {Jumper.%spider%} to "false"
- set {Spinner.%spider%} to "false"
- set the max health of the spider to 12
- heal the spider
- apply strength 2 to the spider for 99999 seconds
- apply damage resistance 1 to the spider for 99999 seconds
- apply fire resistance 2 to the spider for 99999 seconds
- apply slowness 3 to the spider for 99999 seconds
- set {MotherSpider.%spider%} to "true"
- set the spider's name to "&cMother"
- stop
- # Spinner
- chance of 3%:
- remove strength from the spider
- remove swiftness from the spider
- remove fire resistance from the spider
- remove jump boost from the spider
- remove damage resistance from the spider
- remove slowness from the spider
- set {NormalSpider.%spider%} to "false"
- set {MotherSpider.%spider%} to "false"
- set {Jumper.%spider%} to "false"
- set the max health of the spider to 12
- heal the spider
- apply fire resistance 2 to the spider for 99999 seconds
- apply swiftness 4 to the spider for 99999 seconds
- set {Spinner.%spider%} to "true"
- set the spider's name to "&cSpinner"
- stop
- # SPECIAL SPIDER ATTACKS
- on damage of player:
- {ELF} is "true":
- # Mother's poison
- attacker is spider:
- {MotherSpider.%attacker%} is "true":
- chance of 10%:
- apply poison 1 to the victim for 3 seconds
- # Spinner's web
- {Spinner.%attacker%} is "true":
- set the block at the victim to cobweb
- chance of 10%:
- apply blindness 1 to the victim for 3 seconds
- # Jumper's fall damage immunity
- on damage of spider:
- {ELF} is "true"
- damage was caused by fall:
- {Jumper.%victim%} is "true":
- cancel event
- # All spider's general immunity to suffocation
- damage was caused by suffocation:
- cancel event
- # SPIDER DEATHS
- on death of spider:
- {ELF} is "true"
- # Regular spiders
- {NormalSpider.%victim%} is "true":
- chance of 5%:
- drop 1 gold ingot at the spider
- # Mother spiders (spawn babies)
- {MotherSpider.%victim%} is "true":
- spawn 3 cave spiders at the spider
- message "&cYou've angered the mother spider's babies!" to the attacker
- drop 2 gold ingots at the spider
- # Spinners
- {Spinner.%victim%} is "true":
- message "&cYou cut a spinner!" to the attacker
- drop 2 gold ingots at the spider
- # Jumpers
- {Jumper.%victim%} is "true":
- message "&cYou grounded a jumper!" to the attacker
- drop 2 gold ingots at the spider
- # Cave spiders
- on death of cave spider:
- {ELF} is "true"
- chance of 15%:
- drop 1 gold ingot at the cave spider
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement