Assembly Machine - Recipe and output probabilities
Posted: Sun Sep 01, 2019 3:01 pm
I am working on a mod where all machines will create waste/scrap. Its a twist on Amator Phasma's Recycling mod
The idea is that all machines/smelters will produce waste/scrap and depending on the machine level, the chances for waste/scrap goes down but never to zero.
The vanilla formula for green circuits is: 3xcopper cable + 1xiron plate > electronic circuit.
In my mod it will become:
3xcopper cable + 1xiron plate > electronic circuit (X% chance) + copper scrap / iron scrap (100-X% chance)
All scrap/waste items will be in it's own recipe.category
Now i could define recipes like the following:
But i would rather do it at CraftingMachine level where
However when i check the Wiki on Prototype/CraftingMachine I cannot find hooks to use this way. Is this possible at all?
The idea is that all machines/smelters will produce waste/scrap and depending on the machine level, the chances for waste/scrap goes down but never to zero.
The vanilla formula for green circuits is: 3xcopper cable + 1xiron plate > electronic circuit.
In my mod it will become:
3xcopper cable + 1xiron plate > electronic circuit (X% chance) + copper scrap / iron scrap (100-X% chance)
All scrap/waste items will be in it's own recipe.category
Now i could define recipes like the following:
Code: Select all
MK1 3xcopper cable + 1xiron plate > electronic circuit (60% chance) + copper scrap / iron scrap (40% chance)
MK2 3xcopper cable + 1xiron plate > electronic circuit (70% chance) + copper scrap / iron scrap (30% chance)
MK3 3xcopper cable + 1xiron plate > electronic circuit (80% chance) + copper scrap / iron scrap (20% chance)
...
Code: Select all
MK1 assembly machine = 60% success rate for recipe.category!=x, 40% for recipe.category=x
MK2 assembly machine = 70% success rate for recipe.category!=x, 30% for recipe.category=x
MK3 assembly machine = 80% success rate for recipe.category!=x, 20% for recipe.category=x
...