I'm creating a new surface and I want to specify additional things to spawn, like gun turrets.
Code: Select all
local map = {
default_enable_all_autoplace_controls = false,
autoplace_settings={
entity = {
settings = {
["gun-turret"] = {
frequency = 10,
size = 10,
richness = 10
}
}
}
}
}
game.create_surface("arena", map)
If I change entity to "tree-01" it correctly fills whole map with dense forest.
Already checked internet for "autoplace_settings" and they point me to print game.entity_prototypes, but all it gives me is bunch of nil.
Does anybody know what I do wrong?