As for the Starry Realm pirates' Yankee class starships and the Mind Flayers' mind-stealing ships, these super sci-fi beings capable of traveling through the Starry Realm and various planes, they are not the subject of today's discussion.
Dwarven forging technology is renowned throughout the world, supplying over half of the world's metal minerals. Do you think they are hammered out one by one?
They are also of the Everlasting Kind, like the Elves, not famous for their numbers. Many Dwarf Cities, at most, have only a few thousand inhabitants, but the weapons and armor they produce far exceed this number.
The reason for this is that they have built their cities into massive smelting furnaces, either powered by geothermal magma or assisted by bound Fire Elements.
In short, most Dwarf Cities' smelting processes do not require coal or timber for energy.