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 wooden sword in Minecraft is shown below:
Items from earlier versions of Minecraft were assigned a numerical ID - a unique number to represent it.
The numerical ID for Wooden Sword is:
The Wooden Sword item can be spawned in Minecraft with the below command. Cheats must be enabled before this will work.
Wood swords in Minecraft can be crafted using 2 wooden planks and 1 wooden stick. They are the least powerful sword, but still deal more damage to mobs and entities than your bare hands would, and can be enchanted.