decorations.lua 492 B

123456789101112131415161718192021
  1. local S = maple.get_translator;
  2. minetest.register_decoration({
  3. deco_type = "schematic",
  4. place_on = {"default:dirt_with_grass"},
  5. sidelen = 16,
  6. noise_params = {
  7. offset = 0.0,
  8. --scale = -0.015,
  9. scale = 0.0007,
  10. spread = {x = 250, y = 250, z = 250},
  11. seed = 2,
  12. octaves = 3,
  13. persist = 0.66
  14. },
  15. biomes = {"deciduous_forest"},
  16. y_min = 1,
  17. y_max = 31000,
  18. schematic = maple.path .. "/schematics/maple_tree.mts",
  19. flags = "place_center_x, place_center_z",
  20. })