mojira.dev
MC-34586

Can't summon potions in chests

Lately I've been trying to summon a chest with a healing potion in it and come up empty. It replaces a chest already there, but doesn't appear to contain a potion. Here's an example code:

summon FallingSand ~ ~ ~ {TileID:54,Time:0.9,TileEntityData:{Items:[{id:potion:8197,Slot:13,Count:1}]}}
summon FallingSand ~ ~ ~ {TileID:54,Time:0.9,TileEntityData:{Items:[{id:potion:8197,Slot:13,Count:1}]}}

Comments 5

For the id, try 373:8197

Though I just tried it myself and it didn't seem to work.

I have, and 373 1 8197, neither work.

Got it. Do:

summon FallingSand ~1 ~1 ~ {TileID:54,Time:2,TileEntityData:{Items:[{id:373,Damage:8197,Slot:1,Count:1}]}}
summon FallingSand ~1 ~1 ~ {TileID:54,Time:2,TileEntityData:{Items:[{id:373,Damage:8197,Slot:1,Count:1}]}}

Damage tag needs to be specified, and the id, Damage, Slot, and Count are inside a compound tag, so that needs to be marked with brackets.

Great thanks. I'll really need to sharpen my formatting skills one of these days.

Aerotactics

(Unassigned)

Unconfirmed

Minecraft 13w39b

Retrieved