tick5.mcfunction 532 B

1234567891011
  1. # 触发单个模块
  2. execute if score $mini_type mem matches 1 run function mini:parkour/tick5
  3. execute if score $mini_type mem matches 2 run function mini:tntrun/tick5
  4. execute if score $mini_type mem matches 3 run function mini:hotpm/tick5
  5. execute if score $mini_type mem matches 4 run function mini:colormatch/tick5
  6. # 同步生命值
  7. scoreboard players reset * health_disp
  8. scoreboard players set @a[gamemode=!spectator] health_disp 20
  9. execute as @a[gamemode=!spectator] run scoreboard players operation @s health_disp = @s health