akon1248

Untitled

Jun 27th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. command /killeffect [<text>] [<player>]:
  2. permission: sk.command.killeffect
  3. trigger:
  4. if arg 1 is "blood":
  5. set {killeffect.%arg-2%} to red
  6. if arg 1 is "smoke":
  7. set {killeffect.%arg-2%} to smoke
  8. if arg 1 is "crit":
  9. set {killeffect.%arg-2%} to crit
  10. if arg 1 is "flame":
  11. set {killeffect.%arg-2%} to flame
  12. if arg 1 is "lightning":
  13. set {killeffect.%arg-2%} to lightning
  14. if arg 1 is "none":
  15. set {killeffect.%arg-2%} to none
  16.  
  17. on death:
  18. victim is a player
  19. attacker is a player
  20. if {killeffect.%attacker%} is red:
  21. execute console command "/execute %victim% ~ ~ ~ particle blockcrack ~ ~1 ~ 0.3 0.3 0.3 0.1 200 normal @e 152"
  22. if {killeffect.%attacker%} is smoke:
  23. execute console command "/execute %victim% ~ ~ ~ particle smoke ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
  24. if {killeffect.%attacker%} is crit:
  25. execute console command "/execute %victim% ~ ~ ~ particle crit ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
  26. if {killeffect.%attacker%} is flame:
  27. execute console command "/execute %victim% ~ ~ ~ particle flame ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
  28. if {killeffect.%attacker%} is lightning:
  29. strike lightning effect at victim
Add Comment
Please, Sign In to add comment