Page 1 of 1
Example for new 2.1 probabilities
Posted: Sat Aug 22, 2026 4:50 am
by Edenstudent
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
Re: Example for new 2.1 probabilities
Posted: Sat Aug 22, 2026 4:56 am
by PennyJim
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}},
}