Преглед на файлове

修复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