2

I don't understand how the json code works in Minecraft, so I'm wondering how can I give myself a "damaged" item using commands?

I tried to use the old 1.12.2 way where you would just add the damage, like

/give @s minecraft:elytra 1 50

with 50 being damage, but it no longer functions correctly, and fails to parse in 1.13 and 1.13.1

1
  • Have you tried anything yet? If so, write your command in with the question.
    – Ben
    Sep 6, 2018 at 7:41

2 Answers 2

6

The /give command in Minecraft 1.13 has been changed to this format:

give <player>[<selectors>] <item>[<NBT>] [<count>]

Knowing the NBT tag for damage being Damage, I wrote this command. (Don't currently have minecraft installed to test it, but it should work.)

/give @p minecraft:elytra{Damage:50} 1

This page on the /give command and this one showing what tags you can apply to items should be helpful in understanding how to use them.

0

This one command is the updated one for 1.13+ (/give @p minecraft:elytra{Damage:500} 1)

500 being the damaged one.

I hope this helps

1
  • 1
    Hi, this question already had your exact answer as the accepted, try to bring something new to a question when you bring a new answer.
    – Josh Hales
    Jan 4, 2022 at 10:08

You must log in to answer this question.

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