player_enter.mcfunction 800 B

123456789101112131415
  1. # 单个玩家开始小游戏时执行
  2. tag @s remove mini_running
  3. tag @s[tag=!rejoining,tag=!watcher] add mini_running
  4. scoreboard players set @s mini_score 0
  5. scoreboard players set @s[tag=rejoining] mini_score -1000
  6. scoreboard players set @s[tag=watcher] mini_score -1000000
  7. function mini:main/update_player_count
  8. execute if score $mini_type mem matches 1 run function mini:parkour/player_enter
  9. execute if score $mini_type mem matches 2 run function mini:tntrun/player_enter
  10. execute if score $mini_type mem matches 3 run function mini:hotpm/player_enter
  11. execute if score $mini_type mem matches 4 run function mini:colormatch/player_enter
  12. execute if score $mini_type mem matches 5 run function mini:zombie/player_enter
  13. execute if score $mini_type mem matches 6 run function mini:phantom/player_enter