I need help figuring out why this reaction isn't behaving as I would like it to.
I have a plant-based creature which I shear, which produces corpsepiece items made of plant material. I am trying to come up with a reaction that turns these corpsepieces into plant-thread, in exactly the same way that the base game's spinning reaction takes a stack of hair material corpsepiece and turns them into yarn.
[REACTION:PROCESS_PLANT_FOLIAGE_TO_THREAD]
[NAME:Process Plants (Foliage)]
[DESCRIPTION:Process plant foliage sheared from a plant creature into usable thread.]
[BUILDING:FARMER:CUSTOM_F]
[REAGENT:foliage:1:NONE:NONE:NONE:NONE]
[USE_BODY_COMPONENT]
[HAS_MATERIAL_REACTION_PRODUCT:PRESS_PAPER_MAT]
[UNROTTEN]
[PRODUCT:100:1:THREAD:NONE:GET_MATERIAL_FROM_REAGENT:foliage:PRESS_PAPER_MAT]
[PRODUCT_DIMENSION:15000]
[MAX_MULTIPLIER:1]
[SKILL:PROCESSPLANTS]
While the spinning reaction reduces the size of the stack by 1 and produces 1 thread, my reaction always takes the whole stack, and always gives just one thread. This happens whether or not I have the [MAX_MULTIPLIER:1] token in there. It seems to be completely ignored.
Here is another similar reaction that
does work:
[REACTION:CARVE_BONE_BLOCKS]
[NAME:carve bone Blocks]
[DESCRIPTION:Requires 1 bone to produce 1 block.]
[BUILDING:BONE_SHOP:CUSTOM_O]
[REAGENT:bone:1:NONE:NONE:NONE:NONE]
[USE_BODY_COMPONENT][ANY_BONE_MATERIAL][UNROTTEN]
[PRODUCT:100:1:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:bone:NONE]
[MAX_MULTIPLIER:1]
[SKILL:BONECARVE]
This reaction also takes a stack of corpsepiece, but for some reason does seem to respect the [MAX_MULTIPLIER:1] token.
Does anyone have any idea why this isn't working in the former case, but does work in the latter?
Things I've already tested:
I've changed the product to both different item tokens and different material tokens. As far as I can tell, the product isn't the problem. That must mean that for some reason, the specific material of the corpsepiece reagent affects how stacks are processed.