init.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. minetest.register_node("lead:ore", {
  2. description = "Lead Ore",
  3. tiles = {"default_stone.png^technic_lead_mineral.png"},
  4. groups = utility.dig_groups("mineral", {ore=1}),
  5. drop = "lead:lump",
  6. silverpick_drop = true,
  7. sounds = default.node_sound_stone_defaults(),
  8. })
  9. oregen.register_ore({
  10. ore_type = "scatter",
  11. ore = "lead:ore",
  12. wherein = "default:stone",
  13. clust_scarcity = 8*8*8,
  14. clust_num_ores = 2,
  15. clust_size = 3,
  16. y_min = -512,
  17. y_max = -256,
  18. })
  19. oregen.register_ore({
  20. ore_type = "scatter",
  21. ore = "lead:ore",
  22. wherein = "default:stone",
  23. clust_scarcity = 6*6*6,
  24. clust_num_ores = 2,
  25. clust_size = 3,
  26. y_min = -824,
  27. y_max = -512,
  28. })
  29. minetest.register_craftitem("lead:lump", {
  30. description = "Lead Lump",
  31. inventory_image = "technic_lead_lump.png",
  32. })
  33. minetest.register_craft({
  34. type = "cooking",
  35. output = "lead:ingot",
  36. recipe = "lead:lump",
  37. })
  38. minetest.register_craftitem("lead:dust", {
  39. description = "Lead Dust",
  40. inventory_image = "technic_lead_dust.png"
  41. })
  42. minetest.register_craft({
  43. type = "cooking",
  44. output = "lead:ingot",
  45. recipe = "lead:dust",
  46. })
  47. minetest.register_craft({
  48. type = "grinding",
  49. output = 'lead:dust 2',
  50. recipe = 'lead:lump',
  51. })
  52. minetest.register_craftitem("lead:ingot", {
  53. description = "Lead Ingot",
  54. inventory_image = "technic_lead_ingot.png",
  55. groups = {ingot = 1},
  56. })
  57. minetest.register_craft({
  58. type = "grinding",
  59. output = 'lead:dust',
  60. recipe = 'lead:ingot',
  61. })
  62. minetest.register_node("lead:block", {
  63. description = "Lead Block",
  64. tiles = {"technic_lead_block.png"},
  65. is_ground_content = false,
  66. groups = utility.dig_groups("block"),
  67. sounds = default.node_sound_metal_defaults(),
  68. })
  69. stairs.register_stair_and_slab(
  70. "lead_block",
  71. "lead:block",
  72. {cracky = 1},
  73. {"technic_lead_block.png"},
  74. "Lead Block",
  75. default.node_sound_metal_defaults()
  76. )
  77. minetest.register_craft({
  78. output = "lead:block",
  79. recipe = {
  80. {"lead:ingot", "lead:ingot", "lead:ingot"},
  81. {"lead:ingot", "lead:ingot", "lead:ingot"},
  82. {"lead:ingot", "lead:ingot", "lead:ingot"},
  83. },
  84. })
  85. minetest.register_craft({
  86. type = "shapeless",
  87. output = "lead:ingot 9",
  88. recipe = {"lead:block"},
  89. })