I wanted to write a little mod for myself (and maybe even for the mod portal) that adds a recipe that has no guarantee of output. Now the problem is that I can't find a working example anywhere on the internet. I don't know Lua. That's why I have to see everything once or use it (several times) to understand it.
I would be happy if someone could tell me what I have to do for this.
Here is the code I have so far. (Which unfortunately doesn't work)
Code: Select all
{
type = "recipe",
name = "meaty chunks synthesis",
category = "crafting-with-fluid",
energy_required = 60,
enabled = true,
ingredients =
{
{"wood", 10},
{type="fluid", name="steam", amount=50}
},
results =
{
{type="item", name="meaty-chunks", probability=0.5, amount=1}
},
result = "meaty-chunks"
},