@@ -8,3 +8,5 @@ scoreboard players operation $random_max mem -= $random_min mem
scoreboard players add $random_max mem 1
scoreboard players operation $random mem %= $random_max mem
scoreboard players operation $random mem += $random_min mem
+
+# TODO : 重置血量上限
@@ -12,5 +12,5 @@ effect give @s night_vision 1000000 0 true
function mini:main/player_intro
# 自由旁观
-gamemode spectator @s
+gamemode spectator
spectate
@@ -1,6 +1,2 @@
# 对单个玩家的处理(如果玩家中途加入就会执行此函数)
-gamemode creative
-title @s clear
-
-# 使用小游戏的其他项目
function mini:main/player_enter
@@ -1,6 +1,6 @@
gamemode creative
+title @s clear
# 状态效果
effect clear @s
@@ -12,5 +12,6 @@ effect give @s resistance 1000000 4 true
# 传送玩家
tp @s 7.0 11.4 2007.0 0 0
-# 调整模式
-gamemode spectator
+# 自由旁观
+spectate
# 单个玩家开始小游戏时执行