LTCatt пре 6 година
родитељ
комит
18e4a18bfd

+ 6 - 4
data/ltw/functions/main/player_leave.mcfunction

@@ -11,7 +11,9 @@ execute if score $state mem matches 5 if score $mini_type mem matches 3 run func
 
 # FIXME : [010/HIM] 奖励选择房和跑酷图还有结构方块的线
 # FIXME : [010/HIM] 玩家可以钓鱼
-# FIXME : [010/HIM] 喝完药的玻璃瓶没有 clear
-# FIXME : [010/HIM] 跑酷中途掉线导致名次判断错误
-# FIXME : [010] 弩和箭可能给不到人
-# FIXME : [010] 关闭原版进度
+# FIXME : 喝完药的玻璃瓶没有 clear
+# FIXME : <! 紧急> 跑酷中途掉线导致名次判断错误
+# FIXME : <! 紧急> [010] 弩和箭可能给不到人
+# FIXME : [010/HIM] 关闭原版进度,它会给玩家经验值什么的很烦
+# TODO : [010] 制作命运硬币(拾取时得分加倍或减半)、命运骰子(拾取时得分 +1~6)
+# TODO : [LTCat] 游戏开始机制优化

+ 1 - 1
data/mini/functions/parkour/game/open_the_door.mcfunction

@@ -2,7 +2,7 @@
 # 由踩下灯的玩家执行
 
 fill 1013 23 1057 1013 21 1056 air
-tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"}," 打开了大门!"]
+execute as @s[type=player] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"}," 打开了大门!"]
 scoreboard players set $parkour_door mem 1
 execute as @a at @s run function lib:sounds/teleport
 

+ 1 - 0
data/mini/functions/parkour/game_init.mcfunction

@@ -20,6 +20,7 @@ execute positioned 1024.5 30.5 1038.5 run function item:bonus_item/gameparty/las
 
 # 初始化开门变量
 scoreboard players set $parkour_door mem 0
+scoreboard players set $countdown mem 150
 
 # 伤害管理
 scoreboard players set $remove_resistance mem 0

+ 8 - 2
data/mini/functions/parkour/tick20.mcfunction

@@ -1,3 +1,9 @@
 # 地狱门音效
-execute if score $countdown mem matches 0 if score $parkour_door mem matches 1 run playsound block.portal.ambient ambient @a 1014.5 22 1057.5
-execute unless score $countdown mem matches 1.. run scoreboard players set $countdown mem 3
+scoreboard players set $random_max mem 3
+scoreboard players set $random_min mem 1
+function lib:random
+execute if score $random mem matches 2 if score $parkour_door mem matches 1 run playsound block.portal.ambient ambient @a 1014.5 22 1057.5
+
+# 强制开门
+execute if score $countdown mem matches 0 if score $parkour_door mem matches 0 run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"text": "一股神秘的力量打开了大门!","color":"green"}]
+execute if score $countdown mem matches 0 if score $parkour_door mem matches 0 run function mini:parkour/game/open_the_door