TransWikia.com

How to put a block in a minecart in 1.13?

Arqade Asked by LavaMunkee on June 20, 2021

I am trying to place a block (a cake) in a minecart with an offset but I cannot find a solution I have tried using

/summon minecart ~ ~ ~ {CustomDisplayTile:1,DisplayTile:cake,DisplayOffset:1}

but this does not work, does anyone know how to do this?

One Answer

In 1.13, a minecart's display block is now determined by a DisplayState compound, which looks like this:

DisplayState NBT format

Which means to summon a minecart with cake in it, you should use the following command:

/summon minecart ~ ~ ~ {CustomDisplayTile:1b,DisplayState:{Name:"cake"},DisplayOffset:1}

You can also use this to specify block-states. For example:

/summon minecart ~ ~ ~ {CustomDisplayTile:1b,DisplayState:{Name:"redstone_lamp",Properties:{lit:"true"}}}

Answered by SirBenet on June 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP