Each item in Minecraft has a unique ID assigned to it, known as an item ID, this can be used in commands to spawn the item into the game. The item ID for charcoal in Minecraft is shown below:
Items from earlier versions of Minecraft were assigned a numerical ID - a unique number to represent it.
This item also has a data value assigned to it. The data value is 1 - you need to add this to the item ID (with a colon before) in order to spawn charcoal.
The numerical ID for Charcoal is:
The Charcoal item can be spawned in Minecraft with the below command. Cheats must be enabled before this will work.