Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to name an item using /give command in MCPE? [duplicate]

Writer Andrew Mclaughlin

I have put the following command into a command block, but it keeps saying invalid command syntax:

give @p spawn_egg 1 17 {display:{Name:"help!}}

What do I need to do to fix this?

Command Block Screenshot

0

2 Answers

You didn't close the quotation marks. You wrote "help! instead of "help!".

Apart from that, NBT isn't available on MCPE, so it won't work anyway. But in Java edition, the syntax would be correct with the closed quotation mark.

The command is, /give @p (item_name) (amount) (data) {display:{Name:"(name)"}}