crafts.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. -- crafts for common items that are used by more than one home decor component
  2. local S = minetest.get_translator("homedecor_common")
  3. -- items
  4. minetest.register_craftitem(":homedecor:roof_tile_terracotta", {
  5. description = S("Terracotta Roof Tile"),
  6. inventory_image = "homedecor_roof_tile_terracotta.png",
  7. })
  8. minetest.register_craftitem(":homedecor:drawer_small", {
  9. description = S("Small Wooden Drawer"),
  10. inventory_image = "homedecor_drawer_small.png",
  11. })
  12. -- cooking/fuel
  13. minetest.register_craft({
  14. type = "cooking",
  15. output = "homedecor:roof_tile_terracotta",
  16. recipe = "basic_materials:terracotta_base",
  17. })
  18. minetest.register_craft({
  19. type = "fuel",
  20. recipe = "homedecor:shingles_wood",
  21. burntime = 30,
  22. })
  23. -- crafing
  24. minetest.register_craft( {
  25. output = "homedecor:shingles_terracotta",
  26. recipe = {
  27. { "homedecor:roof_tile_terracotta", "homedecor:roof_tile_terracotta"},
  28. { "homedecor:roof_tile_terracotta", "homedecor:roof_tile_terracotta"},
  29. },
  30. })
  31. minetest.register_craft( {
  32. output = "homedecor:roof_tile_terracotta 8",
  33. recipe = {
  34. { "homedecor:shingles_terracotta", "homedecor:shingles_terracotta" }
  35. }
  36. })
  37. minetest.register_craft( {
  38. output = "homedecor:shingles_wood 12",
  39. recipe = {
  40. { "group:stick", "group:wood"},
  41. { "group:wood", "group:stick"},
  42. },
  43. })
  44. minetest.register_craft( {
  45. output = "homedecor:shingles_wood 12",
  46. recipe = {
  47. { "group:wood", "group:stick"},
  48. { "group:stick", "group:wood"},
  49. },
  50. })
  51. minetest.register_craft( {
  52. output = "homedecor:shingles_asphalt 6",
  53. recipe = {
  54. { "building_blocks:gravel_spread", "dye:black", "building_blocks:gravel_spread" },
  55. { "group:sand", "dye:black", "group:sand" },
  56. { "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
  57. },
  58. })