Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local noise = require("noise")
- data:extend{
- {
- type = "noise-expression",
- name = "lab-expr-1",
- expression = noise.define_noise_function(
- function(x, y, tile, map)
- return (((noise.ridge(x, 0, 1) - 0.5) *
- (noise.ridge(y, 0, 1) - 0.5)) * 16 + 1)
- end)
- }, {
- type = "noise-expression",
- name = "lab-expr-2",
- expression = noise.define_noise_function(
- function(x, y, tile, map)
- return (((noise.ridge(x, 0, 1) - 0.5) *
- (noise.ridge(y, 0, 1) - 0.5)) * -16 + 1)
- end)
- }
- }
- data.raw["tile"]["lab-dark-1"].autoplace =
- {
- default_enabled = false
- }
- data.raw["tile"]["lab-dark-2"].autoplace =
- {
- default_enabled = false
- }
- local mgp = data.raw["map-gen-presets"].default
- mgp["lab-preset"] = {
- name = "lab-preset",
- order = "z",
- basic_settings = {
- property_expression_names = {
- ["tile:lab-dark-1:probability"] = "lab-expr-1",
- ["tile:lab-dark-1:probability"] = "lab-expr-2"
- },
- water = "none",
- cliff_settings = {richness = 0},
- default_enable_all_autoplace_controls = false,
- autoplace_controls = {},
- autoplace_settings = {
- tile = {
- settings = {
- ["lab-dark-1"] = {probability = noise.var("lab-expr-1")},
- ["lab-dark-2"] = {probability = noise.var("lab-expr-2")}
- }
- }
- }
- },
- advanced_settings = {pollution = {enabled = false}}
- }
Advertisement
Add Comment
Please, Sign In to add comment