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
- send "%arg-2%のkilleffectを%arg-1%にセットしました"
- if arg 1 is "smoke":
- set {killeffect.%arg-2%} to smoke
- send "%arg-2%のkilleffectを%arg-1%にセットしました"
- if arg 1 is "crit":
- set {killeffect.%arg-2%} to crit
- send "%arg-2%のkilleffectを%arg-1%にセットしました"
- if arg 1 is "flame":
- set {killeffect.%arg-2%} to flame
- send "%arg-2%のkilleffectを%arg-1%にセットしました"
- if arg 1 is "lightning":
- set {killeffect.%arg-2%} to lightning
- send "%arg-2%のkilleffectを%arg-1%にセットしました"
- if arg 1 is "explosion":
- set {killeffect.%arg-2%} to explosion
- send "%arg-2%のkilleffectを%arg-1%にセットしました"
- if arg 1 is "fireworks":
- set {killeffect.%arg-2%} to fireworks
- send "%arg-2%のkilleffectを%arg-1%にセットしました"
- if arg 1 is "none":
- set {killeffect.%arg-2%} to none
- send "%arg-2%のkilleffectを%arg-1%にセットしました"
- 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
- if {killeffect.%attacker%} is explosion:
- execute console command "/execute %victim% ~ ~ ~ summon tnt ~ ~ ~ {Tags:[effect],Motion:[0.0d,0.3d,0.0d],Fuse:15s}"
- if {killeffect.%attacker%} is fireworks:
- 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%]}]}}}}"
- every tick:
- command "/scoreboard players tag @e[tag=effect,type=tnt] add explosionefffect {Fuse:1s}"
- command "/execute @e[tag=explosioneffect] ~ ~ ~ particle hugeexplosion ~ ~ ~ 0 0 0 0 2"
- command "/execute @e[tag=explosioneffect] ~ ~ ~ playsound minecraft:entity.generic.explode master @a ~ ~ ~ 1 0.7"
- command "/kill @e[tag=explosioneffect]"
Advertisement
Add Comment
Please, Sign In to add comment