mojira.dev
MC-48626

Summoned items can't be picked up

Moderator note

Solved by adding the Count tag:

/summon Item ~ ~ ~ {Item:{id:"minecraft:diamond_sword",Count:1}}

/summon Item ~ ~1 ~ {Item:{id:276}}

I summoned a diamond sword and can't pick it up. When I throw another diamond sword on it then it gets stacked and can be picked up. But I only get one diamond sword back.

Edit: With "PickupDelay" it didn't work too.

Linked issues

Comments 4

Even

/summon Item ~ ~1 ~ {Item:{id:diamond_sword}}

doesn't work.

Probably unfixable. If you don't set up the value Count, it defaults to 0. This causes undefined behavior. Using

/summon Item ~ ~ ~ {Item:{id:"minecraft:diamond_sword",Count:1}}

works.

Hmmm, that makes sense. I think they should set the default value to 1. When I want to summon an item then I want summon a minimum count of 1 and not 0. When I want to summon 0 items then I summon nothing. Then I have 0 items too 😃. Thanks, I think that works, haven't test it. 🙂

Hood Watcher

(Unassigned)

Confirmed

Minecraft 14w07a

Retrieved