0

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

2
  • I recommend you to look up command tutorials and the wiki pages for command and NBT syntax. I'm not too familiar with PE commands, but I can already spot at least 4 syntax errors. There should also be an error message somewhere, telling you a bit about what's wrong. – Fabian Röling Dec 19 '18 at 7:26
  • Your synax is incorrect, at least for pc. Did you try replaceitem block ~ ~1 ~ container.slot_0 cobblestone{display:{Name:"\"Cobblestone\""}} 31? Also are you targeting the correct block? – SpiceWeasel Dec 19 '18 at 16:15
0

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

-1

You forgot the end curly bracket: }

Not the answer you're looking for? Browse other questions tagged or ask your own question.