소스 검색

修改判断逻辑

HerobrineXia 6 년 전
부모
커밋
b8cfad632a
1개의 변경된 파일과 2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      data/mini/functions/slime/game/damage_taken.mcfunction

+ 2 - 3
data/mini/functions/slime/game/damage_taken.mcfunction

@@ -1,4 +1,3 @@
 execute as @a[tag=mini_running] store result score @s UUID run data get entity @s UUID[0]
-tag @s add self_hurt
-execute as @a[tag=mini_running,tag=!self_hurt] if score @s UUID = $slime_last_hit mem run say 我打到人要加分!
-tag @s remove self_hurt
+scoreboard players reset @s UUID
+execute as @a[tag=mini_running] if score @s UUID = $slime_last_hit mem run say 我打到人要加分!