From c914e690817837f2f40792ad0230cc58760eb7eb Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 21 Mar 2017 00:23:09 +0100 Subject: [PATCH] Mapgen: Rotate pumpkins randomly --- mods/MAPGEN/mcl_mapgen_core/init.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index 59af4700dc..fe10bcbdf5 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -723,7 +723,14 @@ local function register_mgv6_decorations() -- Pumpkin minetest.register_decoration({ - deco_type = "simple", + deco_type = "schematic", + schematic = { + size = { x=1, y=2, z=1 }, + data = { + { name = "air", prob = 0 }, + { name = "mcl_farming:pumpkin_face", param1=255, }, + }, + }, place_on = {"mcl_core:dirt_with_grass"}, sidelen = 16, noise_params = { @@ -736,7 +743,7 @@ local function register_mgv6_decorations() }, y_min = 3, y_max = 29, - decoration = "mcl_farming:pumpkin_face", + rotation = "random", }) -- Melon