Allow to revert back to jungle leaves bushe and fallen logs

This commit is contained in:
Wuzzy 2017-09-13 03:15:16 +02:00
parent b357e927b4
commit 92d0dbdeef
2 changed files with 185 additions and 151 deletions

View file

@ -1,5 +1,19 @@
local mg_name = minetest.get_mapgen_setting("mg_name") local mg_name = minetest.get_mapgen_setting("mg_name")
-- Some mapgen settings
local imitate = minetest.settings:get("mcl_imitation_mode")
local generate_fallen_logs = false
-- Jungle bush type. Default (PC/Java Edition) is Jungle Wood + Oak Leaves
local jungle_bush_schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_bush_oak_leaves.mts"
if imitate == "pocket_edition" then
-- Simple fallen tree trunk logs (not very good yet)
generate_fallen_logs = true
-- Jungle bush: Jungle Wood + Jungle Leaves
jungle_bush_schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_bush_jungle_leaves.mts"
end
-- --
-- Register biomes -- Register biomes
-- --
@ -2431,6 +2445,7 @@ local function register_decorations()
register_large_flower("sunflower", {"SunflowerPlains"}, 2940, 0.01) register_large_flower("sunflower", {"SunflowerPlains"}, 2940, 0.01)
-- Jungle bush -- Jungle bush
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", deco_type = "schematic",
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"}, place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
@ -2446,7 +2461,7 @@ local function register_decorations()
biomes = {"Jungle"}, biomes = {"Jungle"},
y_min = 3, y_min = 3,
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_bush_oak_leaves.mts", schematic = jungle_bush_schematic,
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
}) })
minetest.register_decoration({ minetest.register_decoration({
@ -2464,7 +2479,7 @@ local function register_decorations()
biomes = {"JungleM"}, biomes = {"JungleM"},
y_min = 1, y_min = 1,
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_bush_oak_leaves.mts", schematic = jungle_bush_schematic,
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
}) })
minetest.register_decoration({ minetest.register_decoration({
@ -2482,11 +2497,14 @@ local function register_decorations()
biomes = {"JungleEdge", "JungleEdgeM"}, biomes = {"JungleEdge", "JungleEdgeM"},
y_min = 3, y_min = 3,
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_bush_oak_leaves.mts", schematic_jungle_bush_schematic,
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
}) })
-- Fallen logs -- Fallen logs
-- These fallen logs are not really good yet. They must be longer and also have one upright block.
-- Note the decortion API does not like wide schematics, they are likely to overhang.
if generate_fallen_logs then
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", deco_type = "schematic",
place_on = {"mcl_core:dirt_with_grass", "mcl_core:podzol", "mcl_core:coarse_dirt"}, place_on = {"mcl_core:dirt_with_grass", "mcl_core:podzol", "mcl_core:coarse_dirt"},
@ -2644,6 +2662,7 @@ local function register_decorations()
flags = "place_center_x", flags = "place_center_x",
rotation = "random", rotation = "random",
}) })
end
-- Lily pad -- Lily pad

View file

@ -59,3 +59,18 @@ craftguide_progressive_mode (EXPERIMENTAL: Enable recipe book progressive mode)
# Warning: Disabling this setting is currently EXPERIMENTAL! The generated map # Warning: Disabling this setting is currently EXPERIMENTAL! The generated map
# may not be that pretty. # may not be that pretty.
mcl_superflat_classic (Classic superflat map generation) bool true mcl_superflat_classic (Classic superflat map generation) bool true
# Which edition of Minecraft to imitate. This currently only affects two map
# generation aspects.
# This setting might be removed in a later version.
# Available options:
#
# pc_edition: PC Edition (later known as “Java Edition”).
# There are no fallen tree trunks.
# Jungle bushes have oak leaves.
#
# pocket_edition: Pocket Edition
# There are simple fallen tree trunks with mushrooms.
# Jungle bushes have jungle leaves.
mcl_imitation_mode (Imitated Minecraft edition) enum pc_edition pc_edition,pocket_edition