00ll00 6 лет назад
Родитель
Сommit
7cc32f5117

+ 1 - 2
data/item/functions/bonus_item/call.mcfunction

@@ -21,5 +21,4 @@ execute if data block 0 0 0 RecordItem.tag.bonus_add_score run function item:bon
 execute if data block 0 0 0 RecordItem.tag.bonus_give_items[0] run function item:bonus_item/give_items
 
 # 执行特定函数
-tag @s add pickup_player
-schedule function item:bonus_item/pickup 5t replace
+execute if score $state mem matches 7 run function item:bonus_item/pickup_1

+ 5 - 0
data/item/functions/bonus_item/pickup_1.mcfunction

@@ -0,0 +1,5 @@
+#当玩家在奖励阶段拾取奖励物品触发
+#as player
+tag @s add pickup_player
+tp @s 24.5 11.0 1967.5 112.5 25
+schedule function item:bonus_item/pickup_2 5t replace

+ 1 - 1
data/item/functions/bonus_item/pickup.mcfunction → data/item/functions/bonus_item/pickup_2.mcfunction

@@ -1,5 +1,5 @@
 # 有玩家捡起物品,并处理完成后触发
 # 执行者为 System
 
-execute if score $state mem matches 7 as @a[tag=pickup_player] run function ltw:state/7/pickup
+execute as @a[tag=pickup_player] run function ltw:state/7/pickup
 tag @a remove pickup_player