I'm fairly certain that this was answered earlier in the thread, but, how does one control a civ's access to metal? Is the reaction to smelt metal from ore hardcoded which means it's impossible to control what metals they smelt aside from pig iron, steel, and adamantine? I'm assuming not having access to a mining tool can limit this, but I'm wanting to create a mod with a setting that has very limited metalsmithing and I'm wondering if this isn't possible aside from completely removing metals other than the ones I want from the game raws.
In addition to this, is the 'melt metal object' job similarly hardcoded in? This setting I have in mind includes a faction of primitive goblins that is after the secrets of metalsmithing and is intended to gain it after defeating a primitive (compared to vanilla) dwarven faction with the metalsmithing ability and melting their gear down and this is why I ask this. The other factions are stone age humans which I have something of an idea on how to implement their tech within the constraints of the game.
EDIT: In a less convoluted and wordy manner, I'm wondering what exactly controls an entity's access to metal. And whether it's possible to create a sort of "metal thief" civ that can gain its use via defeating a civ with metal access. As difficult as that would be without having your own metal weapons and armor.