我的世界多類型魚竿槍

tp @e[type=fishing_hook] 1 -99999 -99 循 保 無
scoreboard players set @a[scores={子彈=31..}] 子彈 30 連 無 保
scoreboard players set @a[scores={子彈=-9999..-1}] 子彈 0 連 無 保
scoreboard players remove @a[scores={射速=7..}] 射速 6 連 無 保
scoreboard players add @a[tag=ak,hasitem={item=music_disc_11,location=slot.weapon.mainhand}] 子彈 1 循 無 保
clear @a[tag=ak,scores={子彈=31}] music_disc_11 0 1 連 有 保
execute @a[tag=ak,hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§7AK47§e30/"},{"score":{"name":"@s","objective":"子彈"}}]} 連 無 保
execute @e[type=fishing_hook] ~~~ scoreboard players test @p[r=2] 子彈 1 * 循 無 保
execute @e[type=fishing_hook] ~~~ scoreboard players remove @p[r=2] 子彈 1 連 有 保
execute @e[type=fishing_hook] ~~~ scoreboard players add @a[r=2,scores={子彈=1..}] 射速 6 連 有 保
execute @a[scores={射速=1..}] ~~100 ~ summon boat
execute @a[scores={射速=1..}] ~~100~ tp @e[type=boat,c=1,r=1] ^^^1.9 facing ~~~ 連 有 保
scoreboard players remove @a[scores={射速=1..}] 射速 1 連 無 保
execute @a[tag=ak,scores={射速=1..}] ~~~ playsound ambient.weather.lightning.impact @p ~ ~ ~ 100 3.5 100 連 無 保
execute @e[type=boat,tag=akzd] ~ ~-98.5 ~ particle minecraft:colored_flame_particle ~ ~0.1 ~ 連 無 保
execute @e[type=boat] ~ ~ ~ tp @s ^ ^ ^-2 循 無 保
execute @e[type=boat,tag=akzd] ~~-100~ damage @e[r=1.5] 5 projectile 連 無 保
/scoreboard objectives add 射速 dummy
/scoreboard objectives add 子彈 dummy
execute @a[tag=ak,scores={射速=1..}] ~~~ tag @e[type=boat] add akzd
/kill @e[name=子彈]循保延遲50一定要加不然很卡
下面是狙擊槍
tp @e[type=fishing_hook] 1 -99999 -99 循 保 無
scoreboard players set @a[tag=狙擊,scores={子彈=4..}] 子彈 4 連 無 保
scoreboard players set @a[scores={子彈=-9999..-1}] 子彈 0 連 無 保
scoreboard players remove @a[scores={射速=7..}] 射速 6 連 無 保
scoreboard players add @a[tag=狙擊,hasitem={item=music_disc_11,location=slot.weapon.mainhand}] 子彈 1 循 無 保
clear @a[tag=狙擊,scores={子彈=4}] music_disc_11 0 1 連 有 保
execute @a[tag=狙擊,hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§7狙擊槍§e3/"},{"score":{"name":"@s","objective":"子彈"}}]} 連 無 保
execute @e[type=fishing_hook] ~~~ scoreboard players test @p[r=2] 子彈 1 * 循 無 保
execute @e[type=fishing_hook] ~~~ scoreboard players remove @p[r=2] 子彈 1 連 有 保
execute @e[type=fishing_hook] ~~~ scoreboard players add @a[r=2,scores={子彈=1..}] 射速 6 連 有 保
execute @a[scores={射速=1..}] ~~100 ~ summon boat
execute @a[tag=狙擊,scores={射速=1..}] ~~100~ tp @e[type=boat,c=1,r=1] ^^^1.9 facing ~~~ 連 有 保
scoreboard players remove @a[scores={射速=1..}] 射速 1 連 無 保
execute @a[tag=狙擊,scores={射速=1..}] ~~~ playsound ambient.weather.lightning.impact @p ~ ~ ~ 100 3.5 100 連 無 保
execute @e[type=boat,tag=狙擊子彈] ~ ~-98.5 ~ particle minecraft:water_evaporation_bucket_emitter ~ ~ ~
execute @e[type=boat] ~ ~ ~ tp @s ^ ^ ^-2 循 無 保
execute @e[type=boat,tag=狙擊子彈] ~~-100~ damage @e[r=1.5] 900 projectile 連 無 保
execute @a[scores={射速=1..}] ~~~ particle minecraft:large_explosion ^^1.5^1.3 連 無 保
execute @a[tag=狙擊,scores={射速=1..}] ~~~ tag @e[type=boat] add 狙擊子彈