LTCatt 6 vuotta sitten
vanhempi
sitoutus
41c639b42a

+ 4 - 0
data/ltw/functions/clock/tick20.mcfunction

@@ -14,6 +14,10 @@ execute if score $state mem matches 7 run function ltw:state/7/tick20
 execute if score $countdown mem matches 1.. run scoreboard players remove $countdown mem 1
 scoreboard players remove @e[scores={countdown=1..}] countdown 1
 
+# 两秒一次的支持
+scoreboard players add $twice mem 1
+execute if score $twice mem matches 2.. run scoreboard players set $twice mem 0
+
 # 掐死原版 BGM
 stopsound @a music music.game
 stopsound @a music music.creative

+ 1 - 1
data/mini/functions/slime/game/set_attack.mcfunction

@@ -1 +1 @@
-execute as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 6
+execute as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 5

+ 2 - 2
data/mini/functions/slime/tick20.mcfunction

@@ -11,5 +11,5 @@ execute if score $countdown mem matches 10 run tellraw @a ["",{"text": ">> ","co
 execute if score $countdown mem matches 0 run function mini:main/game_end
 
 # 回复生命值
-effect give @a regeneration 1 10 true
-schedule function mini:slime/game/clear_effect 1t replace
+execute if score $twice mem matches 1 run effect give @a regeneration 1 10 true
+execute if score $twice mem matches 1 run schedule function mini:slime/game/clear_effect 1t replace