init.lua 2.5 KB

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