@@ -13,6 +13,12 @@ setblock 1000 5 1032 minecraft:redstone_block
kill @e[type=arrow]
kill @e[type=item]
+# 生成奖励物品
+execute positioned 1017.5 24.5 1049.5 run function item:bonus_item/rank/white
+
+# 初始化开门变量
+scoreboard players set $parkour_door mem 0
# 伤害管理
team modify player friendlyFire true
team modify player collisionRule never
@@ -0,0 +1,7 @@
+# 开门
+# 由踩下灯的玩家执行
+fill 1014 23 1057 1015 21 1056 air
+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/hit
@@ -1,2 +1,5 @@
# 玩家获胜判断
-execute as @a[tag=mini_running,x=1005,y=11,z=1018,dx=2,dy=3,dz=2] run function mini:parkour/player_finished
+execute as @a[tag=mini_running,x=1005,y=11,z=1018,dx=2,dy=3,dz=2] run function mini:parkour/player_finished
+# 开门判断
+execute if score $parkour_door mem matches 0 as @a[tag=mini_running] at @s if block ~ ~-1 ~ redstone_lamp run function mini:parkour/open_the_door