init.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. minetest.register_craftitem("carbon_steel:dust", {
  2. description = "Carbon Steel Dust",
  3. inventory_image = "technic_carbon_steel_dust.png"
  4. })
  5. minetest.register_craft({
  6. type = "cooking",
  7. output = "carbon_steel:ingot",
  8. recipe = "carbon_steel:dust",
  9. })
  10. minetest.register_craftitem("carbon_steel:ingot", {
  11. description = "Carbon Steel Ingot",
  12. inventory_image = "technic_carbon_steel_ingot.png",
  13. groups = {ingot = 1},
  14. })
  15. minetest.register_craft({
  16. type = "grinding",
  17. output = 'carbon_steel:dust',
  18. recipe = 'carbon_steel:ingot',
  19. time = 10,
  20. })
  21. minetest.register_node("carbon_steel:block", {
  22. description = "Carbon Steel Block",
  23. tiles = {"technic_carbon_steel_block.png"},
  24. is_ground_content = false,
  25. groups = utility.dig_groups("block"),
  26. sounds = default.node_sound_metal_defaults(),
  27. })
  28. stairs.register_stair_and_slab(
  29. "carbon_steel_block",
  30. "carbon_steel:block",
  31. {cracky = 1},
  32. {"technic_carbon_steel_block.png"},
  33. "Carbon Steel Block",
  34. default.node_sound_metal_defaults()
  35. )
  36. minetest.register_craft({
  37. output = "carbon_steel:block",
  38. recipe = {
  39. {"carbon_steel:ingot", "carbon_steel:ingot", "carbon_steel:ingot"},
  40. {"carbon_steel:ingot", "carbon_steel:ingot", "carbon_steel:ingot"},
  41. {"carbon_steel:ingot", "carbon_steel:ingot", "carbon_steel:ingot"},
  42. },
  43. })
  44. minetest.register_craft({
  45. type = "shapeless",
  46. output = "carbon_steel:ingot 9",
  47. recipe = {"carbon_steel:block"},
  48. })
  49. minetest.register_craft({
  50. type = "cooking",
  51. output = "default:steel_ingot",
  52. recipe = "carbon_steel:ingot",
  53. })