obsidian.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. -- Renew mod for Minetest
  2. -- Copyright © 2018 Alex Yst <https://y.st./>
  3. -- This program is free software; you can redistribute it and/or
  4. -- modify it under the terms of the GNU Lesser General Public
  5. -- License as published by the Free Software Foundation; either
  6. -- version 2.1 of the License, or (at your option) any later version.
  7. -- This software is distributed in the hope that it will be useful,
  8. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. -- Lesser General Public License for more details.
  11. -- You should have received a copy of the GNU Lesser General Public
  12. -- License along with this program. If not, see
  13. -- <https://www.gnu.org./licenses/>.
  14. -- This file contains numbers from the ore-spawning code from Minetest
  15. -- Game's default mod. That code is copyright Perttu "celeron55" Ahola
  16. -- <celeron55@gmail.com>, and was likewise released under the GNU
  17. -- LGPLv2.1+.
  18. minetest.register_node("renew:obsidian_shard", {
  19. -- description = "Obsidian Ore",
  20. tiles = {"default_stone.png^renew-mineral_obsidian.png"},
  21. groups = {cracky = 1},
  22. drop = "default:obsidian_shard",
  23. sounds = default.node_sound_stone_defaults(),
  24. })
  25. minetest.register_ore({
  26. ore_type = "scatter",
  27. ore = "renew:obsidian_shard",
  28. wherein = "default:stone",
  29. clust_scarcity = 15 * 15 * 15,
  30. clust_num_ores = 4,
  31. clust_size = 3,
  32. y_min = 1025,
  33. y_max = 31000,
  34. })
  35. minetest.register_ore({
  36. ore_type = "scatter",
  37. ore = "renew:obsidian_shard",
  38. wherein = "default:stone",
  39. clust_scarcity = 17 * 17 * 17,
  40. clust_num_ores = 4,
  41. clust_size = 3,
  42. y_min = -255,
  43. y_max = -128,
  44. })
  45. minetest.register_ore({
  46. ore_type = "scatter",
  47. ore = "renew:obsidian_shard",
  48. wherein = "default:stone",
  49. clust_scarcity = 15 * 15 * 15,
  50. clust_num_ores = 4,
  51. clust_size = 3,
  52. y_min = -31000,
  53. y_max = -256,
  54. })