I want to add a variety of fish but do not see the need to create a bunch of different dark blobs in the water.
My plan was to randomize the results:
Code: Select all
myEntity["minable"] =
{
mining_time = 0.8,
results =
{
{
name = "option-one",
probability = 0.3,
amount = 2
},
{
name = "option-one",
probability = 0.3,
amount = 1
},
{
name = "option-two",
probability = 0.3,
amount = 1
},
{
name = "option-three",
probability = 0.1,
amount = 1
}
}
}
This makes it possible to get all options at once, or none at all.
What I wanted was a varied chance to get one of them 100% of the time, but always only one option.
How do I go about adding many new fish types without filling the water with a bunch of different fish?