2014-08-12 21:08:11 +02:00
|
|
|
-----------------------------------------------------------------------------------------------
|
|
|
|
-- Grasses - Meadow Variation 0.0.1
|
|
|
|
-----------------------------------------------------------------------------------------------
|
|
|
|
-- by Mossmanikin
|
|
|
|
|
2018-02-18 01:28:43 +01:00
|
|
|
-- Contains code from: biome_lib
|
|
|
|
-- Looked at code from: default
|
2014-08-12 21:08:11 +02:00
|
|
|
-----------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
abstract_dryplants.grow_grass_variation = function(pos)
|
|
|
|
local right_here = {x=pos.x, y=pos.y, z=pos.z}
|
2018-10-25 16:27:54 +02:00
|
|
|
minetest.swap_node(right_here, {name="dryplants:grass_short"})
|
2014-08-12 21:08:11 +02:00
|
|
|
end
|
|
|
|
|
2023-04-16 19:24:52 +02:00
|
|
|
pl.register_on_generate({
|
2014-08-12 21:08:11 +02:00
|
|
|
surface = {
|
2023-04-16 19:24:52 +02:00
|
|
|
"default:dirt_with_grass",
|
|
|
|
},
|
|
|
|
noise_params = pl.generate_noise_params({max_count = 4800, rarity = 25}),
|
2014-08-12 21:08:11 +02:00
|
|
|
min_elevation = 1, -- above sea level
|
|
|
|
},
|
2023-04-16 19:24:52 +02:00
|
|
|
"dryplants:grass",
|
2014-08-15 16:09:01 +02:00
|
|
|
abstract_dryplants.grow_grass_variation
|
2014-08-13 05:19:51 +02:00
|
|
|
)
|