3

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.

2
  • 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
    Commented Jul 11, 2017 at 12:31
  • @Frank Added more detail. Commented Jul 11, 2017 at 12:35

3 Answers 3

8

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.

5
  • 1
    I believe it is 431, since a broken elytra is supposed to be stuck at 1 durability until repaired. Commented Jul 11, 2017 at 14:57
  • Never mind. Both ways work. Commented Jul 11, 2017 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. ;) Commented Jul 11, 2017 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! Commented Jul 12, 2017 at 7:13
  • Also @s is not available in PE. Commented Jul 18, 2017 at 11:22
-1

if you are playing in one of the newer versions it is now:

/give @p minecraft:elytra{Damage:431} 1
2
  • 2
    Hello! What do you mean by "newer versions"? Since which version?
    – 54D
    Commented Apr 16, 2020 at 8:53
  • My question was about Bedrock Edition and there is currently no NBT as far as I know. Commented Apr 16, 2020 at 12:21
-2

Here's a quick one:

/give (your mc name) elytra

You must log in to answer this question.

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