Please add an example for the new Shared Probability type so that the syntax is understood.
https://lua-api.factorio.com/latest/typ ... ition.html
Example for new 2.1 probabilities
-
Edenstudent
- Manual Inserter

- Posts: 2
- Joined: Thu May 15, 2025 2:03 am
- Contact:
Re: Example for new 2.1 probabilities
Specifically something like
Code: Select all
-- 50/50 Always returns an item, with a chance of it being iron or copper plate
results =
{
{type = "item", name = "iron-plate", amount = 1, shared_probability = {min = 0, max = 0.5}},
{type = "item", name = "copper-plate", amount = 1, shared_probability = {min = 0.5, max = 1}},
}
