具体的改进措施是这样的:
tri中有这样的一段
- scoreboard players set AB c 0
- #scoreboard players set mb c -1
- scoreboard players operation AB c = counta c
- scoreboard players operation AB c *= countb c
- execute as @e[tag=B] run scoreboard players operation @s c *= countb c
- execute as @e[tag=B] run scoreboard players operation @s c -= AB c
- #execute as @e[tag=B] run scoreboard players operation @s c *= mb c
复制代码
里面标有#的两行是将这个积分板的值乘以-1 但我仔细想过之后觉得没必要 请您也把他们去掉
当然 之后的tri___里的-=要改成+=,0..要改成..0
这样就能省掉这次运算了 |