@jmz
I tried :CREATURE_MAT:TURTLE:FEMALE], and got "small live animal" and "raw fish", so that doesn't work.
Yes that means the item token you were using doesn't accept CREATURE_MAT as an argument. So essentially using that syntax is identical to using
FISH_RAW:NONE:NONE:NONE]
I don't know why you thought to use a caste as an argument for a CREATURE_MAT:CREATURE:subtype, although at this point anythng is worth a shot. In this context that would either select all materials assigned to the FEMALE caste (which is no different than the MALE cast in this sense, at least with 99.9% of all current creatures), or none of the creatures materials, not sure which.
For the record, doing something like :CREATURE_MAT:COW:BONE] _does_ select bone properly for the matgloss. Whatever you apply it to will be white and called "cow bone". But its functional properties are all defined by the item token. Tanned leather that's white and called "cow bone" isn't what we want. ;p We just need to find the right item token, or the right syntax for one of the item tokens we can't get to work. ie, the correct reaction for making cow bones should look like
[PRODUCT:100:1:AAAAA:BBBBB:CREATURE_MAT:COW:BONE]
But we either don't know what AAAAA and BBBBB are supposed to be, or we do, but it doesn't work(I think the right format will, in some later version, be CORPSEPIECE:NONE, or possibly CORPSEPIECE:BONE).
@scribble
I'm not 100% certain but I believe you must remove LEATHER and possibly HAIR from the creature for that to work. I'm referencing Neon's genesis mod cave tortoise now, he's got
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[REMOVE_MATERIAL:SKIN]
[REMOVE_MATERIAL:LEATHER]
[REMOVE_MATERIAL:HAIR]
[USE_MATERIAL_TEMPLATE:SCALE:SCALE_TEMPLATE]
[USE_MATERIAL_TEMPLATE:SHELL:SHELL_TEMPLATE]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_TISSUE:SKIN]
[REMOVE_TISSUE:HAIR]
[USE_TISSUE_TEMPLATE:SCALE:SCALE_TEMPLATE]
[USE_TISSUE_TEMPLATE:SHELL:SHELL_TEMPLATE]
On the other hand, I've never actually tested the cave tortoise to see if it actually produces shells when it's butchered.UPDATE:
Tested Neon's cave tortoises, and they do indeed butcher into shells. Try generating a new world, if you haven't, I'm not sure if you're allowed to add new materials to an existing creature is made out of, or add body parts without either genning a new world, or waiting for more of those creatures to be born/arrive on your map.
If you're desperate for shells for a mood dwarf, just add the [SHELL] token to the MATERIAL_TEMPLATE_HOOF in material_templates_default.txt, and butcher a cow (existing hooves in your stockpile won't be shells, but new freshly butchered hooves will be).