mojira.dev
MC-81843

Minecarts do not retain NBT data when placed.

Minecarts do not retain NBT data when placed. Affects Furnace/Chest/Command Minecarts spawned in with commands. Below commands illustrate the issue.

When a Furnace/Chest/Command Minecart is spawned in with commands, say,
/give @p minecraft:command_block_minecart 1 0 {Command:"say Hello"}
the Minecart is properly created with the NBT tags (confirmed with the debug tooltips/NBT Explorer). However, when placed, these NBT tags are seeming erased or reset. For the given command, the Command section is blank.

Attachments

Comments 4

Invalid, this is a feature request - minecarts were never able to keep NBT data when placed.

I suspect that, due to security reasons, this is working as intended.

No, retaining custom NBT has never worked for entites. It was only added for armor stands recently, every other entity is probably for a later date: http://www.reddit.com/r/Minecraft/comments/35jcy1/in_18_the_entitytag_tag_for_armor_stand_items/

Same problem!
/give @a minecraft:command_block 1 0 {Command:/say ok}

With loot "table json" command too :

{
"pools": [
{
"rolls": 5,
"entries": [
{
"type": "item",
"name": "minecraft:command_block",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": 1
},
{
"function": "set_nbt",
"tag": "{Command:/say ok}"
}
]
}
]
}
]
}

Sean Smith

(Unassigned)

Unconfirmed

Minecraft 1.8.7

Retrieved