我的世界 榴彈三叉戟

榴彈三叉戟
[1個(gè)積分板]
/scoreboard objectives add 火箭筒 dummy
[第一個(gè)循環(huán),其他全部連鎖]
execute @a[hasitem={item=firework_rocket,location=slot.weapon.offhand}] ~~~ scoreboard players add @e[type=minecraft:thrown_trident,r=3,tag=!火箭筒] 火箭筒 0
tag @e[type=minecraft:thrown_trident] add 火箭筒
execute @e[type=minecraft:thrown_trident,scores={火箭筒=0..40}] ~~~ particle minecraft:camera_shoot_explosion
execute @e[type=minecraft:thrown_trident,scores={火箭筒=0..40}] ~~~ particle minecraft:basic_flame_particle
scoreboard players add @e[type=minecraft:thrown_trident,scores={火箭筒=0..}] 火箭筒 1
execute @e[type=minecraft:thrown_trident,scores={火箭筒=1}] ~~~ clear @p[hasitem={item=firework_rocket,location=slot.weapon.offhand},r=2] firework_rocket 0 1
execute @e[type=minecraft:thrown_trident,scores={火箭筒=3..39}] ~~~ execute @e[type=!item,type=!minecraft:thrown_trident,r=2] ~~~ scoreboard players set @e[type=minecraft:thrown_trident,scores={火箭筒=1..39},r=2] 火箭筒 40
tag @e[type=minecraft:thrown_trident,scores={火箭筒=3..39}] remove 墻
execute @e[type=minecraft:thrown_trident,scores={火箭筒=3..39}] ^^^0.5 detect ~ ~-0.5 ~ air 0 tag @s add 墻
scoreboard players set @e[type=minecraft:thrown_trident,tag=!墻,scores={火箭筒=3..39}] 火箭筒 40
execute @e[type=minecraft:thrown_trident,scores={火箭筒=40}] ~~~ damage @e[r=8,type=!item,type=!minecraft:thrown_trident] 70 projectile entity @s
execute @e[type=minecraft:thrown_trident,scores={火箭筒=40}] ~~~ playsound random.explode @a[r=120] ~ ~ ~
execute @e[type=minecraft:thrown_trident,scores={火箭筒=40}] ~~~ particle minecraft:dragon_death_explosion_emitter ~~~
execute @e[type=minecraft:thrown_trident,scores={火箭筒=40}] ~~~ particle minecraft:knockback_roar_particle