init.lua 1.2 KB

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