1

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

5

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.

| improve this answer | |
-2

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

| improve this answer | |

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