Well. I'm able to process plant into bag with leaves, but reaction says the reagent is inavailable.
The plant:
[PLANT:IRON]
[NAME:iron plant][NAME_PLURAL:iron plants][ADJ:iron]
[BIOME:ALL_MAIN]
[PREFSTRING:metal-like qualities]
[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]
[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]
[MATERIAL_REACTION_PRODUCT:SEED_MAT:LOCAL_PLANT_MAT:SEED]
[MATERIAL_REACTION_PRODUCT:METAL_LEAVES_MAT:INORGANIC:IRON]
[GROWDUR:30]
[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]
[MATERIAL_VALUE:10]
[EDIBLE_VERMIN]
[USE_MATERIAL_TEMPLATE:LEAF:LEAF_TEMPLATE]
[MATERIAL_VALUE:50]
[SEED:iron plant seed:iron plant seeds:0:7:1:LOCAL_PLANT_MAT:SEED]
[LEAVES:iron plant leaf:iron plant leaves:6:7:0:0:0:0:1:LOCAL_PLANT_MAT:LEAF]
[SPRING][SUMMER][AUTUMN][WINTER]
[CLUSTERSIZE:0]
[PICKED_TILE:161]
[DEAD_PICKED_COLOR:0:7:1]
The reaction:
[REACTION:SMELT_METAL_LEAVES]
[NAME:smelt metal plant leaves]
[BUILDING:SMELTER:NONE]
[REAGENT:Leaves:1:LEAVES:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:METAL_LEAVES_MAT]
[PRODUCT:100:1:BAR:NONE:GET_MATERIAL_FROM_REAGENT:Leaves:METAL_LEAVES_MAT]
[FUEL]
[SKILL:SMELT]
Item info of leaves got by dfhack:
type: LEAVES
subtype: NONE
quality:Basic
material: PLANT:IRON:LEAF
DF smelter screen says it needs METAL_LEAVES_MAT-producing leaves to produce METAL_LEAVES_MAT bars
So, the problem I think is that leaves definition somehow drops out the MATERIAL_REACTION_PRODUCT:METAL_LEAVES_MAT tag... I tried to put it under LEAF material definition, but it didn't work either.
Still working on it... have one idea in mind to test.
Side question - why clay lumps are considered as economic? I take them as fire-safe material, but can't build from them, have to transform them into simple stone by dfhack
EDIT: simple Clay is allowed, fire clay and such - not.
My idea failed. I wanted to make leaves pure iron and smelt them as usual metal item, but no.
[LEAVES:iron plant leaf:iron plant leaves:6:7:0:0:0:0:1:INORGANIC:IRON] results in "(iron Bag (rope reed fiber))" with "iron [15]" inside, that can't be melted
The last idea I have is to make a shitload of reactions "smelt iron leaves" taking iron plant leaves and produces a bar, then same for copper, silver and so on... But that smells bad.
Any suggestions?