Просмотр исходного кода

修复没有提示信息的 Bug,可以开始小游戏了

LTCatt 6 лет назад
Родитель
Сommit
758496511a
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      data/ltw/functions/state/0/start_gameparty.mcfunction

+ 4 - 3
data/ltw/functions/state/0/start_gameparty.mcfunction

@@ -5,6 +5,7 @@ scoreboard players set $count mem 0
 execute as @a[tag=hub_gameparty] run scoreboard players add $count mem 1
 execute as @a[tag=hub_gameparty] run scoreboard players add $count mem 1
 
 
 # 根据玩家数量判定
 # 根据玩家数量判定
-execute if score $count mem matches ..2 run tellraw @a[tag=hub_classic] [{"text": "人数不足, 需要至少 3 人, 当前仅有 ","color":"red"},{"score": { "name": "$count","objective": "mem"}}, "人!"]
-execute if score $count mem matches 9.. run tellraw @a[tag=hub_classic] [{"text": "人数过多, 最多支持 8 人, 当前已有 ","color":"red"},{"score": { "name": "$count","objective": "mem"}}, "人!"]
-execute if score $count mem matches 3..8 run tellraw @a {"text": "小游戏模式即将开始!","color":"green"}
+execute if score $count mem matches ..2 run tellraw @a[tag=hub_gameparty] [{"text": "人数不足, 需要至少 3 人, 当前仅有 ","color":"red"},{"score": { "name": "$count","objective": "mem"}}, "人!"]
+execute if score $count mem matches 9.. run tellraw @a[tag=hub_gameparty] [{"text": "人数过多, 最多支持 8 人, 当前已有 ","color":"red"},{"score": { "name": "$count","objective": "mem"}}, "人!"]
+execute if score $count mem matches 3..8 run tellraw @a {"text": "小游戏模式即将开始!","color":"green"}
+execute if score $count mem matches 3..8 run schedule function ltw:state/3/state_enter 3s replace