浏览代码

修复进度不重置的 Bug

LTCatt 6 年之前
父节点
当前提交
31e37053d2

+ 2 - 0
data/ltw/functions/init.mcfunction

@@ -30,6 +30,8 @@ team add ltw "龙猫战争3"
 team modify ltw color white
 team modify ltw collisionRule never
 
+# 进度
+advancement revoke @a everything
 
 # 时钟
 schedule function ltw:clock/tick2 2t replace

+ 1 - 0
data/ltw/functions/main/player_enter.mcfunction

@@ -1,5 +1,6 @@
 # 当玩家加入游戏时触发
 team join ltw @s
+advancement revoke @s everything
 
 # 如果是旁观者或局号不对头:开始旁观
 execute if entity @s[tag=watcher] run function ltw:main/player_enter_watcher

+ 2 - 2
data/mini/functions/hotpm/tick2.mcfunction

@@ -1,6 +1,6 @@
 # 土豆倒计时
-title @a[tag=pm_hoding] actionbar [{"text":"土豆爆炸: ","color":"red","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
-title @a[tag=!pm_hoding] actionbar [{"text":"土豆爆炸: ","color":"green","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
+execute if score $countdown_fast mem matches 1.. run title @a[tag=pm_hoding] actionbar [{"text":"土豆爆炸: ","color":"red","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
+execute if score $countdown_fast mem matches 1.. run title @a[tag=!pm_hoding] actionbar [{"text":"土豆爆炸: ","color":"green","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
 
 # 爆炸
 execute if score $countdown_fast mem matches 0 as @a[tag=pm_hoding] at @s run function mini:hotpm/game/pm_boom