-4

I want to give a player a specified item that makes something when used, but first I need to actually give them the item, and that's where I'm stuck. I am attempting to use the following command:

/give @p arrow 1 1 {display:{Name:"Arrow of destiny"}}

However I'm getting the error:

Line 1, Column 2
Missing '}' or object member name

Why is this not working? What am I doing wrong?

Command block window

0

1 Answer 1

5

Pocket edition does not allow NBT access with commands, so you cannot use commands to give named items in pocket edition.

Instead, you could rename the items in advance (with an anvil or external editor), then put them in a dispenser (or even teleport the item to the player when it's needed).

1
  • How can you teleport an item to a player?
    – Wallrunner
    Nov 1, 2017 at 13:15

Not the answer you're looking for? Browse other questions tagged .