@@ -6,3 +6,6 @@ execute as @a run function ltw:state/5/player_enter
execute if score $mini_type mem matches ..2 run scoreboard objectives setdisplay sidebar
execute if score $mini_type mem matches 3 run scoreboard objectives setdisplay sidebar mini_heart
scoreboard objectives setdisplay list total_score
+
+# 调用游戏开始
+function mini:main/game_start
@@ -19,7 +19,7 @@ scoreboard players set $color_match_type mem 0
# 刷新地基
function mini:colormatch/prepare_round
-schedule function mini:colormatch/start_new_round 28t replace
+schedule function mini:colormatch/game_init2 28t replace
# 关闭伤害
gamerule fallDamage false
@@ -0,0 +1,4 @@
+# 替换墙壁
+function mini:colormatch/replace_wall
+# 复制地板
+execute positioned 1001 10 4000 run clone ~ ~ ~ ~24 ~ ~24 1050 15 4000
@@ -0,0 +1,2 @@
+# 开始轮次
+function mini:colormatch/start_new_round
@@ -24,4 +24,4 @@ scoreboard players set @s mini_heart 3
function mini:main/player_max_health
# 重新加入处理
-execute if entity @s[tag=rejoining] run function mini:hotpm/player_failed
+execute if entity @s[tag=rejoining] run function mini:hotpm/player_failed
@@ -18,4 +18,4 @@ tag @a[tag=color_match_fall] remove color_match_fall
# TODO 告知玩家是啥方块
# 告知玩家
-tellraw @a [{"text":">> ","color":"gold","bold": true},{"text":" 新的一轮开始了!","color":"white","bold": false}]
+tellraw @a [{"text":">> ","color":"gold","bold": true},{"text":"新的一轮开始了!","color":"white","bold": false}]
+# 调用其他模块
+execute if score $mini_type mem matches 4 run function mini:colormatch/game_start