LTCatt 6 лет назад
Родитель
Сommit
acb475114c
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      data/item/functions/bonus_item/rank/purple.mcfunction

+ 5 - 4
data/item/functions/bonus_item/rank/purple.mcfunction

@@ -1,5 +1,6 @@
-# 生成紫色品质的物品实体并给予 new_item 标签
-loot spawn 1 233 1 loot item:ranks/purple
-data merge entity @e[x=1,y=233,z=1,distance=..2,limit=1] {Tags:["new_item"],Age:-32768,PickupDelay:0,NoGravity:1,Invulnerable:1,CustomNameVisible:1,Glowing:1}
+# 生成紫色品质的物品实体
+loot spawn ~ ~ ~ loot item:ranks/purple
+data merge entity @e[distance=..1,limit=1,type=item] {Tags:["new_item"],Age:-32768,PickupDelay:0,NoGravity:1,Invulnerable:1,CustomNameVisible:1,Glowing:1,Motion:[0,0,0]}
 execute as @e[tag=new_item] run data modify entity @s CustomName set from entity @s Item.tag.item_name
-team join purple @e[tag=new_item]
+team join purple @e[tag=new_item]
+tag @e[tag=new_item] remove new_item