Fire chances

Automatic fires select a random fire type based on chances determined in the configuration file. To set this up, navigate to the automatic fires section of the config.lua file and then find the fireTypesToSpawn = {section.

-- To set the minimum and maximum automatic fire sizes, see each fire type individually
-- The fire types listed here must all be valid fire types configured in the fireTypes section.
            { type = "normal", chance = 0.6},
            { type = "chemical", chance = 0.2},
            { type = "normal2", chance = 0.4},
            { type = "normal3", chance = 0.5},
            { type = "bonfire", chance = 0.1},
            { type = "electrical", chance = 0.2},
},

As you can see, each fire type must be setup here if you wish to have it spawned automatically. You do not have to include every fire type so you can choose the best setup for your server.

All fire types setup here must be validly setup in the fire types section of the config. Adding fire types which have not been setup will lead to automatic fires not functioning properly.

Chances are probabilities out of 1. The greater chance you want that type to have, give it a decimal closer to 1.

You may want to experiment with this for your server and if you find that a fire type is spawning too often, reduce the probability and subsequently increase it if it is spawning too rarely.

Last updated