player_enter.mcfunction 890 B

12345678910111213141516171819
  1. # 单个玩家开始小游戏时执行
  2. tag @s remove mini_running
  3. tag @s[tag=!rejoining,team=playing] 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[team=watching] mini_score -1000000
  7. function mini:main/update_player_count
  8. clear @s #mini:game_item{game_item:1b}
  9. clear @s barrier{LockItem:1b}
  10. recipe take @s *
  11. execute if score $mini_type mem matches 1 run function mini:parkour/player_enter
  12. execute if score $mini_type mem matches 2 run function mini:tntrun/player_enter
  13. execute if score $mini_type mem matches 3 run function mini:hotpm/player_enter
  14. execute if score $mini_type mem matches 4 run function mini:colormatch/player_enter
  15. execute if score $mini_type mem matches 5 run function mini:phantom/player_enter
  16. execute if score $mini_type mem matches 6 run function mini:diamond/player_enter