Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /killeffect [<text>] [<player>]:
- permission: sk.command.killeffect
- trigger:
- if arg 1 is "blood":
- set {killeffect.%arg-2%} to red
- if arg 1 is "smoke":
- set {killeffect.%arg-2%} to smoke
- if arg 1 is "crit":
- set {killeffect.%arg-2%} to crit
- if arg 1 is "flame":
- set {killeffect.%arg-2%} to flame
- if arg 1 is "lightning":
- set {killeffect.%arg-2%} to lightning
- if arg 1 is "none":
- set {killeffect.%arg-2%} to none
- on death:
- victim is a player
- attacker is a player
- if {killeffect.%attacker%} is red:
- execute console command "/execute %victim% ~ ~ ~ particle blockcrack ~ ~1 ~ 0.3 0.3 0.3 0.1 200 normal @e 152"
- if {killeffect.%attacker%} is smoke:
- execute console command "/execute %victim% ~ ~ ~ particle smoke ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
- if {killeffect.%attacker%} is crit:
- execute console command "/execute %victim% ~ ~ ~ particle crit ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
- if {killeffect.%attacker%} is flame:
- execute console command "/execute %victim% ~ ~ ~ particle flame ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
- if {killeffect.%attacker%} is lightning:
- strike lightning effect at victim
Add Comment
Please, Sign In to add comment