Code: Select all
/c game.create_surface("justdirt", {
default_enable_all_autoplace_controls=false,
autoplace_settings={
tile={
treat_missing_as_default=false,
settings={
["dirt-6"]={ frequency="normal", size="normal", richness="normal" }
}
}
}
})
Reading back the values via "/c log(serpent.block(game.surfaces["justdirt"].map_gen_settings))" shows the values were properly persisted:
Code: Select all
autoplace_settings = {
tile = {
settings = {
["dirt-6"] = {
frequency = "normal",
richness = "normal",
size = "normal"
}
},
treat_missing_as_default = false
}
},
cliff_settings = {
cliff_elevation_0 = 10,
cliff_elevation_interval = 10,
name = "cliff"
},
height = 2000000,
peaceful_mode = false,
seed = 2826709816,
starting_area = "normal",
starting_points = {
{
x = 0,
y = 0
}
},
terrain_segmentation = "normal",
water = "normal",
width = 2000000
}