Sfoglia il codice sorgente

修复color match跨回合检测失败

HerobrineXia 6 anni fa
parent
commit
ff41dab9a3

+ 5 - 1
data/mini/functions/colormatch/tick2.mcfunction

@@ -1,8 +1,12 @@
 
+# 检测玩家死亡
+execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ magma_block run function mini:colormatch/player_lose_heart
+execute as @a[tag=mini_running] at @s if block ~ ~-2 ~ magma_block run function mini:colormatch/player_lose_heart
+
 # 开始新的一轮
 execute if score $countdown_fast mem matches 0 if score $color_match_type mem matches 0 run function mini:colormatch/game/remove_ground
 execute if score $countdown_fast mem matches 0 if score $color_match_type mem matches 1 run function mini:colormatch/game/start_new_round
 
 # 显示当前剩余秒数
 execute if score $countdown_fast mem matches 1.. if score $color_match_type mem matches 0 run title @a actionbar [{"text":"地板消失: ","color":"red","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
-execute if score $countdown_fast mem matches 1.. if score $color_match_type mem matches 1 run title @a actionbar [{"text":"下一轮: ","color":"green","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
+execute if score $countdown_fast mem matches 1.. if score $color_match_type mem matches 1 run title @a actionbar [{"text":"下一轮: ","color":"green","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]

+ 0 - 1
data/mini/functions/colormatch/tick5.mcfunction

@@ -1 +0,0 @@
-execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ magma_block run function mini:colormatch/player_lose_heart

+ 0 - 1
data/mini/functions/main/tick5.mcfunction

@@ -3,7 +3,6 @@
 execute if score $mini_type mem matches 1 run function mini:parkour/tick5
 execute if score $mini_type mem matches 2 run function mini:tntrun/tick5
 execute if score $mini_type mem matches 3 run function mini:hotpm/tick5
-execute if score $mini_type mem matches 4 run function mini:colormatch/tick5
 
 # 同步生命值
 scoreboard players reset * health_disp

+ 1 - 3
data/mini/functions/zombie/tick20.mcfunction

@@ -19,6 +19,4 @@ effect give @e[type=zombie,limit=1,sort=random] slowness 2 1
 
 # 召唤怪物
 execute if score $random mem matches -5..5 run function mini:zombie/game/summon_zombie
-execute if score $random mem matches ..-8 run function mini:zombie/game/summon_skeleton
-
-# FIXME : 僵尸游戏旁观者没夜视
+execute if score $random mem matches ..-8 run function mini:zombie/game/summon_skeleton