Ver código fonte

修复tntrun死亡标记层数

HerobrineXia 6 anos atrás
pai
commit
36bd46d719

+ 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