From a943428b11df89686e243ca3a0ccf0d46aea3f5f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 10 Mar 2019 06:37:36 +0100 Subject: [PATCH] Simplify pumpkin map generation --- mods/MAPGEN/mcl_biomes/init.lua | 13 ++++--------- mods/MAPGEN/mcl_mapgen_core/init.lua | 13 ++++--------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua index 89746e0342..b3528570f3 100644 --- a/mods/MAPGEN/mcl_biomes/init.lua +++ b/mods/MAPGEN/mcl_biomes/init.lua @@ -2953,14 +2953,10 @@ local function register_decorations() -- Pumpkin minetest.register_decoration({ - deco_type = "schematic", - schematic = { - size = { x=1, y=2, z=1 }, - data = { - { name = "air", prob = 0 }, - { name = "mcl_farming:pumpkin_face", param1=255, }, - }, - }, + deco_type = "simple", + decoration = "mcl_farming:pumpkin_face", + param2 = 0, + param2_max = 3, place_on = {"group:grass_block_no_snow"}, sidelen = 16, noise_params = { @@ -2973,7 +2969,6 @@ local function register_decorations() }, y_min = 1, y_max = mcl_vars.mg_overworld_max, - rotation = "random", }) -- Grasses and ferns diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index fbdf00400d..99acfaa363 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -784,14 +784,10 @@ local function register_mgv6_decorations() -- Pumpkin minetest.register_decoration({ - deco_type = "schematic", - schematic = { - size = { x=1, y=2, z=1 }, - data = { - { name = "air", prob = 0 }, - { name = "mcl_farming:pumpkin_face" }, - }, - }, + deco_type = "simple", + decoration = "mcl_farming:pumpkin_face", + param2 = 0, + param2_max = 3, place_on = {"group:grass_block_no_snow"}, sidelen = 16, noise_params = { @@ -804,7 +800,6 @@ local function register_mgv6_decorations() }, y_min = 1, y_max = mcl_vars.overworld_max, - rotation = "random", }) -- Tall grass