Ver Fonte

修复连续小游戏完成时不显示排名的 Bug

LTCatt há 6 anos atrás
pai
commit
1380ec02b3

+ 1 - 1
data/ltw/functions/init.mcfunction

@@ -34,4 +34,4 @@ function mini:main/init
 # 状态
 function ltw:state/0/state_enter
 
-# TODO 关闭玩家碰撞箱
+# TODO 让玩家进入时触发 ltw:main/player_enter

+ 1 - 1
data/ltw/functions/main/game_end.mcfunction

@@ -18,7 +18,7 @@ execute as @a[tag=!total_rank1,tag=!total_rank2] run function ltw:main/get_max_s
 execute as @a[tag=!total_rank1,tag=!total_rank2] unless entity @a[tag=total_rank3] if score @s total_score = $t_score_max total_score run tag @s add total_rank3
 
 # 显示排名
-tellraw @s [{"text":"\n>> 游戏结束 >>\n\n","color":"gold","bold":true},{"text": "第一名 - ","color":"green","bold": false},{"selector": "@a[tag=total_rank1]","color":"white","bold": false},{"text": "\n第二名 - ","color":"green","bold": false},{"selector": "@a[tag=total_rank2]","color":"white","bold": false},{"text": "\n第三名 - ","color":"green","bold": false},{"selector": "@a[tag=total_rank3]","color":"white","bold": false},"\n"]
+tellraw @a [{"text":"\n----- 游戏结束 -----\n\n","color":"gold","bold":true},{"text": "第一名 - ","color":"green","bold": false},{"selector": "@a[tag=total_rank1]","color":"white","bold": false},{"text": "\n第二名 - ","color":"green","bold": false},{"selector": "@a[tag=total_rank2]","color":"white","bold": false},{"text": "\n第三名 - ","color":"green","bold": false},{"selector": "@a[tag=total_rank3]","color":"white","bold": false},"\n"]
 
 # 返回主大厅
 schedule function ltw:state/0/state_enter 2t replace