player_enter.mcfunction 513 B

123456789
  1. # 单个玩家开始小游戏时执行
  2. tag @s[tag=!watcher] add mini_running
  3. scoreboard players set @s[tag=!watcher] mini_score 0
  4. scoreboard players set @s[tag=watcher] mini_score -9999999
  5. execute if score $mini_type mem matches 1 run function mini:parkour/player_enter
  6. execute if score $mini_type mem matches 2 run function mini:tntrun/player_enter
  7. execute if score $mini_type mem matches 3 run function mini:hotpm/player_enter
  8. execute if score $mini_type mem matches 4 run function mini:colormatch/player_enter