1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-11-13 22:00:39 +01:00
plantlife_modpack/dryplants/meadowvariation.lua

25 lines
856 B
Lua
Raw Permalink Normal View History

-----------------------------------------------------------------------------------------------
-- Grasses - Meadow Variation 0.0.1
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- Contains code from: biome_lib
-- Looked at code from: default
-----------------------------------------------------------------------------------------------
abstract_dryplants.grow_grass_variation = function(pos)
local right_here = {x=pos.x, y=pos.y, z=pos.z}
minetest.swap_node(right_here, {name="dryplants:grass_short"})
end
2023-04-16 19:24:52 +02:00
pl.register_on_generate({
surface = {
2023-04-16 19:24:52 +02:00
"default:dirt_with_grass",
},
noise_params = pl.generate_noise_params({max_count = 4800, rarity = 25}),
min_elevation = 1, -- above sea level
},
2023-04-16 19:24:52 +02:00
"dryplants:grass",
abstract_dryplants.grow_grass_variation
)