我的世界多类型鱼竿枪

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 狙击子弹