init.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. local modpath = minetest.get_modpath("permafrost")
  2. dofile(modpath .. "/nodes.lua")
  3. dofile(modpath .. "/decorations.lua")
  4. minetest.register_biome(
  5. {
  6. name = "permafrost_moss",
  7. node_top = "permafrost:with_moss",
  8. depth_top = 1,
  9. y_max = 31000,
  10. y_min = -20,
  11. heat_point = 0,
  12. humidity_point = 50,
  13. })
  14. minetest.register_ore({
  15. ore_type = "vein",
  16. ore = "permafrost:with_moss_and_rocks",
  17. wherein = "permafrost:with_moss",
  18. clust_scarcity = 4 * 4 * 4,
  19. clust_num_ores = 1,
  20. clust_size = 1,
  21. y_min = -30,
  22. y_max = 1000,
  23. })
  24. minetest.register_biome(
  25. {
  26. name = "permafrost_rocks",
  27. node_top = "permafrost:with_rocks",
  28. depth_top = 1,
  29. y_max = 31000,
  30. y_min = -20,
  31. heat_point = 0,
  32. humidity_point = 68,
  33. })
  34. --generating scorched dirt fields to make permafrost with moss look
  35. --less lush and permafrost with rocks look less noisy
  36. minetest.register_ore({
  37. ore_type = "blob",
  38. ore = "scorched_dirt",
  39. wherein = {"permafrost:with_rocks", "permafrost:with_moss", "permafrost:with_moss_and_rocks"},
  40. clust_scarcity = 4 * 4 * 4,
  41. clust_num_ores = 4,
  42. clust_size = 8,
  43. y_min = -30,
  44. y_max = 1000,
  45. })