1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-15 22:30:43 +02:00

Imported dryplants and ferns mods and all components of the Undergrowth modpack

This commit is contained in:
Vanessa Ezekowitz
2014-08-12 15:08:11 -04:00
parent da211cc07d
commit 3b7b242481
258 changed files with 5181 additions and 1 deletions

35
dryplants/moregrass.lua Normal file
View File

@ -0,0 +1,35 @@
-----------------------------------------------------------------------------------------------
-- Grasses - More Tall Grass 0.0.2
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- License (everything): WTFPL
-- Contains code from: plants_lib
-- Looked at code from: default
-----------------------------------------------------------------------------------------------
abstract_dryplants.grow_grass = function(pos)
local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
local grass_size = math.random(1,5)
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
or minetest.get_node(right_here).name == "default:junglegrass" then
minetest.add_node(right_here, {name="default:grass_"..grass_size})
end
end
plantslib:register_generate_plant({
surface = {
"default:dirt_with_grass",
"dryplants:grass_short",
"stoneage:grass_with_silex",
"sumpf:peat",
"sumpf:sumpf"
},
max_count = TALL_GRASS_PER_MAPBLOCK,
rarity = 101 - TALL_GRASS_RARITY,
min_elevation = 1, -- above sea level
plantlife_limit = -0.9,
check_air = false,
},
"abstract_dryplants.grow_grass"
)