aqupa 4 лет назад
Родитель
Сommit
dcbb6490f9
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      data/mini/functions/main/kill_remaining_items.mcfunction

+ 3 - 1
data/mini/functions/main/kill_remaining_items.mcfunction

@@ -2,4 +2,6 @@
 
 scoreboard players add @e[type=item] game_id 0
 scoreboard players operation @e[type=item,scores={game_id=0}] game_id = $ game_id
-execute as @e[type=item] unless score @s game_id = $ game_id run kill @s
+scoreboard players set item_test mem 0
+execute store result score item_test mem as @e[type=item] unless score @s game_id = $ game_id run kill @s
+execute if score item_test mem matches 1.. run tellraw @a ["清理了",{"score":{"name": "item_test","objective": "mem"}},"个物品"]