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 iron sword in Minecraft is shown below:
The Iron Sword item can be spawned in Minecraft with the below command. Cheats must be enabled before this will work.
Find thousands more items on our complete list of 1,325 Minecraft IDs./show list
Iron swords can be crafted using two iron ingots and a stick in Minecraft. They deal more damage to mobs and other entities than lower-leveled swords and weapons.