In my experience, the gem cutter workshop will ignore any material that isn't defined in a [OBJECT:INORGANIC] file like the other gems are. So what you need to do first is define a gem type, but one which lacks any ENVIRONMENT tag so it won't appear in the ground. Then you can have your creature have a tissue made of that material with something like:
[USE_TISSUE_TEMPLATE:SCALE:SCALE_TEMPLATE]
[TISSUE_MATERIAL:INORGANIC:(your gem here)]
That is correct
I'm still doing something wrong here.
Using
[INORGANIC:WYRMSCALE]
[USE_MATERIAL_TEMPLATE:WYRMSCALE_TEMPLATE]
[MATERIAL_VALUE:3][DISPLAY_COLOR:5:1:1][TILE:169][IS_GEM:iridescent scale:iridescent scales:OVERWRITE_SOLID]
in inorganic_stone_gem.txt. Left in the TILE token just in case. And the scales still aren't gems. I've added the material WYRMSCALE, I've tried using STONE_TEMPLATE in both the gem and creature raws, and I've messed with the creature's scale material template, both with STONE and WYRMSCALE. No errorlog messages, but nothing's working.
Using
[USE_TISSUE_TEMPLATE:SCALE:DRAKESCALE_TEMPLATE]
[TISSUE_MATERIAL:INORGANIC:WYRMSCALE]
as well. DRAKESCALE being a custom scale template.
These will work, but when sheared they are not classed as a ROUGH,SMALLGEM,GEM item they are classed as CORPSEPIECE
No need anymore. It turns out that adding [PEARL] to the material template turns it into pearl, which is used to decorate from the Craftdwarf's Workshop. Thanks though.
That's a quick a dirty way of doing it. But if you go with what you were trying before you could have done this:
[INORGANIC:WYRMSCALE]
[USE_MATERIAL_TEMPLATE:WYRMSCALE_TEMPLATE]
[MATERIAL_VALUE:3][DISPLAY_COLOR:5:1:1][TILE:169][IS_GEM:iridescent scale:iridescent scales:OVERWRITE_SOLID]
[REACTION_CLASS:GEM_SCALE][USE_TISSUE_TEMPLATE:SCALE:DRAKESCALE_TEMPLATE]
[TISSUE_MATERIAL:INORGANIC:WYRMSCALE]
[REACTION:CUT_GEM_SCALES]
[NAME:cut scales to gem]
[BUILDING:CRAFTSMAN:NONE] ------- Will show up in the Craftshop
[REAGENT:A:1:NONE:NONE:NONE:NONE][USE_BODY_COMPONENT][UNROTTEN]
[REACTION_CLASS:GEM_SCALE]
[PRODUCT:100:1:SMALLGEM:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:CUTGEM] -------- Gem Cutters will do this
Dont forget to permit the Reaction in the Entity