Page 1 of 1

Making a recipe only usable in Assembler

Posted: Mon Mar 28, 2016 1:25 pm
by Murlocking
I downloaded Bob's Enemies and I wanted to modify a recipe for personal use.

The current recipe is 25 small artifacts for 1 Alien Artifact but I wanted to change the recipe so it can only be made in an Assembler to make it a bit less OP.
Using some power to convert the Artifacts only seems logical too me.

Do you guys know how to make a recipe only usable in an Assembler and maybe also increase the energy (time) required to craft an item in an assembler.


Thanks :)

Re: Making a recipe only usable in Assembler

Posted: Mon Mar 28, 2016 11:35 pm
by keyboardhack
It's possible to limit a recipe to only an assemebler 2 or 3 which is close enough to what you want to do. By looking at some of the recipes that have this restriction we can see what makes them special.
Lets take an engine as an example as it has to be made in an assembler.

Code: Select all

{
    type = "recipe",
    name = "engine-unit",
    energy_required = 20,
    category = "advanced-crafting",
    ingredients =
    {
      {"steel-plate", 1},
      {"iron-gear-wheel", 1},
      {"pipe", 2}
    },
    result = "engine-unit",
    enabled = false
}
If we compare it to other recipes then we can see that this one is different because it has the line

Code: Select all

category = "advanced-crafting",
So adding that line to the alien artifact recipe should limit it to be made in an assembler.
Now to mess with the power usage i assume you can add or modify the line below in the same recipe.

Code: Select all

energy_required = 20,
You can find the code for the recipe inside the mod by unpacking the mod. Now where the code is located inside the mod i can't help you with but a quick search in the mod should find it.

Re: Making a recipe only usable in Assembler

Posted: Mon Mar 28, 2016 11:41 pm
by Murlocking
Thank you so much!

That's exactly what I needed and I love the way you explain it to me :)

Cheers! :lol: