Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Perm: skript.op
- P: &6Vengeful Spirits
- C: &8
- H: &c
- W: &a
- V: &8»
- command /VengefulSpirits <text>:
- permission: {@Perm}
- usage: /VengefulSpirits <On:Off>
- trigger:
- if arg-1 is "enable" or "on":
- set {VengefulSpirits} to true
- broadcast "{@P} {@V} {@W}Enabled{@C}!"
- if arg-1 is "disable" or "off":
- delete {VengefulSpirits}
- broadcast "{@P} {@V} {@H}Disabled{@C}!"
- if arg-1 is "toggle":
- if {VengefulSpirits} is set:
- command sender command "/VengefulSpirits off"
- else:
- command sender command "/VengefulSpirits on"
- on death of player:
- {VengefulSpirits} is true:
- wait 1 tick
- y-coordinate of player is higher than 60:
- spawn 1 ghast at location 1 above (location of event-player)
- set max health of last spawned entity to 15
- heal last spawned entity
- set name of last spawned entity to "%player%"
- else if y-coordinate of player is less than 60:
- spawn 1 blaze at location 1 above (location of event-player)
- set max health of last spawned entity to 15
- heal last spawned entity
- set name of last spawned entity to "%player%"
- on death of ghast:
- {VengefulSpirits} is true:
- set {_Head} to name of victim
- drop 1 player head named "%{_Head}%" at location of victim
- on death of blaze:
- {VengefulSpirits} is true:
- set {_Head} to name of victim
- drop 1 player head named "%{_Head}%" at location of victim
- on right click:
- {VengefulSpirits} is true
- player's tool is name tag
- cancel the event
- message "{@P}{@C} You cannot name things in this gamemode!"
Advertisement
Add Comment
Please, Sign In to add comment