I want to use the /give command to give myself a broken elytra. So far I have

/give @p elytra 1 0 {"Broken":1}
but that doesn't work. It then says
Component 'Broken' was not an object.

  • 3
    Have you made any attempt to solve this yourself? Arqade works better when askers show effort to solve their own problems; we see that you have a problem you've worked on, and answerers respond to that. You also get a more specific answer that's tailored exactly to the part you're stuck, and Arqade gets a very specific question. Everybody wins! – Frank Jul 11 '17 at 12:31
  • 1
    ^ you should also clarify if this is minecraft for the PC or minecraft-pocket-edition for phones. You only need one of the tags if it's for one of the two. – n_plum Jul 11 '17 at 12:31
  • @n_palum Removed the minecraft tag. – cherryblossom Jul 11 '17 at 12:34
  • @Frank Added more detail. – cherryblossom Jul 11 '17 at 12:35
  • Also, @cherryblossom, you should change the DURABILITY of your elytra to 1 to make it appear broken. – The Mattbat999 Jul 11 '17 at 12:38

Quick solution: /give @p elytra 1 431

Long explanation:

The syntax of the /give command is the following:

give <player: target> <itemName: string> [amount: int] [data: int] [components: components]

(from the wiki, archive)

player is a target selector, in your case you want @p, meaning the nearest player to you, which is yourself.

itemName is the name of the item, that's elytra.

amount is the number of items you want to have, since /give requires at least 1 and the stack limit of elytra is 1, only 1 is possible.

data is the so-called "metadata" of the item. The primary use of it and the reason it was originally added was for uses of an items. Since the durability of the elytra (0 or not) decides if it is broken, you can just set it to 431 to have a 0 durability elytra. (Or 432, I have two conflicting sources, just try it.)

components is optional and you don't need it in this case. And since you're playing PE and not Java, you could only use "CanPlaceOn" (which is useless, because elytra can't be placed) and "CanDestroy" (which you don't want) anyway.

|improve this answer|||||
  • 1
    I believe it is 431, since a broken elytra is supposed to be stuck at 1 durability until repaired. – The Mattbat999 Jul 11 '17 at 14:57
  • Never mind. Both ways work. – The Mattbat999 Jul 11 '17 at 15:10
  • Then it's actually 431. Making the metadata higher doesn't change the damage value (it stays at 0). Btw, I wrote this whole answer without starting Minecraft once. ;) – Fabian Röling Jul 11 '17 at 17:20
  • Both 431 and 432 work. For some reason the texture the broken elytra isn't showing up (nothing is showing up in the inventory) but that's probably a bug. Thanks! – cherryblossom Jul 12 '17 at 7:13
  • Also @s is not available in PE. – cherryblossom Jul 18 '17 at 11:22

Here's a quick one:

/give (your mc name) elytra
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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