init.lua 2.3 KB

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