init.lua 2.3 KB

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