I am trying to mod in various food items, including bread, for which I was using the method in the quoted post. However, I can't seem to get it to work. The dwarves refused to eat it or store it in a stockpile, so I added a new material template for bread and simply referenced it in the plants' raw entries instead of defining the bread material inside of the entry.
The bread material:
[MATERIAL_TEMPLATE:BREAD_TEMPLATE]
[STATE_COLOR:ALL_SOLID:CREAM]
[STATE_NAME:ALL_SOLID:bread]
[STATE_ADJ:ALL_SOLID:bread]
[STATE_COLOR:LIQUID:CREAM]
[STATE_NAME:LIQUID:melted bread]
[STATE_ADJ:LIQUID:melted bread]
[STATE_COLOR:GAS:CREAM]
[STATE_NAME:GAS:n/a]
[STATE_ADJ:GAS:n/a]
[DISPLAY_COLOR:6:0:0]
[MATERIAL_VALUE:2]
[SPEC_HEAT:4181]
[IGNITE_POINT:10338]
[MELTING_POINT:10078]
[BOILING_POINT:NONE]
[HEATDAM_POINT:10250]
[COLDDAM_POINT:9900]
[MAT_FIXED_TEMP:NONE]
[SOLID_DENSITY:500]
[LIQUID_DENSITY:NONE]
[MOLAR_MASS:NONE]
[IMPACT_YIELD:10000]
[IMPACT_FRACTURE:10000]
[IMPACT_STRAIN_AT_YIELD:100]
[COMPRESSIVE_YIELD:10000]
[COMPRESSIVE_FRACTURE:10000]
[COMPRESSIVE_STRAIN_AT_YIELD:100]
[TENSILE_YIELD:10000]
[TENSILE_FRACTURE:10000]
[TENSILE_STRAIN_AT_YIELD:100]
[TORSION_YIELD:10000]
[TORSION_FRACTURE:10000]
[TORSION_STRAIN_AT_YIELD:100]
[SHEAR_YIELD:10000]
[SHEAR_FRACTURE:10000]
[SHEAR_STRAIN_AT_YIELD:100]
[BENDING_YIELD:10000] no data
[BENDING_FRACTURE:10000]
[BENDING_STRAIN_AT_YIELD:100]
[MAX_EDGE:0]
[ABSORPTION:100]
[POWDER_MISC_PLANT]
[EDIBLE_VERMIN]
[EDIBLE_RAW]
[EDIBLE_COOKED]
[ROTS]
The plant raws (cave wheat):
[PLANT:GRASS_WHEAT_CAVE]
[NAME:cave wheat][NAME_PLURAL:cave wheat][ADJ:cave wheat]
[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]
[MATERIAL_VALUE:2]
[EDIBLE_VERMIN]
[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]
*[USE_MATERIAL_TEMPLATE:BREAD:BREAD_TEMPLATE]*
...
[USE_MATERIAL_TEMPLATE:MILL:PLANT_POWDER_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:dwarven wheat flour]
[STATE_COLOR:ALL_SOLID:WHITE]
[DISPLAY_COLOR:7:0:1]
[MATERIAL_VALUE:20]
[EDIBLE_VERMIN]
[EDIBLE_COOKED]
*[MATERIAL_REACTION_PRODUCT:BREAD_MAT:LOCAL_PLANT_MAT:BREAD]*
[PREFIX:NONE]
[MILL:LOCAL_PLANT_MAT:MILL]
....
The reaction:
[REACTION:BAKE_BREAD]
[NAME:bake bread]
[BUILDING:KITCHEN:CUSTOM_B]
[REAGENT:flour:30:POWDER_MISC:NONE:NONE:NONE]
[UNROTTEN]
[HAS_MATERIAL_REACTION_PRODUCT:BREAD_MAT]
[REAGENT:flour container:1:NONE:NONE:NONE:NONE]
[CONTAINS:flour]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:1:CHEESE:NONE:GET_MATERIAL_FROM_REAGENT:flour:BREAD_MAT]
[SKILL:COOK]
Although bread does now appear in the milled plant section of the stockpile customization menu, the dwarves still ignore it. What's causing this?
Edit: I forgot part of the plant raws.
Edit 2: The 'd' was missing in POWDER_MISC in the reaction. Surprisingly, it had no impact; the reaction worked and the dwarves ate it in spite of the typo.