Parcourir la source

color match测试4

HerobrineXia il y a 6 ans
Parent
commit
7dc58675e4

+ 3 - 0
data/ltw/functions/state/5/state_enter.mcfunction

@@ -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 ..2 run scoreboard objectives setdisplay sidebar
 execute if score $mini_type mem matches 3 run scoreboard objectives setdisplay sidebar mini_heart
 execute if score $mini_type mem matches 3 run scoreboard objectives setdisplay sidebar mini_heart
 scoreboard objectives setdisplay list total_score
 scoreboard objectives setdisplay list total_score
+
+# 调用游戏开始
+function mini:main/game_start

+ 1 - 1
data/mini/functions/colormatch/game_init.mcfunction

@@ -19,7 +19,7 @@ scoreboard players set $color_match_type mem 0
 
 
 # 刷新地基
 # 刷新地基
 function mini:colormatch/prepare_round
 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
 gamerule fallDamage false

+ 4 - 0
data/mini/functions/colormatch/game_init2.mcfunction

@@ -0,0 +1,4 @@
+# 替换墙壁
+function mini:colormatch/replace_wall
+# 复制地板
+execute positioned 1001 10 4000 run clone ~ ~ ~ ~24 ~ ~24 1050 15 4000

+ 2 - 0
data/mini/functions/colormatch/game_start.mcfunction

@@ -0,0 +1,2 @@
+# 开始轮次
+function mini:colormatch/start_new_round

+ 1 - 1
data/mini/functions/colormatch/player_enter.mcfunction

@@ -24,4 +24,4 @@ scoreboard players set @s mini_heart 3
 function mini:main/player_max_health
 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

+ 1 - 1
data/mini/functions/colormatch/start_new_round.mcfunction

@@ -18,4 +18,4 @@ tag @a[tag=color_match_fall] remove color_match_fall
 
 
 # TODO 告知玩家是啥方块
 # 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}]

+ 2 - 0
data/mini/functions/main/game_start.mcfunction

@@ -0,0 +1,2 @@
+# 调用其他模块
+execute if score $mini_type mem matches 4 run function mini:colormatch/game_start