1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-14 22:40:31 +01:00

Added plants and dirt monsters on watershed:drygrass

This commit is contained in:
Gael-de-Sailly 2015-07-08 19:23:21 +02:00
parent 7cfcbc63fc
commit c7e4bd9745
3 changed files with 18 additions and 3 deletions

View File

@ -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 -- 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 -- register spawn egg
mobs:register_egg("mobs:dirt_monster", "Dirt Monster", "default_dirt.png", 1) mobs:register_egg("mobs:dirt_monster", "Dirt Monster", "default_dirt.png", 1)

View File

@ -199,7 +199,8 @@ plantslib:register_generate_plant({
"default:dirt_with_grass", "default:dirt_with_grass",
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:peat", "sumpf:peat",
"sumpf:sumpf" "sumpf:sumpf",
"watershed:drygrass"
}, },
max_count = 15, --10,15 max_count = 15, --10,15
rarity = 101 - 4, --3,4 rarity = 101 - 4, --3,4
@ -244,7 +245,8 @@ plantslib:register_generate_plant({
"default:dirt_with_grass", "default:dirt_with_grass",
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:peat", "sumpf:peat",
"sumpf:sumpf" "sumpf:sumpf",
"watershed:drygrass"
}, },
max_count = 55, --10,15 max_count = 55, --10,15
rarity = 101 - 4, --3,4 rarity = 101 - 4, --3,4

View File

@ -105,6 +105,19 @@ plantslib:register_generate_plant({
abstract_molehills.place_molehill 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...") minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------