|
|
@@ -50,6 +50,8 @@ execute if score #start_countdown mem matches 1..199 run title @a actionbar [{"t
|
|
|
execute if score #start_countdown mem matches 200.. run title @a actionbar [{"text":"","color":"red"},{"score":{"name":"$count","objective":"mem"}},"/",{"score":{"name":"#total_count","objective":"mem"}}," 人已准备 | 需要 3 人以开始游戏"]
|
|
|
|
|
|
# 处理乱扔物品的玩家
|
|
|
-execute as @e[type=item,nbt={Item:{tag:{stats_item:1b}}}] at @s as @a[distance=..2] at @s run function item:shop/refresh_gold
|
|
|
-execute as @e[type=item,nbt={Item:{tag:{stats_item:1b}}}] at @s as @a[distance=..2] at @s run function item:shop/refresh_green
|
|
|
-execute as @e[type=item,nbt={Item:{tag:{stats_item:1b}}}] run kill @s
|
|
|
+execute as @e[type=item,nbt={Item:{tag:{stats_item:1b}}},tag=!new_stats] at @s run tag @a[distance=..2] add refresh
|
|
|
+execute as @e[type=item,nbt={Item:{tag:{stats_item:1b}}},tag=!new_stats] run kill @s
|
|
|
+execute as @a[tag=refresh] run function item:shop/refresh_gold
|
|
|
+execute as @a[tag=refresh] run function item:shop/refresh_green
|
|
|
+tag @a[tag=refresh] remove refresh
|