From c7e4bd97455944ac39785fb2de122961043bed96 Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Wed, 8 Jul 2015 19:23:21 +0200 Subject: [PATCH] Added plants and dirt monsters on watershed:drygrass --- mods/mobs/dirtmonster.lua | 2 +- mods/plantlife_modpack/bushes/init.lua | 6 ++++-- mods/plantlife_modpack/molehills/init.lua | 13 +++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/mods/mobs/dirtmonster.lua b/mods/mobs/dirtmonster.lua index d382fa41..22c8a165 100755 --- a/mods/mobs/dirtmonster.lua +++ b/mods/mobs/dirtmonster.lua @@ -52,6 +52,6 @@ mobs:register_mob("mobs:dirt_monster", { }, }) -- spawn on normal;grey dirt between -1 and 5 light, 1 in 7000 change, 1 dirt monster in area up to 31000 in height -mobs:register_spawn("mobs:dirt_monster", {"default:dirt_with_grass"}, 5, -1, 9500, 1, 31000) +mobs:register_spawn("mobs:dirt_monster", {"default:dirt_with_grass", "watershed:drygrass"}, 5, -1, 9500, 1, 31000) -- register spawn egg mobs:register_egg("mobs:dirt_monster", "Dirt Monster", "default_dirt.png", 1) diff --git a/mods/plantlife_modpack/bushes/init.lua b/mods/plantlife_modpack/bushes/init.lua index 7aa3ee12..51c34ed4 100755 --- a/mods/plantlife_modpack/bushes/init.lua +++ b/mods/plantlife_modpack/bushes/init.lua @@ -199,7 +199,8 @@ plantslib:register_generate_plant({ "default:dirt_with_grass", "stoneage:grass_with_silex", "sumpf:peat", - "sumpf:sumpf" + "sumpf:sumpf", + "watershed:drygrass" }, max_count = 15, --10,15 rarity = 101 - 4, --3,4 @@ -244,7 +245,8 @@ plantslib:register_generate_plant({ "default:dirt_with_grass", "stoneage:grass_with_silex", "sumpf:peat", - "sumpf:sumpf" + "sumpf:sumpf", + "watershed:drygrass" }, max_count = 55, --10,15 rarity = 101 - 4, --3,4 diff --git a/mods/plantlife_modpack/molehills/init.lua b/mods/plantlife_modpack/molehills/init.lua index 0e84e137..9292c6ab 100755 --- a/mods/plantlife_modpack/molehills/init.lua +++ b/mods/plantlife_modpack/molehills/init.lua @@ -105,6 +105,19 @@ plantslib:register_generate_plant({ abstract_molehills.place_molehill ) +plantslib:register_generate_plant({ + surface = {"watershed:drygrass"}, + max_count = Molehills_Max_Count, + rarity = 97, + min_elevation = 1, + max_elevation = 40, + avoid_nodes = {"group:tree","group:liquid","group:stone","group:falling_node"--[[,"air"]]}, + avoid_radius = 4, + plantlife_limit = -0.3, + }, + abstract_molehills.place_molehill +) + ----------------------------------------------------------------------------------------------- minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") -----------------------------------------------------------------------------------------------