# 对单个玩家的处理(如果玩家中途加入就会执行此函数) function lib:sounds/music/rest title @s clear title @s actionbar "" # 显示 Title title @s times 5 53 2 title @s subtitle "" title @s title "选择奖励" # 重置玩家血量上限 attribute @s generic.max_health base set 20 # 状态效果 effect clear @s effect give @s saturation 1000000 0 true gamerule naturalRegeneration true effect give @s night_vision 1000000 0 true # 显示小游戏结果 function mini:main/show_result execute at @s run function lib:sounds/levelup # 自由旁观 gamemode spectator @s[team=!debugging] spectate # 清理物品 clear @s #mini:game_item{game_item:1b} clear @s red_dye{LockItem:1b} recipe take @s *