init.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. minetest.register_node("chromium:ore", {
  2. description = "Chromium Ore",
  3. tiles = {"default_stone.png^technic_chromium_mineral.png"},
  4. groups = utility.dig_groups("mineral", {ore=1}),
  5. drop = "chromium:lump",
  6. silverpick_drop = true,
  7. sounds = default.node_sound_stone_defaults(),
  8. })
  9. oregen.register_ore({
  10. ore_type = "scatter",
  11. ore = "chromium:ore",
  12. wherein = "default:stone",
  13. clust_scarcity = 8*8*8,
  14. clust_num_ores = 2,
  15. clust_size = 3,
  16. y_min = -200,
  17. y_max = -100,
  18. })
  19. oregen.register_ore({
  20. ore_type = "scatter",
  21. ore = "chromium:ore",
  22. wherein = "default:stone",
  23. clust_scarcity = 6*6*6,
  24. clust_num_ores = 2,
  25. clust_size = 3,
  26. y_min = -512,
  27. y_max = -200,
  28. })
  29. minetest.register_craftitem("chromium:lump", {
  30. description = "Chromium Lump",
  31. inventory_image = "technic_chromium_lump.png",
  32. })
  33. minetest.register_craft({
  34. type = "cooking",
  35. output = "chromium:ingot",
  36. recipe = "chromium:lump",
  37. })
  38. minetest.register_craftitem("chromium:dust", {
  39. description = "Chromium Dust",
  40. inventory_image = "technic_chromium_dust.png"
  41. })
  42. minetest.register_craft({
  43. type = "cooking",
  44. output = "chromium:ingot",
  45. recipe = "chromium:dust",
  46. })
  47. minetest.register_craft({
  48. type = "grinding",
  49. output = 'chromium:dust 2',
  50. recipe = 'chromium:lump',
  51. time = 10,
  52. })
  53. minetest.register_craftitem("chromium:ingot", {
  54. description = "Chromium Ingot",
  55. inventory_image = "technic_chromium_ingot.png",
  56. groups = {ingot = 1},
  57. })
  58. minetest.register_craft({
  59. type = "grinding",
  60. output = 'chromium:dust',
  61. recipe = 'chromium:ingot',
  62. time = 10,
  63. })
  64. minetest.register_node("chromium:block", {
  65. description = "Chromium Block",
  66. tiles = {"technic_chromium_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. "chromium_block",
  73. "chromium:block",
  74. {cracky = 1},
  75. {"technic_chromium_block.png"},
  76. "Chromium Block",
  77. default.node_sound_metal_defaults()
  78. )
  79. minetest.register_craft({
  80. output = "chromium:block",
  81. recipe = {
  82. {"chromium:ingot", "chromium:ingot", "chromium:ingot"},
  83. {"chromium:ingot", "chromium:ingot", "chromium:ingot"},
  84. {"chromium:ingot", "chromium:ingot", "chromium:ingot"},
  85. },
  86. })
  87. minetest.register_craft({
  88. type = "shapeless",
  89. output = "chromium:ingot 9",
  90. recipe = {"chromium:block"},
  91. })