When I tried to throw a splash potion of harming it didnt hurt mobs/me. Also tried with splash potion of leaping
Comment by @unknown on MC-92554:
Happens with all default and custom potions; the item data from the inventory potion is not stored on the ThrownPotion (defaulting to splash_potion with no effects, as well as a "ThrownPotion entity # has no item?!" error in log).
Linked issues
is duplicated by 35
Attachments
Comments 19
I get the "ThrownPotion entity # has no item?!" spam as well, which it's filling up my server logs very fast.
Previously doable:
/summon ThrownPotion ~ ~ ~ {Motion:[0.0,0.5,0.0],Potion:{id:"minecraft:dirt",Count:1,tag:{Potion:"minecraft:swiftness"}}}
Now broken... 😞
@Tan, An exmaple of the inventory item's NBT data for a lingering potion, modified to include a stack size of 2 to show that it's disregarded:
{id:"minecraft:lingering_potion",Count:2,Damage:0,tag:{Potion:"minecraft:swiftness"}}
The ThrownPotion entity will not take any of that data whatsoever, not just from what's within the "tag" tag. And because the ThrownPotion entity is now missing the potion data, it attempts to recover by adding default data, which is:
{id:"minecraft:splash_potion",Count:1,Damage:0}
Relates to MC-85835.