akon1248

Untitled

Jun 27th, 2018
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 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. send "%arg-2%のkilleffectを%arg-1%にセットしました"
  7. if arg 1 is "smoke":
  8. set {killeffect.%arg-2%} to smoke
  9. send "%arg-2%のkilleffectを%arg-1%にセットしました"
  10. if arg 1 is "crit":
  11. set {killeffect.%arg-2%} to crit
  12. send "%arg-2%のkilleffectを%arg-1%にセットしました"
  13. if arg 1 is "flame":
  14. set {killeffect.%arg-2%} to flame
  15. send "%arg-2%のkilleffectを%arg-1%にセットしました"
  16. if arg 1 is "lightning":
  17. set {killeffect.%arg-2%} to lightning
  18. send "%arg-2%のkilleffectを%arg-1%にセットしました"
  19. if arg 1 is "explosion":
  20. set {killeffect.%arg-2%} to explosion
  21. send "%arg-2%のkilleffectを%arg-1%にセットしました"
  22. if arg 1 is "fireworks":
  23. set {killeffect.%arg-2%} to fireworks
  24. send "%arg-2%のkilleffectを%arg-1%にセットしました"
  25. if arg 1 is "none":
  26. set {killeffect.%arg-2%} to none
  27. send "%arg-2%のkilleffectを%arg-1%にセットしました"
  28. on death:
  29. victim is a player
  30. attacker is a player
  31. if {killeffect.%attacker%} is red:
  32. execute console command "/execute %victim% ~ ~ ~ particle blockcrack ~ ~1 ~ 0.3 0.3 0.3 0.1 200 normal @e 152"
  33. if {killeffect.%attacker%} is smoke:
  34. execute console command "/execute %victim% ~ ~ ~ particle smoke ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
  35. if {killeffect.%attacker%} is crit:
  36. execute console command "/execute %victim% ~ ~ ~ particle crit ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
  37. if {killeffect.%attacker%} is flame:
  38. execute console command "/execute %victim% ~ ~ ~ particle flame ~ ~1 ~ 0.5 0.5 0.5 0.1 200"
  39. if {killeffect.%attacker%} is lightning:
  40. strike lightning effect at victim
  41. if {killeffect.%attacker%} is explosion:
  42. execute console command "/execute %victim% ~ ~ ~ summon tnt ~ ~ ~ {Tags:[effect],Motion:[0.0d,0.3d,0.0d],Fuse:15s}"
  43. if {killeffect.%attacker%} is fireworks:
  44. execute console command "/execute %victim% ~ ~ ~ summon fireworks_rocket ~ ~2 ~ {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Trail:1,Colors:[I;%random integer between 1 and 16777215%,%random integer between 1 and 16777215%,%random integer between 1 and 16777215%],FadeColors:[I;%random integer between 1 and 16777215%]}]}}}}"
  45. every tick:
  46. command "/scoreboard players tag @e[tag=effect,type=tnt] add explosionefffect {Fuse:1s}"
  47. command "/execute @e[tag=explosioneffect] ~ ~ ~ particle hugeexplosion ~ ~ ~ 0 0 0 0 2"
  48. command "/execute @e[tag=explosioneffect] ~ ~ ~ playsound minecraft:entity.generic.explode master @a ~ ~ ~ 1 0.7"
  49. command "/kill @e[tag=explosioneffect]"
Advertisement
Add Comment
Please, Sign In to add comment