我的世界无实体枪械指令,二次优化

2.苦苦编辑了一会儿,需要的话自己拿去看。
[枪械伤害升级模块]♥
scoreboard players add @a[scores={qx种类=1},hasitem={item=heart_of_the_sea,quantity=1..,location=slot.hotbar}] 手枪 3
scoreboard players add @a[scores={qx种类=2},hasitem={item=heart_of_the_sea,quantity=1..,location=slot.hotbar}] 步枪 2
scoreboard players add @a[scores={qx种类=3},hasitem={item=heart_of_the_sea,quantity=1..,location=slot.hotbar}] 狙击 4
scoreboard players add @a[scores={qx种类=4},hasitem={item=heart_of_the_sea,quantity=1..,location=slot.hotbar}] 冲锋枪 1
tellraw @a[scores={qx种类=1},hasitem={item=heart_of_the_sea,quantity=1..,location=slot.hotbar}] {"rawtext":[{"text":"§l§o§b手枪§c伤害+3"}]}
tellraw @a[scores={qx种类=2},hasitem={item=heart_of_the_sea,quantity=1..,location=slot.hotbar}] {"rawtext":[{"text":"§l§o§b步枪§c伤害+2"}]}
tellraw @a[scores={qx种类=3},hasitem={item=heart_of_the_sea,quantity=1..,location=slot.hotbar}] {"rawtext":[{"text":"§l§o§b狙枪§c伤害+4"}]}
[激活枪械一些记分板]♥
scoreboard players add @a 状态 0
scoreboard players add @a 自动 0
scoreboard players add @a 射速 0
scoreboard players add @a 换弹 0
scoreboard players add @a 弹夹 0
scoreboard players add @a 弹夹a 0
scoreboard players add @a 弹夹b 0
scoreboard players add @a 弹夹c 0
scoreboard players add @a 弹夹d 0
[枪械准星]♥
title @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand}] title §r
title @a[scores={qx种类=1,弹夹=1..},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] subtitle §b〒
§c
title @a[scores={qx种类=2,弹夹=1..},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] subtitle §b+
§c
title @a[scores={qx种类=3,弹夹=1..},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] subtitle §a⨀
§c
title @a[scores={qx种类=4,弹夹=1..},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] subtitle §a◸ ◹
◺ ◿
[匹配枪械伤害]♥
execute @a[scores={qx种类=1},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 伤害=@s 手枪
execute @a[scores={qx种类=2},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 伤害=@s 步枪
execute @a[scores={qx种类=3},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 伤害=@s 狙枪
execute @a[scores={qx种类=4},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 伤害=@s 冲锋枪
§c
title @a times 0 40 0
[匹配枪械伤害]♥
execute @a[scores={qx种类=1},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 伤害=@s 手枪
execute @a[scores={qx种类=2},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 伤害=@s 步枪
execute @a[scores={qx种类=3},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 伤害=@s 狙枪
execute @a[scores={qx种类=4},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 伤害=@s 冲锋枪
[开枪]♥
tellraw @a[scores={自动=0,qx种类=!3},rx=-88] {"rawtext":[{"text":"§l§o§b您开启了§c连射"}]}
scoreboard players set @a[rx=-88] 自动 1
tellraw @a[scores={自动=3,qx种类=!3},rxm=88] {"rawtext":[{"text":"§l§o§e您关闭了§c连射"}]}
scoreboard players set @a[rxm=88] 自动 0
execute @e[type=minecraft:fishing_hook] ~~~ tag @a[scores={弹夹=1..,射速=0},r=2,hasitem={item=fishing_rod,location=slot.weapon.mainhand}] add 射击
execute @e[type=minecraft:fishing_hook] ~~~ tag @a[scores={弹夹=1..,射速=0},r=2,hasitem={item=fishing_rod,location=slot.weapon.mainhand}] add 射击a
execute @e[type=minecraft:fishing_hook] ~~~ scoreboard players add @a[scores={弹夹=1..,射速=0,自动=1..},r=2,hasitem={item=fishing_rod,location=slot.weapon.mainhand}] 自动 1
scoreboard players set @a[scores={自动=4}] 自动 2
scoreboard players add @a[scores={弹夹=1..,射速=0},tag=射击,tag=射击a] 射速 100
[开枪]♥
tellraw @a[scores={自动=0,qx种类=!3},rx=-88] {"rawtext":[{"text":"§l§o§b您开启了§c连射"}]}
scoreboard players set @a[rx=-88] 自动 1
tellraw @a[scores={自动=3,qx种类=!3},rxm=88] {"rawtext":[{"text":"§l§o§e您关闭了§c连射"}]}
scoreboard players set @a[rxm=88] 自动 0
execute @e[type=minecraft:fishing_hook] ~~~ tag @a[scores={弹夹=1..,射速=0},r=2,hasitem={item=fishing_rod,location=slot.weapon.mainhand}] add 射击
execute @e[type=minecraft:fishing_hook] ~~~ tag @a[scores={弹夹=1..,射速=0},r=2,hasitem={item=fishing_rod,location=slot.weapon.mainhand}] add 射击a
execute @e[type=minecraft:fishing_hook] ~~~ scoreboard players add @a[scores={弹夹=1..,射速=0,自动=1..},r=2,hasitem={item=fishing_rod,location=slot.weapon.mainhand}] 自动 1
scoreboard players set @a[scores={自动=4}] 自动 2
scoreboard players add @a[scores={弹夹=1..,射速=0},tag=射击,tag=射击a] 射速 100
[音效]♥
execute @a[tag=射击,scores={qx种类=1}] ~~~ playsound mob.zombie.woodbreak @a[r=30] ~~~ 1 2
execute @a[tag=射击,scores={qx种类=2}] ~~~ playsound mob.zombie.wood @a[r=30] ~~~ 1 5
execute @a[tag=射击,scores={qx种类=3}] ~~~ playsound random.explode @a[r=30] ~ ~ ~ 1 2
execute @a[tag=射击,scores={qx种类=4}] ~~~ playsound tile.piston.out @a[r=30] ~~~ 1 2
[视角摇晃]♥
execute @a[tag=射击,scores={qx种类=1}] ~~~ camerashake add @s 2 0.5 positional
execute @a[tag=射击,scores={qx种类=2}] ~~~ camerashake add @s 2 0.2 positional
execute @a[tag=射击,scores={qx种类=3}] ~~~ camerashake add @s 2 0.8 positional
execute @a[tag=射击,scores={qx种类=4}] ~~~ camerashake add @s 2 0.05 positional
[扣除子弹]♥
scoreboard players remove @a[tag=射击,scores={qx种类=1}] 弹夹a 1
scoreboard players remove @a[tag=射击,scores={qx种类=2}] 弹夹b 1
scoreboard players remove @a[tag=射击,scores={qx种类=3}] 弹夹c 1
scoreboard players remove @a[tag=射击,scores={qx种类=4}] 弹夹d 1
[匹配弹夹容量]♥
execute @a[scores={qx种类=1},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 弹夹=@s 弹夹a
execute @a[scores={qx种类=2},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 弹夹=@s 弹夹b
execute @a[scores={qx种类=3},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 弹夹=@s 弹夹c
execute @a[scores={qx种类=4},hasitem={item=fishing_rod,location=slot.weapon.mainhand}] ~ ~ ~ scoreboard players operation @s 弹夹=@s 弹夹d
[停止自动射击]♥
scoreboard players set @a[scores={弹夹=0}] 自动 -1
[子弹射程]♥1
tag @a[tag=射击] remove 墙
execute @a[tag=射击] ^ ^1 ^0.5 detect ~ ~1 ~ air 0 tag @s add 墙
tag @a[tag=射击,tag=!墙] remove 射击
execute @a[tag=射击] ^ ^0.5 ^1 scoreboard players operation @e[r=1,c=1,tag=!射击a] 伤害a=@s 伤害
execute @a[tag=射击,scores={qx种类=1}] ^ ^1.5 ^1 particle minecraft:balloon_gas_particle ~~~
execute @a[tag=射击,scores={qx种类=2}] ^ ^1.5 ^1 particle minecraft:blue_flame_particle ~~~
execute @a[tag=射击,scores={qx种类=3}] ^ ^1.5 ^1 particle minecraft:basic_flame_particle ~~~
execute @a[tag=射击,scores={qx种类=4}] ^ ^1.5 ^1 particle minecraft:basic_crit_particle ~~~
tag @a[tag=射击] remove 墙
execute @a[tag=射击] ^ ^1 ^2 detect ~ ~1 ~ air 0 tag @s add 墙
tag @a[tag=射击,tag=!墙] remove 射击
子弹射程]♥2
execute @a[tag=射击] ^ ^0.5 ^2 scoreboard players operation @e[r=1,c=1,tag=!射击a] 伤害a=@s 伤害
execute @a[tag=射击,scores={qx种类=1}] ^ ^1.5 ^2 particle minecraft:balloon_gas_particle ~~~
execute @a[tag=射击,scores={qx种类=2}] ^ ^1.5 ^2 particle minecraft:blue_flame_particle ~~~
execute @a[tag=射击,scores={qx种类=3}] ^ ^1.5 ^2 particle minecraft:basic_flame_particle ~~~
execute @a[tag=射击,scores={qx种类=4}] ^ ^1.5 ^2 particle minecraft:basic_crit_particle ~~~
tag @a[tag=射击] remove 墙
execute @a[tag=射击] ^ ^1 ^3 detect ~ ~1 ~ air 0 tag @s add 墙
tag @a[tag=射击,tag=!墙] remove 射击
[部位]♥
scoreboard players random @e[scores={伤害a=1..}] 状态a 1 100
scoreboard players set @e[scores={状态a=1..8}] 状态 1
scoreboard players set @e[scores={状态a=9..57}] 状态 2
scoreboard players set @e[scores={状态a=58..100}] 状态 3
scoreboard players remove @e[scores={状态=1}] 头部 3
scoreboard players remove @e[scores={状态=2}] 身躯 3
scoreboard players remove @e[scores={状态=3}] 腿部 3
[扣除血量]♥
execute @e[scores={伤害a=120..},type=!item,type=!minecraft:fishing_hook] ~~~ damage @s 120 projectile entity @p[tag=射击a]
execute @e[scores={伤害a=120..}] ~~~ scoreboard players remove @s 伤害a 120
execute @e[scores={伤害a=60..},type=!item,type=!minecraft:fishing_hook] ~~~ damage @s 60 projectile entity @p[tag=射击a]
execute @e[scores={伤害a=60..}] ~~~ scoreboard players remove @s 伤害a 60
execute @e[scores={伤害a=30..},type=!item,type=!minecraft:fishing_hook] ~~~ damage @s 30 projectile entity @p[tag=射击a]
execute @e[scores={伤害a=30..}] ~~~ scoreboard players remove @s 伤害a 30
execute @e[scores={伤害a=16..},type=!item,type=!minecraft:fishing_hook] ~~~ damage @s 16 projectile entity @p[tag=射击a]
execute @e[scores={伤害a=16..}] ~~~ scoreboard players remove @s 伤害a 16
execute @e[scores={伤害a=8..},type=!item,type=!minecraft:fishing_hook] ~~~ damage @s 8 projectile entity @p[tag=射击a]
execute @e[scores={伤害a=8..}] ~~~ scoreboard players remove @s 伤害a 8
execute @e[scores={伤害a=4..},type=!item,type=!minecraft:fishing_hook] ~~~ damage @s 4 projectile entity @p[tag=射击a]
execute @e[scores={伤害a=4..}] ~~~ scoreboard players remove @s 伤害a 4
execute @e[scores={伤害a=2..},type=!item,type=!minecraft:fishing_hook] ~~~ damage @s 2 projectile entity @p[tag=射击a]
execute @e[scores={伤害a=2..}] ~~~ scoreboard players remove @s 伤害a 2
execute @e[scores={伤害a=1..},type=!item,type=!minecraft:fishing_hook] ~~~ damage @s 1 projectile entity @p[tag=射击a]
execute @e[scores={伤害a=1..}] ~~~ scoreboard players remove @s 伤害a 1
[跟换弹夹]♥
scoreboard players set @a[scores={换弹=0,qx种类=1,弹夹a=!12..},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 换弹 101
scoreboard players set @a[scores={换弹=0,qx种类=2,弹夹b=!26..},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 换弹 101
scoreboard players set @a[scores={换弹=0,qx种类=3,弹夹c=!7..},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 换弹 101
scoreboard players set @a[scores={换弹=0,qx种类=4,弹夹d=!38..},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 换弹 101
scoreboard players remove @a[scores={换弹=1..},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 换弹 1
scoreboard players set @a[scores={换弹=2,qx种类=1},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 弹夹a 12
scoreboard players set @a[scores={换弹=2,qx种类=2},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 弹夹b 26
scoreboard players set @a[scores={换弹=2,qx种类=3},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 弹夹c 7
scoreboard players set @a[scores={换弹=2,qx种类=4},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 弹夹d 38
scoreboard players remove @a[scores={换弹=1..},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] 换弹 1
clear @a[scores={换弹=1},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] netherite_ingot 0 1
scoreboard players set @a[scores={换弹=1}] 换弹 0
[狙击枪开镜设置]♥
tag @a[scores={qx种类=3},rxm=88] add 开镜
tag @a[rx=-88] remove 开镜
effect @a[tag=开镜] slowness 1 6 true
execute @a[tag=T显] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§o§a ▎§b––––––––––––––§e状态栏§b––––––––––––––§a▎§r"},{"translate":"%%7%%8","with":{"rawtext":[{"selector":"@s[scores={qx种类=..1}]"},{"selector":"@s[scores={qx种类=..1}]"},{"selector":"@s[scores={qx种类=..2}]"},{"selector":"@s[scores={qx种类=..2}]"},{"selector":"@s[scores={qx种类=..3}]"},{"selector":"@s[scores={qx种类=..3}]"},{"text":"\n§l§o §a┳
═ §e[§r"},{"text":"§l§o§d手 枪§r"},{"text":"\n§l§o §a︻┳═─- §e[§r"},{"text":"§l§o§d步 枪§r"},{"text":"\n§l§o §a▄︻┻┳══一一§e[§r"},{"text":"§l§o§d狙 枪§r"},{"text":"\n§l§o §a▛⊏▜◤▔▔ §
e[§r"},{"text":"§l§o§d冲锋枪§r"}]}},{"text":"§l§o§e] §b弹夹§r:"},{"score":{"name":"@s","objective":"弹夹"}},{"text":"§l§o§c伤害§r:"},{"score":{"name":"@s","objective":"伤害"}},{"text":"\n §7§f"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={状态=1}]"},{"text":"§c"}]}},{"text":"§l▇"},{"text":"
§l §b[§f头部§b] "},{"translate":"%%6","with":{"rawtext":[{"selector":"@s[scores={头部=90..}]"},{"selector":"@s[scores={头部=70..}]"},{"selector":"@s[scores={头部=50..}]"},{"selector":"@s[scores={头部=30..}]"},{"selector":"@s[scores={头部=10..}]"},{"text":"§l§o§a▅▅▅▅▅§r"},{"text":"§l§o§a▅▅▅▅§f▅§r"},{"text":"§l§o§e▅▅▅§f▅▅§r"},{"text":"§l§o§c▅▅§f▅▅▅§r"},{"text":"§l§o§c▅§f▅▅▅▅§r"},{"text":"§l§o§0▅▅▅▅▅§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={状态=2}]"},{"text":"§c"}]}},{"text":"\n ▌▉▌"},{"text":"§l §b[§f身躯§b] "},{"translate":"%%6","with":{"rawtext":[{"selector":"@s[scores={身躯=90..}]"},{"selector":"@s[scores={身躯=70..}]"},{"selector":"@s[scores={身躯=50..}]"},{"selector":"@s[scores={身躯=30..}]"},{"selector":"@s[scores={身躯=10..}]"},{"text":"§l§o§a▅▅▅▅▅§r"},{"text":"§l§o§a▅▅▅▅§f▅§r"},{"text":"§l§o§e▅▅▅§f▅▅§r"},{"text":"§l§o§c▅▅§f▅▅▅§r"},{"text":"§l§o§c▅§f▅▅▅▅§r"},{"text":"§l§o§0▅▅▅▅▅§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={状态=3}]"},{"text":"§c"}]}},{"text":"\n ▌▌"},{"text":"§l §b[§f腿部§b] "},{"translate":"%%6","with":{"rawtext":[{"selector":"@s[scores={腿部=90..}]"},{"selector":"@s[scores={腿部=70..}]"},{"selector":"@s[scores={腿部=50..}]"},{"selector":"@s[scores={腿部=30..}]"},{"selector":"@s[scores={腿部=10..}]"},{"text":"§l§o§a▅▅▅▅▅§r"},{"text":"§l§o§a▅▅▅▅§f▅§r"},{"text":"§l§o§e▅▅▅§f▅▅§r"},{"text":"§l§o§c▅▅§f▅▅▅§r"},{"text":"§l§o§c▅§f▅▅▅▅§r"},{"text":"§l§o§0▅▅▅▅▅§r"}]}},{"text":"\n §l§b.[§f换弹§b] "},{"translate":"%%7","with":{"rawtext":[{"selector":"@s[scores={换弹=..90}]"},{"selector":"@s[scores={换弹=..70}]"},{"selector":"@s[scores={换弹=..50}]"},{"selector":"@s[scores={换弹=..30}]"},{"selector":"@s[scores={换弹=..10}]"},{"selector":"@s[scores={换弹=0}]"},{"text":"§l§o§f▅▅▅▅▅§r"},{"text":"§l§o§d▅▅▅▅▅§r"},{"text":"§l§o§d▅▅▅▅§f▅§r"},{"text":"§l§o§d▅▅▅§f▅▅§r"},{"text":"§l§o§d▅▅§f▅▅▅§r"},{"text":"§l§o§d▅§f▅▅▅▅§r"},{"text":"§l§o§f▅▅▅▅▅§r"}]}}]}
[结尾]♥
replaceitem entity @a slot.hotbar 8 fishing_rod 1 0 {"item_lock":{"mode":"lock_in_slot"}}
replaceitem entity @a slot.hotbar 7 egg 16 0 {"item_lock":{"mode":"lock_in_slot"}}
tag @a add 死亡
tag @e[type=player] remove 死亡
tag @a[tag=死亡] add 死亡a
effect @e[type=player,tag=死亡a] health_boost 99999999 9 true
effect @e[type=player,tag=死亡a] instant_health 1 55 true
scoreboard players set @e[type=player,tag=死亡a] 头部 100
scoreboard players set @e[type=player,tag=死亡a] 身躯 100
scoreboard players set @e[type=player,tag=死亡a] 腿部 100
tag @e[type=player] remove 死亡a
tag @a[tag=墙] remove 墙
tag @a[tag=射击] remove 射击
tag @a[tag=射击a] remove 射击a
tag @a[tag=!射击a,scores={自动=2,射速=0}] add 射击a
tag @a[tag=!射击,scores={自动=2,射速=0}] add 射击
tag @a[tag=!墙,scores={自动=2}] add 墙
scoreboard players set @e[scoeffect @a[scores={头部=..49}] blindness 20 0 true
effect @a[scores={身躯=..49}] fatal_poison 1 0 true
effect @a[scores={头部=..10}] blindness 1 20 true
effect @a[scores={身躯=..10}] fatal_poison 1 20 true
effect @a[scores={腿部=..49}] slowness 1 0 true
effect @a[scores={腿部=..10}] slowness 1 6 true
kill @a[scores={头部=..1}]
kill @a[scores={身躯=..1}]
kill @a[scores={腿部=..1}]
kill @e[type=minecraft:fishing_hook]res={状态a=1..}] 状态a 0
scoreboard players set @e[scores={状态=1..}] 状态 0
枪械切换]♥
execute @e[type=egg] ~~~ scoreboard players add @p[r=2] qx种类 1
execute @e[type=egg] ~~~ scoreboard players add @p[r=2,scores={qx种类=3}] 自动 0
scoreboard players set @a[scores={qx种类=5..}] qx种类 1
execute @e[type=egg] ~~~ playsound block.end_portal_frame.fill @p[r=3] ~ ~ ~
execute @e[type=egg] ~~~ title @p[r=2,scores={qx种类=1}] actionbar §l§o§d◤§a手枪§d◢ §e 沙漠之鹰
§l§b射程§r:§c▊▊▊§f▊▊▊▊▊▊▊
§l§b射速§r:§c▊▊§f▊▊▊▊▊▊▊▊
§l§b弹夹§r:§c▊▊§f▊▊▊▊▊▊▊▊
execute @e[type=egg] ~~~ title @p[r=2,scores={qx种类=2}] actionbar §l§o§d◤§a步枪§d◢ §e M416步枪
§l§b射程§r:§c▊▊▊▊▊▊§f▊▊▊▊
§l§b射速§r:§c▊▊▊▊▊▊▊§f▊▊▊
§l§b弹夹§r:§c▊▊▊▊§f▊▊▊▊▊▊
execute @e[type=egg] ~~~ title @p[r=2,scores={qx种类=3}] actionbar §l§o§d◤§a狙枪§d◢ §e Kar98k狙击枪
§l§b射程§r:§c▊▊▊▊▊▊▊▊▊▊
§l§b射速§r:§c▊§f▊▊▊▊▊▊▊▊▊
§l§b弹夹§r:§c▊§f▊▊▊▊▊▊▊▊▊
execute @e[type=egg] ~~~ title @p[r=2,scores={qx种类=4}] actionbar §l§o§d◤§a冲锋枪§d◢ §e MP5K冲锋枪
§l§b射程§r:§c▊▊▊▊§f▊▊▊▊▊▊
§l§b射速§r:§c▊▊▊▊▊▊▊▊§f▊▊
§l§b弹夹§r:§c▊▊▊▊▊▊▊§f▊▊▊
kill @e[type=egg]
[每2秒回复身体状态,第一个循环,延迟40,后面均为连锁,无条件0延迟]♥
scoreboard players add @a[scores={头部=..99}] 头部 1
scoreboard players add @a[scores={身躯=..99}] 身躯 1
scoreboard players add @a[scores={腿部=..99}] 腿部 1
execute @a[scores={换弹=2},hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] ~~~ playsound armor.equip_gold @a[r=10] ~ ~ ~
tag @a remove T显
tag @a[hasitem={item=netherite_ingot,quantity=1..,location=slot.weapon.mainhand}] add T显
tag @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand}] add T显
都看到这里了,给个赞吧。