summon_purple.mcfunction 448 B

1234567
  1. # 生成紫色品质的物品
  2. setblock 14 4 1 air replace
  3. setblock 14 4 1 chest{LootTable:"item:ranks/purple"}
  4. setblock 14 4 1 air destroy
  5. data merge entity @e[x=14,y=4,z=1,distance=..2,limit=1] {Tags:["new_item"],Age:-32768,PickupDelay:0,NoGravity:1,Invulnerable:1,CustomNameVisible:1,Glowing:1,Motion:[0,0,0]}
  6. execute as @e[tag=new_item] run data modify entity @s CustomName set from entity @s Item.tag.item_name
  7. team join purple @e[tag=new_item]