LTCatt 6 лет назад
Родитель
Сommit
a4d44d108a

+ 1 - 1
data/mini/functions/slime/game/damage_taken.mcfunction

@@ -1,3 +1,3 @@
 execute as @a[tag=mini_running] store result score @s UUID run data get entity @s UUID[0]
 scoreboard players reset @s UUID
-execute as @a[tag=mini_running] if score @s UUID = $slime_last_hit mem at @s run function mini:slime/game/get_score
+execute as @a[tag=mini_running,tag=!watcher,gamemode=!spectator] if score @s UUID = $slime_last_hit mem at @s run function mini:slime/game/get_score

+ 5 - 5
data/mini/functions/slime/game/get_score.mcfunction

@@ -1,7 +1,7 @@
 scoreboard players add @s slime_score 1
 
-execute as @a[tag=!watcher] run scoreboard players operation @s temp = @s slime_score
-execute as @a[tag=!watcher] run scoreboard players operation @s temp %= #const_5 mem
-execute as @a[tag=!watcher,scores={temp=1..}] run function lib:sounds/hit
-execute as @a[tag=!watcher,scores={temp=0}] run function lib:sounds/levelup
-execute as @a[tag=!watcher,scores={temp=0}] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"}," 已获得 ",{"score": { "name": "@s","objective": "kill_phantom"},"color":"gold"},{"text":" 分","color":"gold"}]
+scoreboard players operation @s temp = @s slime_score
+scoreboard players operation @s temp %= #const_5 mem
+execute as @s[scores={temp=1..}] run function lib:sounds/hit
+execute as @s[scores={temp=0}] run function lib:sounds/levelup
+execute as @s[scores={temp=0}] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"}," 已获得 ",{"score": { "name": "@s","objective": "slime_score"},"color":"gold"},{"text":" 分","color":"gold"}]