소스 검색

修复tntrun死亡标记层数

HerobrineXia 6 년 전
부모
커밋
36bd46d719
2개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      data/mini/functions/tntrun/player_failed.mcfunction
  2. 1 1
      data/mini/functions/tntrun/tick2.mcfunction

+ 1 - 0
data/mini/functions/tntrun/player_failed.mcfunction

@@ -3,3 +3,4 @@ function mini:main/player_failed
 
 # 玩家死亡
 tag @s remove tntrun_pc
+scoreboard players reset @s layer

+ 1 - 1
data/mini/functions/tntrun/tick2.mcfunction

@@ -13,4 +13,4 @@ execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ magma_block run function
 execute as @a[tag=mini_running] at @s if entity @s[y=35,dy=10] run scoreboard players set @s layer 4
 execute as @a[tag=mini_running] at @s if entity @s[y=30,dy=3] run scoreboard players set @s layer 3
 execute as @a[tag=mini_running] at @s if entity @s[y=25,dy=3] run scoreboard players set @s layer 2
-execute as @a[tag=mini_running] at @s if entity @s[y=20,dy=3] run scoreboard players set @s layer 1
+execute as @a[tag=mini_running] at @s if entity @s[y=20,dy=3] run scoreboard players set @s layer 1