meadowvariation.lua 824 B

1234567891011121314151617181920212223242526
  1. -----------------------------------------------------------------------------------------------
  2. -- Grasses - Meadow Variation 0.0.1
  3. -----------------------------------------------------------------------------------------------
  4. -- by Mossmanikin
  5. -- Contains code from: biome_lib
  6. -- Looked at code from: default
  7. -----------------------------------------------------------------------------------------------
  8. abstract_dryplants.grow_grass_variation = function(pos)
  9. local right_here = {x=pos.x, y=pos.y, z=pos.z}
  10. minetest.swap_node(right_here, {name="dryplants:grass_short"})
  11. end
  12. biome_lib:register_generate_plant({
  13. surface = {
  14. "default:dirt_with_grass",
  15. },
  16. max_count = 4800,
  17. rarity = 25,
  18. min_elevation = 1, -- above sea level
  19. plantlife_limit = -0.9,
  20. },
  21. abstract_dryplants.grow_grass_variation
  22. )