指令
execute at @e[c=1,type=fishing_hook] as @e[r=3,c=2] at @s unless entity @s[type=!fishing_hook,type=!player] run tag @s add 枪
execute as @e[tag=枪,type=fishing_hook] at @s at @p[tag=枪] run tp @s ^ ^ ^32 facing @p[tag=枪]
execute at @a[tag=枪] anchored eyes rotated as @e[tag=枪] positioned ^ ^ ^0.5 rotated as @e[tag=枪] positioned ^ ^ ^1 rotated as @e[tag=枪] positioned ^ ^ ^2 rotated as @e[tag=枪] positioned ^ ^ ^4 rotated as @e[tag=枪] positioned ^ ^ ^8 positioned ^ ^ ^16 if entity @e[tag=枪,r=16] positioned ^ ^ ^-16 if entity @e[tag=枪,r=16] unless block ~ ~ ~ air run tp @e[tag=枪,type=fishing_hook] ~ ~ ~
execute at @a[tag=枪] anchored eyes rotated as @e[tag=枪] positioned ^ ^ ^0.5 rotated as @e[tag=枪] positioned ^ ^ ^1 rotated as @e[tag=枪] positioned ^ ^ ^2 rotated as @e[tag=枪] positioned ^ ^ ^4 rotated as @e[tag=枪] positioned ^ ^ ^8 positioned ^ ^ ^16 if entity @e[tag=枪,r=16] positioned ^ ^ ^-16 if entity @e[tag=枪,r=16] run particle minecraft:redstone_torch_dust_particle
execute as @a[tag=枪] at @s run playsound cauldron.explode @a[r=80] ~~~ 1 6 0.6
execute as @a[tag=枪] at @s run particle minecraft:camera_shoot_explosion ^^1^1
execute as @a[tag=枪] at @s run /camerashake add @a[tag=枪] 0.03 0.05 rotational

execute at @a[tag=枪] anchored eyes rotated as @e[tag=枪] positioned ^ ^ ^0.5 rotated as @e[tag=枪] positioned ^ ^ ^1 rotated as @e[tag=枪] positioned ^ ^ ^2 rotated as @e[tag=枪] positioned ^ ^ ^4 rotated as @e[tag=枪] positioned ^ ^ ^8 positioned ^ ^ ^16 if entity @e[tag=枪,r=16] positioned ^ ^ ^-16 if entity @e[tag=枪,r=16] run damage @e[tag=!枪,r=1,y=~-1] 5 entity_attack entity @a[tag=枪]
kill @e[type=fishing_hook,tag=枪]
tag @a[tag=枪] remove 枪
重新排一行execute as @a at @s run titleraw @a subtitle {"rawtext":[{"text":"§4▶ ◀\n§r"}]}
titleraw @a title {"rawtext":[{"text":"§r"}]}
titleraw @a times 0 20 0
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删