Kaynağa Gözat

加快史莱姆游戏节奏

LTCatt 6 yıl önce
ebeveyn
işleme
50ace07977

+ 1 - 1
data/ltw/functions/state/0/try_start_game.mcfunction

@@ -8,4 +8,4 @@ execute if score $game_type mem matches 1 run function ltw:state/0/try_start_gam
 # 进行提示
 execute if score $countdown mem matches 999 run tellraw @a [{"text":"","color":"green"},{"text": ">> ","bold": true},"游戏即将开始, 请到准备区域准备, 若想旁观则请离开准备区域!"]
 execute if score $countdown mem matches 999 as @a at @s run function lib:sounds/levelup
-execute if score $countdown mem matches 999 run scoreboard players set $countdown mem 11
+execute if score $countdown mem matches 999 run scoreboard players set $countdown mem 16

+ 4 - 1
data/ltw/functions/state/0/try_start_gameparty.mcfunction

@@ -8,8 +8,11 @@ execute if score $count mem matches ..2 as @a at @s run function lib:sounds/erro
 execute if score $count mem matches ..2 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "需要至少 3 人以开始游戏, 当前人数不足!","color":"red"}]
 execute if score $count mem matches ..2 run scoreboard players set $countdown mem 0
 
+# 提示未准备
+execute if score $countdown mem matches 10 run tellraw @a[tag=!hub_ready] [{"text":"","color":"red"},{"text":">> ","bold": true},"你现在还没有准备, 请站在蓝色准备区域以加入游戏!"]
+
 # 判断玩家数量过多
-execute if score $count mem matches 9.. if score $countdown mem matches 10 run tellraw @a [{"text":"","color":"gold"},{"text":">> ","bold": true},"游戏最多支持 8 人, 当前已有 ",{"score": { "name": "$count","objective": "mem"}}, " 人, 将随机抽取 8 人开始游戏!"]
+execute if score $count mem matches 9.. if score $countdown mem matches 15 run tellraw @a [{"text":"","color":"gold"},{"text":">> ","bold": true},"游戏最多支持 8 人, 当前已有 ",{"score": { "name": "$count","objective": "mem"}}, " 人, 将随机抽取 8 人开始游戏!"]
 execute if score $count mem matches 9.. if score $countdown mem matches 1 run tellraw @a [{"text":"","color":"gold"},{"text":">> ","bold": true},"游戏最多支持 8 人, 当前已有 ",{"score": { "name": "$count","objective": "mem"}}, " 人, 将随机抽取 8 人开始游戏!"]
 
 # 开始游戏

+ 4 - 3
data/mini/functions/slime/game/set_attack.mcfunction

@@ -1,3 +1,4 @@
-execute if score $countdown mem matches 91.. as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 2.5
-execute if score $countdown mem matches 31..90 as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 4
-execute if score $countdown mem matches ..30 as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 6
+execute if score $countdown mem matches 101.. as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 2.5
+execute if score $countdown mem matches 61..100 as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 4
+execute if score $countdown mem matches 21..60 as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 5.5
+execute if score $countdown mem matches ..20 as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 7

+ 21 - 16
data/mini/functions/slime/tick20.mcfunction

@@ -1,28 +1,33 @@
 
 # 属性提升 1
-execute if score $countdown mem matches 90 run function mini:slime/game/set_attack
-execute if score $countdown mem matches 90 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
-execute if score $countdown mem matches 90 as @a at @s run function lib:sounds/error
+execute if score $countdown mem matches 100 run function mini:slime/game/set_attack
+execute if score $countdown mem matches 100 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
+execute if score $countdown mem matches 100 as @a at @s run function lib:sounds/error
 
 # 召唤提示 1
-execute if score $countdown mem matches 65 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
-execute if score $countdown mem matches 65 as @a at @s run function lib:sounds/error
+execute if score $countdown mem matches 85 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
+execute if score $countdown mem matches 85 as @a at @s run function lib:sounds/error
 
 # 召唤 1
-execute if score $countdown mem matches 60 run function mini:slime/game/summon
-execute if score $countdown mem matches 60 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
-execute if score $countdown mem matches 60 as @a at @s run function lib:sounds/teleport
+execute if score $countdown mem matches 80 run function mini:slime/game/summon
+execute if score $countdown mem matches 80 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
+execute if score $countdown mem matches 80 as @a at @s run function lib:sounds/teleport
 
 # 属性提升 2
-execute if score $countdown mem matches 30 run function mini:slime/game/set_attack
-execute if score $countdown mem matches 30 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
-execute if score $countdown mem matches 30 as @a at @s run function lib:sounds/error
+execute if score $countdown mem matches 60 run function mini:slime/game/set_attack
+execute if score $countdown mem matches 60 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
+execute if score $countdown mem matches 60 as @a at @s run function lib:sounds/error
 
 # 召唤提示 2
-execute if score $countdown mem matches 6 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
-execute if score $countdown mem matches 6 as @a at @s run function lib:sounds/error
+execute if score $countdown mem matches 45 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
+execute if score $countdown mem matches 45 as @a at @s run function lib:sounds/error
 
 # 召唤 2
-execute if score $countdown mem matches 1 run function mini:slime/game/summon
-execute if score $countdown mem matches 1 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
-execute if score $countdown mem matches 1 as @a at @s run function lib:sounds/teleport
+execute if score $countdown mem matches 40 run function mini:slime/game/summon
+execute if score $countdown mem matches 40 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
+execute if score $countdown mem matches 40 as @a at @s run function lib:sounds/teleport
+
+# 属性提升 3
+execute if score $countdown mem matches 20 run function mini:slime/game/set_attack
+execute if score $countdown mem matches 20 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
+execute if score $countdown mem matches 20 as @a at @s run function lib:sounds/error