Skip to content

Commit db632b6

Browse files
authoredFeb 9, 2020
Fix missing papyrus in savanna, add a dry dirt version
Papyrus was missing from the dry dirt 'savanna_shore' biome due to only being placed on dirt. A mistake made when changing savanna dirt to dry dirt. Rename existing papyrus schematic to 'papyrus_on_dirt' and only place in the 'rainforest_swamp' biome. Add a new papyrus schematic 'papyrus_on_dry_dirt', placed in the 'savanna' biome.
1 parent 1420376 commit db632b6

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed
 

‎mods/default/mapgen.lua

+27-3
Original file line numberDiff line numberDiff line change
@@ -2143,8 +2143,10 @@ function default.register_decorations()
21432143

21442144
-- Papyrus
21452145

2146+
-- Dirt version for rainforest swamp
2147+
21462148
minetest.register_decoration({
2147-
name = "default:papyrus",
2149+
name = "default:papyrus_on_dirt",
21482150
deco_type = "schematic",
21492151
place_on = {"default:dirt"},
21502152
sidelen = 16,
@@ -2156,10 +2158,32 @@ function default.register_decorations()
21562158
octaves = 3,
21572159
persist = 0.7
21582160
},
2159-
biomes = {"savanna_shore", "rainforest_swamp"},
2161+
biomes = {"rainforest_swamp"},
2162+
y_max = 0,
2163+
y_min = 0,
2164+
schematic = minetest.get_modpath("default") .. "/schematics/papyrus_on_dirt.mts",
2165+
})
2166+
2167+
-- Dry dirt version for savanna shore
2168+
2169+
minetest.register_decoration({
2170+
name = "default:papyrus_on_dry_dirt",
2171+
deco_type = "schematic",
2172+
place_on = {"default:dry_dirt"},
2173+
sidelen = 16,
2174+
noise_params = {
2175+
offset = -0.3,
2176+
scale = 0.7,
2177+
spread = {x = 200, y = 200, z = 200},
2178+
seed = 354,
2179+
octaves = 3,
2180+
persist = 0.7
2181+
},
2182+
biomes = {"savanna_shore"},
21602183
y_max = 0,
21612184
y_min = 0,
2162-
schematic = minetest.get_modpath("default") .. "/schematics/papyrus.mts",
2185+
schematic = minetest.get_modpath("default") ..
2186+
"/schematics/papyrus_on_dry_dirt.mts",
21632187
})
21642188

21652189
-- Bush
77 Bytes
Binary file not shown.

‎schematic_tables.txt

+18-1
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ mts_save("large_cactus", {
21002100

21012101
-- Papyrus
21022102

2103-
mts_save("papyrus", {
2103+
mts_save("papyrus_on_dirt", {
21042104
size = {x = 1, y = 7, z = 1},
21052105
data = {
21062106
{name = "default:dirt", prob = 255, force_place = true},
@@ -2117,6 +2117,23 @@ mts_save("papyrus", {
21172117
},
21182118
})
21192119

2120+
mts_save("papyrus_on_dry_dirt", {
2121+
size = {x = 1, y = 7, z = 1},
2122+
data = {
2123+
{name = "default:dry_dirt", prob = 255, force_place = true},
2124+
{name = "default:dry_dirt", prob = 255, force_place = true},
2125+
{name = "default:papyrus", prob = 255},
2126+
{name = "default:papyrus", prob = 255},
2127+
{name = "default:papyrus", prob = 255},
2128+
{name = "default:papyrus", prob = 255},
2129+
{name = "default:papyrus", prob = 255},
2130+
},
2131+
yslice_prob = {
2132+
{ypos = 2, prob = 127},
2133+
{ypos = 3, prob = 127},
2134+
},
2135+
})
2136+
21202137

21212138
-- Bush
21222139

0 commit comments

Comments
 (0)