Minecraft – How to use /summon to spawn a certain type of item in minecraft? (Such as colored wool)

minecraft-commandsminecraft-java-edition

I want to spawn an enchanted golden apple for a boost in my adventure map (in 1.9) but I end up summoning a normal golden apple. What kind of ID do I add to this:

/summon Item ~ ~1 ~ {Item:{id:minecraft:golden_apple}

To make it spawn an enchanted golden apple? This goes for a lot of things such as colored wool, different wood, all the kinds/variety of stone etc.

Best Answer

The Damage short tag is what specifies metadata value. A metadata value of 1 is an enchanted golden apple:

/summon Item ~ ~1 ~ {Item:{id:"minecraft:golden_apple",Damage:1,Count:1}}