init.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. minetest.register_craftitem("cast_iron:dust", {
  2. description = "Cast Iron Dust",
  3. inventory_image = "technic_cast_iron_dust.png"
  4. })
  5. minetest.register_craft({
  6. type = "cooking",
  7. output = "cast_iron:ingot",
  8. recipe = "cast_iron:dust",
  9. })
  10. minetest.register_craftitem("cast_iron:ingot", {
  11. description = "Cast Iron Ingot",
  12. inventory_image = "technic_cast_iron_ingot.png",
  13. groups = {ingot = 1},
  14. })
  15. minetest.register_craft({
  16. type = "grinding",
  17. output = 'cast_iron:dust',
  18. recipe = 'cast_iron:ingot',
  19. time = 10,
  20. })
  21. minetest.register_node("cast_iron:block", {
  22. description = "Cast Iron Block",
  23. tiles = {"technic_cast_iron_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. "cast_iron_block",
  30. "cast_iron:block",
  31. {cracky = 1},
  32. {"technic_cast_iron_block.png"},
  33. "Cast Iron Block",
  34. default.node_sound_metal_defaults()
  35. )
  36. minetest.register_craft({
  37. output = "cast_iron:block",
  38. recipe = {
  39. {"cast_iron:ingot", "cast_iron:ingot", "cast_iron:ingot"},
  40. {"cast_iron:ingot", "cast_iron:ingot", "cast_iron:ingot"},
  41. {"cast_iron:ingot", "cast_iron:ingot", "cast_iron:ingot"},
  42. },
  43. })
  44. minetest.register_craft({
  45. type = "shapeless",
  46. output = "cast_iron:ingot 9",
  47. recipe = {"cast_iron:block"},
  48. })
  49. minetest.register_craft({
  50. type = "cooking",
  51. output = "default:steel_ingot",
  52. recipe = "cast_iron:ingot",
  53. })
  54. minetest.register_craft({
  55. type = "cooking",
  56. output = "cast_iron:ingot",
  57. recipe = "default:steel_ingot",
  58. })