Minecraft – How to rename items using /replaceitem in MCPE?

minecraft-bedrock-editionminecraft-commands

I am attempting to rename a cobblestone using the below command, and it is not working:

/replaceitem block ~ ~1 ~ slot.container 0 cobblestone 31 0 {display:{name:CobbLELstone

I have double checked – it is the right block. I have looked at other sources and have found nothing helpful. The error I'm getting is:

Syntax error: Unexpected "": at "bbLELstone>><<"

Can you help explain what I have done wrong?

Here are some screenshots in case they help:

Command Block Window with command and error

Command Block code window only

Best Answer

I don’t believe that you can rename things using nbt in Minecraft Bedrock Edition. However, you could try using clone to achieve the same affect: Put

/clone ~ ~1 ~ ~ ~1 ~ ~ ~2 ~

in a repeating always active command block. Put 31 cobblestone renamed “CobbLELstone” in the first chest (the one that is 1 block above the command block). chests command block photo

Related Topic