mojira.dev
MC-46267

setblock doesn't recognize chest_minecart

Trying to use /setblock to add items to a Minecart with Chest, but it says"[19:29:36] There is no such item with name chest_minecart"

Comments 9

Minecart Chests aren't blocks.

Oh, that's right. So, there's no way to add items to one via commands?

Ezekiel, that is not true. He can use /summon MinecartChest ~ ~ ~ and add certian NBT Tags to it I tryed to give exact command on how to give it items put it wont work.

EDIT: zItems:yzid:minecraft:air,Count:0,Damage:0x,zid:minecraft:air,Count:0,Damage:0xux replace x with } z with { and y with [ and u with ] replace minecraft:air with whatever item/block you want, you should pretty much keep your fingers away from Damage:0 unless you know what you're doing, and Count:0 is easy here, you can change the count by changing the :0 to :1 :5 and etc

oh and by the way, Sean, if it recognized chest minecarts you would need to write minecraft:minecart_chest instead of chest_minecart.

Thanks, Mathias. I will play around with the /summon command and see what I can come up with.

The F3+H tooltip for Minecart with Chest says "minecraft:chest_minecart", but I will try it the other way around too.

Ok, here's what I tried:

summon MinecartChest ~ ~ ~ {
items:[
    {
        id:dirt,
        Count:5,
        Slot:0
    }
]
}

It summoned the minecart chest, but it was empty. I tried it with "minecraft:dirt" instead of "dirt", with and without "Slot:0", and even tried "tag:{}" around the dataTag.

Sean, you're right, its chest_minecart. However, what you should be doing is

summon MinecartChest ~ ~ ~ {
Items:[
    {
        id:dirt,
        Count:5,
        Slot:0
    }
]
}

I change the

items

tag to

Items

.

Mathias, I thought he meant after it's ben spawned, my bad.

It worked! Thanks, both of you! 🙂

SullyTheUnusual

(Unassigned)

Unconfirmed

Minecraft 14w04b

Retrieved