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

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


Solution 1:

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.