From Wiki:
Code: Select all
--in settings.lua:
data:extend({
{
type = "int-setting",
name = "my-mod-stone-wall-stack-size",
setting_type = "startup",
minimum_value = 1,
default_value = 100
}
})
--in data.lua:
data.raw.item["stone-wall"].stack_size = settings.startup["my-mod-stone-wall-stack-size"].value
Code: Select all
[item-description]
k2cp-city=...They can also only be placed within __1__ tiles of each...
My settings.lua:
Code: Select all
data:extend({
{
type = "int-setting",
name = "k2cp-city-distance",
setting_type = "startup",
admin = true,
default_value = 320,
minimum_value = 32,
order = "c"
},
My data.lua:
Code: Select all
require("prototypes.entities")
require("prototypes.items")
require("prototypes.recipes")
require("prototypes.style")
require("prototypes.technology")
data.raw.item["k2cp-city"].localized_description = {"item-description.k2cp-city", settings.startup["k2cp-city-distance"].value}