Procházet zdrojové kódy

暂时删除 state 调试信息

LTCatt před 6 roky
rodič
revize
0a44e4665d

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

@@ -12,6 +12,4 @@ team modify player friendlyFire false
 gamerule fallDamage false
 
 # 清理加载区域
-forceload remove all
-
-say state 0!
+forceload remove all

+ 1 - 3
data/ltw/functions/state/3/state_enter.mcfunction

@@ -18,6 +18,4 @@ execute store result score $mini_type mem run data get storage ltw:mini types[0]
 data remove storage ltw:mini types[0]
 
 # 初始化小游戏
-function mini:main/game_init
-
-say state 3!
+function mini:main/game_init

+ 1 - 3
data/ltw/functions/state/4/state_enter.mcfunction

@@ -8,6 +8,4 @@ scoreboard objectives setdisplay sidebar total_score
 scoreboard objectives setdisplay list total_score_disp
 
 # 初始化倒计时
-scoreboard players set $countdown mem 7
-
-say state 4!
+scoreboard players set $countdown mem 7

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

@@ -3,6 +3,4 @@ scoreboard players set $state mem 5
 execute as @a run function ltw:state/5/player_enter
 
 # 调用游戏开始
-function mini:main/game_start
-
-say state 5!
+function mini:main/game_start

+ 1 - 3
data/ltw/functions/state/6/state_enter.mcfunction

@@ -8,6 +8,4 @@ scoreboard objectives setdisplay sidebar total_score
 scoreboard objectives setdisplay list total_score_disp
 
 # 初始化倒计时
-scoreboard players set $countdown mem 5
-
-say state 6!
+scoreboard players set $countdown mem 5

+ 1 - 3
data/ltw/functions/state/7/state_enter.mcfunction

@@ -16,6 +16,4 @@ setblock 0 11 2000 minecraft:redstone_block
 
 # 判断进入下一轮小游戏或结束
 execute if score $game_type mem matches 1 if score $round mem matches ..5 run function ltw:state/7/continue_gameparty
-execute if score $game_type mem matches 1 if score $round mem matches 6.. run function ltw:main/game_end
-
-say state 7!
+execute if score $game_type mem matches 1 if score $round mem matches 6.. run function ltw:main/game_end

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

@@ -11,10 +11,11 @@ execute if score $mini_type mem matches 4 run scoreboard objectives setdisplay b
 execute if score $mini_type mem matches 5 run scoreboard objectives setdisplay sidebar health_disp
 execute if score $mini_type mem matches 5 run scoreboard objectives setdisplay belowName health_disp
 scoreboard objectives setdisplay list total_score_disp
-# TODO : [LTCat] 添加 list HUD 统一
 
 # 调用其他模块
 execute if score $mini_type mem matches 2 run function mini:tntrun/game_start
 execute if score $mini_type mem matches 3 run function mini:hotpm/game_start
 execute if score $mini_type mem matches 4 run function mini:colormatch/game_start
 execute if score $mini_type mem matches 5 run function mini:zombie/game_start
+
+# FIXME : 从状态 7 转到游戏结束的时候触发了状态 3

+ 3 - 3
data/test/functions/fast_countdown.mcfunction

@@ -1,4 +1,4 @@
-# 测试用:将倒计时修改为 2 秒
+# 测试用:将倒计时修改为 1 秒
 
-scoreboard players set $countdown mem 2
-scoreboard players set $countdown_fast mem 20
+scoreboard players set $countdown mem 1
+scoreboard players set $countdown_fast mem 10