Skip to content

Commit

Permalink
Put some wretched ruins out on the tundra, tundra needs a little love
Browse files Browse the repository at this point in the history
  • Loading branch information
FaceDeer committed Jan 16, 2020
1 parent febc19b commit be02dcf
Show file tree
Hide file tree
Showing 7 changed files with 389 additions and 1 deletion.
65 changes: 65 additions & 0 deletions default_settlements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,69 @@ end

settlements.register_settlement("desert", desert_settlements)

end

if minetest.settings:get_bool("settlements_ruins", true) and modpath_default and modpath_stairs then

local ruin_settlements = {
surface_materials = {
"default:permafrost",
"default:permafrost_with_stones",
"default:permafrost_with_moss",
},

platform_shallow = "default:gravel",
platform_deep = "default:stone",

building_count_min = 3,
building_count_max = 15,

altitude_min = 2,
altitude_max = 300,

schematics = {
{
name = "ruin_small",
schematic = dofile(schem_path.."ruin_small.lua"),
buffer = 1,
max_num = 0.7,
platform_clear_above = false,
},
{
name = "ruin_med",
schematic = dofile(schem_path.."ruin_med.lua"),
buffer = 1,
max_num = 0.4,
platform_clear_above = false,
},
{
name = "ruin_monolith",
schematic = dofile(schem_path.."ruin_monolith.lua"),
buffer = 1,
max_num = 0.1,
platform_clear_above = false,
},
{
name = "ruin_tower",
schematic = dofile(schem_path.."ruin_tower.lua"),
buffer = 1,
max_num = 0.4,
platform_clear_above = false,
},
},

generate_name = function(pos)
if minetest.get_modpath("namegen") then
return namegen.generate("ruin_settlement")
end
return "Ruins"
end,
}

if minetest.get_modpath("namegen") then
namegen.parse_lines(io.lines(modpath.."/namegen_ruins.cfg"))
end

settlements.register_settlement("ruins", ruin_settlements)

end
9 changes: 9 additions & 0 deletions namegen_ruins.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name "ruin_settlement" {
customGroupA = "Ice, Darkness, Chaos, Silence, Emptiness, Isolation, Insanity, Desolation, Solitude, Exile, Dust, Sand, Seclusion, Gloom, Obscurity, Twilight, Nightfall, Murk, Shade, Shadows, Dusk, Destitution, Waste, Exhaustion, Misery, Despair, Discouragement, Foreboding, Grief, Horror, Malaise, Sadness, Sorrow, Woe, Dolor, Anguish, Devastation, Destruction, Skulls, Bones"

customGroupB = "Wreck, Ruin, Bane, Debris, Remnants, Rubble, Scar, Fragments, Remains, Vestige, Lees, Shards, Labyrinth, Citadel, Castle, Fort, Fortress, Settlement, Tomb, Catacomb, Waystation, Spire, Hollow, Grave"

customGroupC = "Lost, Distant, Icy, Dark, Chaotic, Silent, Empty, Isolated, Desolate, Solitary, Dusty, Sandy, Secluded, Gloomy, Foreboding, Grievous, Sorrowful, Anguished, Devastated, Silver, Gold, Iron, Rusted, Abandoned, Shunned, Frozen, Abysmal, Bony, Unknown, Infested, Flint, Chert, Crumbled, Crushed, Fallen, Wretched, Misty, Shrouded"

rules = "$B_of_$A, The_$C_$B, %20The_$C_$A"
}
78 changes: 78 additions & 0 deletions schematics/ruin_med.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
local n1 = { name = "default:cobble" }
local n2 = { name = "default:cobble", prob=128 }
local n3 = { name = "default:gravel", prob=128 }
local n4 = { name = "air", prob=0 }

return {
yslice_prob = {
{ypos=0},
{ypos=1},
{ypos=2, prob=128},
{ypos=3},
},
size = {y = 4, x = 7, z = 7},
data = {
-- z=0, y=0
n1, n1, n1, n1, n1, n1, n1,
-- z=0, y=1
n1, n1, n1, n1, n1, n1, n1,
-- z=0, y=2
n1, n1, n1, n1, n1, n1, n1,
-- z=0, y=3
n2, n2, n2, n2, n2, n2, n2,

-- z=1, y=0
n1, n1, n1, n1, n1, n1, n1,
-- z=1, y=1
n1, n3, n3, n3, n3, n3, n1,
-- z=1, y=2
n1, n4, n4, n4, n4, n4, n1,
-- z=1, y=3
n2, n4, n4, n4, n4, n4, n2,

-- z=2, y=0
n1, n1, n1, n1, n1, n1, n1,
-- z=2, y=1
n1, n3, n3, n3, n3, n3, n1,
-- z=2, y=2
n1, n4, n4, n4, n4, n4, n1,
-- z=2, y=3
n2, n4, n4, n4, n4, n4, n2,

-- z=3, y=0
n1, n1, n1, n1, n1, n1, n1,
-- z=3, y=1
n1, n3, n3, n3, n3, n3, n4,
-- z=3, y=2
n1, n4, n4, n4, n4, n4, n4,
-- z=3, y=3
n2, n4, n4, n4, n4, n4, n4,

-- z=4, y=0
n1, n1, n1, n1, n1, n1, n1,
-- z=4, y=1
n1, n3, n3, n3, n3, n3, n1,
-- z=4, y=2
n1, n4, n4, n4, n4, n4, n1,
-- z=4, y=3
n2, n4, n4, n4, n4, n4, n2,

-- z=5, y=0
n1, n1, n1, n1, n1, n1, n1,
-- z=5, y=1
n1, n3, n3, n3, n3, n3, n1,
-- z=5, y=2
n1, n4, n4, n4, n4, n4, n1,
-- z=5, y=3
n2, n4, n4, n4, n4, n4, n2,

-- z=6, y=0
n1, n1, n1, n1, n1, n1, n1,
-- z=6, y=1
n1, n1, n1, n1, n1, n1, n1,
-- z=6, y=2
n1, n1, n1, n1, n1, n1, n1,
-- z=6, y=3
n2, n2, n2, n2, n2, n2, n2,
}
}
73 changes: 73 additions & 0 deletions schematics/ruin_monolith.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
local n1 = { name = "default:cobble" }
local n2 = { name = "stairs:stair_outer_cobble", param2 = 1 }
local n3 = { name = "stairs:stair_cobble" }
local n4 = { name = "stairs:stair_outer_cobble" }
local n5 = { name = "air" }
local n6 = { name = "stairs:slab_cobble", param2 = 8 }
local n7 = { name = "stairs:stair_cobble", param2 = 1 }
local n8 = { name = "stairs:stair_cobble", param2 = 3 }
local n9 = { name = "stairs:slab_cobble", param2 = 16 }
local n10 = { name = "stairs:slab_cobble", param2 = 12 }
local n11 = { name = "walls:cobble" }
local n12 = { name = "default:mese_post_light", prob = 32 }
local n13 = { name = "stairs:stair_outer_cobble", param2 = 2 }
local n14 = { name = "stairs:stair_cobble", param2 = 2 }
local n15 = { name = "stairs:stair_outer_cobble", param2 = 3 }
local n16 = { name = "stairs:slab_cobble", param2 = 4 }

return {
yslice_prob = {},
size = {y = 8, x = 3, z = 3},
data = {
-- z=0, y=-7
n1, n1, n1,
-- z=0, y=-6
n2, n3, n4,
-- z=0, y=-5
n5, n6, n5,
-- z=0, y=-4
n5, n6, n5,
-- z=0, y=-3
n5, n5, n5,
-- z=0, y=-2
n5, n5, n5,
-- z=0, y=-1
n5, n5, n5,
-- z=0, y=0
n5, n5, n5,

-- z=1, y=-7
n1, n1, n1,
-- z=1, y=-6
n7, n1, n8,
-- z=1, y=-5
n9, n1, n10,
-- z=1, y=-4
n9, n1, n10,
-- z=1, y=-3
n5, n1, n5,
-- z=1, y=-2
n5, n1, n5,
-- z=1, y=-1
n5, n11, n5,
-- z=1, y=0
n5, n12, n5,

-- z=2, y=-7
n1, n1, n1,
-- z=2, y=-6
n13, n14, n15,
-- z=2, y=-5
n5, n16, n5,
-- z=2, y=-4
n5, n16, n5,
-- z=2, y=-3
n5, n5, n5,
-- z=2, y=-2
n5, n5, n5,
-- z=2, y=-1
n5, n5, n5,
-- z=2, y=0
n5, n5, n5,
}
}
60 changes: 60 additions & 0 deletions schematics/ruin_small.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
local n1 = { name = "default:cobble" }
local n2 = { name = "default:cobble", prob=128 }
local n3 = { name = "default:gravel", prob=128 }
local n4 = { name = "air", prob=0 }

return {
yslice_prob = {
{ypos=0},
{ypos=1},
{ypos=2, prob=128},
{ypos=3},
},
size = {y = 4, x = 5, z = 5},
data = {
-- z=0, y=0
n1, n1, n1, n1, n1,
-- z=0, y=1
n1, n1, n1, n1, n1,
-- z=0, y=2
n1, n1, n1, n1, n1,
-- z=0, y=3
n2, n2, n2, n2, n2,

-- z=1, y=0
n1, n1, n1, n1, n1,
-- z=1, y=1
n1, n3, n3, n3, n1,
-- z=1, y=2
n1, n4, n4, n4, n1,
-- z=1, y=3
n2, n4, n4, n4, n2,

-- z=2, y=0
n1, n1, n1, n1, n1,
-- z=2, y=1
n1, n3, n3, n3, n3,
-- z=2, y=2
n1, n4, n4, n4, n4,
-- z=2, y=3
n2, n4, n4, n4, n4,

-- z=3, y=0
n1, n1, n1, n1, n1,
-- z=3, y=1
n1, n3, n3, n3, n1,
-- z=3, y=2
n1, n4, n4, n4, n1,
-- z=3, y=3
n2, n4, n4, n4, n2,

-- z=4, y=0
n1, n1, n1, n1, n1,
-- z=4, y=1
n1, n1, n1, n1, n1,
-- z=4, y=2
n1, n1, n1, n1, n1,
-- z=4, y=3
n2, n2, n2, n2, n2,
}
}
102 changes: 102 additions & 0 deletions schematics/ruin_tower.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
local n1 = { name = "default:cobble" }
local n2 = { name = "default:cobble", prob=128 }
local n3 = { name = "default:gravel", prob=128 }
local n4 = { name = "stairs:stair_cobble", param2 = 1 }
local n5 = { name = "air", prob=0 }
local n6 = { name = "stairs:slab_cobble", param2 = 22, prob=128 }
local n7 = { name = "stairs:stair_cobble", param2 = 1, prob=128 }
local n8 = { name = "stairs:stair_cobble" }
local n9 = { name = "stairs:slab_cobble", param2 = 21, prob=128 }
local n10 = { name = "stairs:stair_cobble", param2 = 2, prob=128 }
local n11 = { name = "stairs:slab_cobble", param2 = 23, prob=128 }
local n12 = { name = "stairs:stair_cobble", param2 = 23 }
local n13 = { name = "stairs:stair_cobble", param2 = 3 }

return {
yslice_prob = {
{ypos=0},
{ypos=1},
{ypos=2},
{ypos=3},
{ypos=4},
{ypos=5, prob=128},
{ypos=6},
},
size = {y = 7, x = 5, z = 5},
data = {
-- z=-4, y=0
n1, n1, n1, n1, n1,
-- z=-4, y=1
n1, n1, n1, n1, n1,
-- z=-4, y=2
n1, n1, n1, n1, n1,
-- z=-4, y=3
n1, n1, n1, n1, n1,
-- z=-4, y=4
n1, n1, n1, n1, n1,
-- z=-4, y=5
n1, n1, n1, n1, n1,
-- z=-4, y=6
n2, n2, n2, n2, n2,

-- z=-3, y=0
n1, n1, n1, n1, n1,
-- z=-3, y=1
n1, n3, n4, n1, n1,
-- z=-3, y=2
n1, n5, n5, n5, n1,
-- z=-3, y=3
n1, n5, n5, n5, n1,
-- z=-3, y=4
n1, n2, n6, n5, n1,
-- z=-3, y=5
n1, n5, n7, n2, n1,
-- z=-3, y=6
n2, n5, n5, n5, n2,

-- z=-2, y=0
n1, n1, n1, n1, n1,
-- z=-2, y=1
n5, n3, n3, n1, n1,
-- z=-2, y=2
n5, n5, n5, n8, n1,
-- z=-2, y=3
n1, n9, n5, n5, n1,
-- z=-2, y=4
n1, n10, n5, n5, n2,
-- z=-2, y=5
n1, n5, n5, n11, n1,
-- z=-2, y=6
n2, n5, n5, n5, n2,

-- z=-1, y=0
n1, n1, n1, n1, n1,
-- z=-1, y=1
n1, n3, n1, n1, n1,
-- z=-1, y=2
n1, n5, n1, n1, n1,
-- z=-1, y=3
n1, n12, n13, n5, n1,
-- z=-1, y=4
n1, n5, n5, n5, n1,
-- z=-1, y=5
n1, n5, n5, n5, n1,
-- z=-1, y=6
n2, n5, n5, n5, n2,

-- z=0, y=0
n1, n1, n1, n1, n1,
-- z=0, y=1
n1, n1, n1, n1, n1,
-- z=0, y=2
n1, n1, n1, n1, n1,
-- z=0, y=3
n1, n1, n1, n1, n1,
-- z=0, y=4
n1, n1, n1, n1, n1,
-- z=0, y=5
n1, n1, n1, n1, n1,
-- z=0, y=6
n2, n2, n2, n2, n2,
}
}
Loading

0 comments on commit be02dcf

Please sign in to comment.