소스 검색

测试史莱姆判定

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

+ 2 - 1
data/mini/functions/main/damage_dealt.mcfunction

@@ -1,2 +1,3 @@
 # 检测分数调用对应函数
-execute if score $mini_type mem matches 3 run function mini:hotpm/game/damage_dealt
+execute if score $mini_type mem matches 3 run function mini:hotpm/game/damage_dealt
+execute if score $mini_type mem matches 7 run function mini:slime/game/damage_dealt

+ 2 - 0
data/mini/functions/slime/game/damage_dealt.mcfunction

@@ -0,0 +1,2 @@
+say 我打了个东西
+tellraw @a [{"text":"我打的的是:"},{"selector": "@e[type=slime,nbt={HurtTime:10s}]"}]