init.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. minetest.register_craftitem("stainless_steel:dust", {
  2. description = "Stainless Steel Dust",
  3. inventory_image = "technic_stainless_steel_dust.png"
  4. })
  5. minetest.register_craft({
  6. type = "cooking",
  7. output = "stainless_steel:ingot",
  8. recipe = "stainless_steel:dust",
  9. })
  10. minetest.register_craftitem("stainless_steel:ingot", {
  11. description = "Stainless Steel Ingot",
  12. inventory_image = "technic_stainless_steel_ingot.png",
  13. groups = {ingot = 1},
  14. })
  15. minetest.register_craft({
  16. type = "grinding",
  17. output = 'stainless_steel:dust',
  18. recipe = 'stainless_steel:ingot',
  19. time = 10,
  20. })
  21. minetest.register_node("stainless_steel:block", {
  22. description = "Stainless Steel Block",
  23. tiles = {"technic_stainless_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. "stainless_steel_block",
  30. "stainless_steel:block",
  31. {cracky = 1},
  32. {"technic_stainless_steel_block.png"},
  33. "Stainless Steel Block",
  34. default.node_sound_metal_defaults()
  35. )
  36. minetest.register_craft({
  37. output = "stainless_steel:block",
  38. recipe = {
  39. {"stainless_steel:ingot", "stainless_steel:ingot", "stainless_steel:ingot"},
  40. {"stainless_steel:ingot", "stainless_steel:ingot", "stainless_steel:ingot"},
  41. {"stainless_steel:ingot", "stainless_steel:ingot", "stainless_steel:ingot"},
  42. },
  43. })
  44. minetest.register_craft({
  45. type = "shapeless",
  46. output = "stainless_steel:ingot 9",
  47. recipe = {"stainless_steel:block"},
  48. })