Ver Fonte

修复铁进度

龙腾猫跃 há 3 anos atrás
pai
commit
0a985546fe

+ 6 - 0
data/mini/functions/iron/tick20.mcfunction

@@ -23,3 +23,9 @@ execute if score $countdown mem matches 0 run function mini:main/game_end
 # 回复生命值
 execute if score $foursec mem matches 1 run effect give @a[team=playing] regeneration 1 10 true
 execute if score $foursec mem matches 1 run schedule function mini:iron/game/clear_effect 1t replace
+
+# 给予进度
+advancement grant @a[team=playing,scores={iron_count=15..}] only ltw:blood/iron1
+advancement grant @a[team=playing,scores={iron_count=25..}] only ltw:blood/iron2
+advancement grant @a[team=playing,scores={iron_count=35..}] only ltw:blood/iron3
+advancement grant @a[team=playing,scores={iron_count=50..}] only ltw:blood/iron4

+ 6 - 0
data/mini/functions/phantom/tick20.mcfunction

@@ -1,4 +1,10 @@
 
+# 给予进度
+execute as @a[team=playing,scores={temp=1..,kill_phantom=8}] run advancement grant @s only ltw:blood/phantom1
+execute as @a[team=playing,scores={temp=1..,kill_phantom=16}] run advancement grant @s only ltw:blood/phantom2
+execute as @a[team=playing,scores={temp=1..,kill_phantom=24}] run advancement grant @s only ltw:blood/phantom3
+execute as @a[team=playing,scores={temp=1..,kill_phantom=32}] run advancement grant @s only ltw:blood/phantom4
+
 # 召唤幻翼
 execute if score $countdown mem matches 11.. run function mini:phantom/game/try_summon
 

+ 0 - 6
data/mini/functions/phantom/tick5.mcfunction

@@ -8,9 +8,3 @@ execute as @a[team=playing,scores={temp=1..,kill_phantom2=1..}] run function lib
 execute as @a[team=playing,scores={temp=1..,kill_phantom2=0}] run function lib:sounds/levelup
 execute as @a[team=playing,scores={temp=1..,kill_phantom2=0}] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"}," 已击杀 ",{"score": { "name": "@s","objective": "kill_phantom"},"color":"gold"}," 只幻翼!"]
 execute as @a[team=playing] run scoreboard players operation @s kill_phantom2 = @s kill_phantom
-
-# 给予进度
-execute as @a[team=playing,scores={temp=1..,kill_phantom=8}] run advancement grant @s only ltw:blood/phantom1
-execute as @a[team=playing,scores={temp=1..,kill_phantom=16}] run advancement grant @s only ltw:blood/phantom2
-execute as @a[team=playing,scores={temp=1..,kill_phantom=24}] run advancement grant @s only ltw:blood/phantom3
-execute as @a[team=playing,scores={temp=1..,kill_phantom=32}] run advancement grant @s only ltw:blood/phantom4