init.lua 2.2 KB

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