Code in my mod to create the autoplace for "Lithia Water" in my mod.
Code: Select all
data.raw.resource["lithia-water"].autoplace = resource_autoplace.resource_autoplace_settings{
name = "ground-water", -- autoplace control name
patch_set_name = "lithia-water", -- resource name, needed if different than autoplace control name
order = "c",
base_density = 8.2,
base_spots_per_km2 = 1.8,
random_probability = 1/48,
random_spot_size_minimum = 1,
random_spot_size_maximum = 1,
additional_richness = 220000,
has_starting_area_placement = false,
regular_rq_factor_multiplier = 1
}
Actual result: There seems to be a control option added called "lithia-water", which doesn't actually do anything, "ground-water" still controls the Lithia water resource as expected.
Required mods:
https://mods.factorio.com/mod/bobores
https://mods.factorio.com/mod/boblibrary
Note: the ores mod is intended to be run with more of my mods, by default no ores are added, you will need to go into the mod options and turn on all the ores. (at the very least the water ores) to reproduce this bug.