@@ -34,6 +34,7 @@ execute if data storage item:bonus item.tag.bonus_stole_score run function item:
execute if data storage item:bonus item.tag.bonus_gold run function item:bonus_item/gold
# 执行特定函数
+execute if score $state mem matches 5 if score $mini_type mem matches 1 run function mini:parkour/pickup
execute if score $state mem matches 7 run function item:bonus_item/pickup_1
# 处理下一个
@@ -1,5 +1,6 @@
# 重置 buff
effect clear @a[tag=have_totem] absorption
+execute as @a[tag=have_totem] at @s run function mini:main/give_effect
# 重置 tag
tag @a[tag=have_totem] remove have_totem
@@ -1,5 +1,4 @@
# 状态效果
-effect clear @s
effect give @s saturation 1000000 0 true
effect give @s resistance 1000000 2 true
effect give @s night_vision 1000000 0 true
@@ -4,6 +4,7 @@ title @s clear
title @s actionbar ""
+effect clear @s
function mini:ass/give_effect
# 设置玩家生命
effect give @s resistance 1000000 4 true
# 给予状态效果
function mini:colormatch/give_effect
@@ -1,6 +1,4 @@
-
function mini:hotpm/give_effect
function mini:iron/give_effect
effect give @s slow_falling 4
effect give @s weakness 5 10 true
effect give @s haste 1000000 1 true
@@ -1,5 +1,3 @@
@@ -0,0 +1,2 @@
+# 如果到达人数不足,捡到最多宝藏的玩家获胜
+scoreboard players add @s mini_score 1
function mini:parkour/give_effect
@@ -20,4 +20,4 @@ execute if entity @s[tag=!rejoining] if score $player_finish mem matches ..2 run
execute if score $player_finish mem matches ..3 as @a at @s run function lib:sounds/levelup
# 给已完成的玩家加分
-scoreboard players add @a[tag=!mini_running] mini_score 1
+scoreboard players add @a[tag=!mini_running] mini_score 100
@@ -1,4 +1,2 @@
function mini:phantom/give_effect
function mini:tntrun/give_effect
function mini:trade/give_effect