tick5.mcfunction 665 B

123456789101112
  1. # 显示层数
  2. scoreboard players reset * temp
  3. execute as @a[tag=mini_running] at @s if entity @s[y=35,dy=10] run scoreboard players set @s temp 4
  4. execute as @a[tag=mini_running] at @s if entity @s[y=30,dy=3] run scoreboard players set @s temp 3
  5. execute as @a[tag=mini_running] at @s if entity @s[y=25,dy=3] run scoreboard players set @s temp 2
  6. execute as @a[tag=mini_running] at @s if entity @s[y=20,dy=3] run scoreboard players set @s temp 1
  7. execute as @a[tag=mini_running] run scoreboard players operation @s layer = @s temp
  8. # 进度判断
  9. tag @a[scores={layer=1}] add layer_bottom
  10. advancement grant @a[tag=layer_bottom,scores={layer=4}] only ltw:parkour/tnt3