player_enter.mcfunction 1.0 KB

123456789101112131415161718192021
  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 red_dye{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 201 run function mini:ass/player_enter
  17. execute if score $mini_type mem matches 101 run function mini:diamond/player_enter
  18. execute if score $mini_type mem matches 102 run function mini:trade/player_enter