Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do I mod this in?  (Read 549 times)

UristMcVampire

  • Bay Watcher
  • [NOT_LIVING][BLOODSUCKER]
    • View Profile
How do I mod this in?
« on: June 05, 2019, 11:50:20 am »

I want to add a reaction to convert meat into a building material. How do I do this?
Logged
GENERATION 10: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.


 Naga/Lamia race

Wannabehero

  • Bay Watcher
    • View Profile
Re: How do I mod this in?
« Reply #1 on: June 05, 2019, 04:27:10 pm »

Ask general modding questions in the Question Megathread please.

http://www.bay12forums.com/smf/index.php?topic=168353.0

To answer your question, you simply need a reaction that will turn a meat (MEAT:NONE) into a Bar, Boulder, Block, or Log. Those item types can be used in constructions.  I would personally recommend block.

Use GET_MATERIAL_FROM_REAGENT in your product definition to have the block be made out of your meat.  It will carry over the actual material name that the meat came from; in animals this is "muscle" not "meat", just as an FYI.  You should probably include [UNROTTEN] in your reagent line as well.
Logged

voliol

  • Bay Watcher
    • View Profile
    • Website
Re: How do I mod this in?
« Reply #2 on: June 05, 2019, 04:49:46 pm »

The Modded Hell raws should have a ready-made reaction for this. Otherwise, do what Wannabehero said.