Miroir du dépôt basic_materials.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.6KB

  1. -- Translation support
  2. local S = minetest.get_translator("basic_materials")
  3. -- items
  4. minetest.register_craftitem("basic_materials:plastic_sheet", {
  5. description = S("Plastic sheet"),
  6. inventory_image = "basic_materials_plastic_sheet.png",
  7. })
  8. minetest.register_craftitem("basic_materials:plastic_strip", {
  9. description = S("Plastic strips"),
  10. inventory_image = "basic_materials_plastic_strip.png",
  11. })
  12. minetest.register_craftitem("basic_materials:empty_spool", {
  13. description = S("Empty wire spool"),
  14. inventory_image = "basic_materials_empty_spool.png"
  15. })
  16. -- crafts
  17. minetest.register_craft({
  18. type = "cooking",
  19. output = "basic_materials:plastic_sheet",
  20. recipe = "basic_materials:paraffin",
  21. })
  22. minetest.register_craft({
  23. type = "fuel",
  24. recipe = "basic_materials:plastic_sheet",
  25. burntime = 30,
  26. })
  27. minetest.register_craft( {
  28. output = "basic_materials:plastic_strip 9",
  29. recipe = {
  30. { "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
  31. },
  32. })
  33. minetest.register_craft( {
  34. output = "basic_materials:empty_spool 3",
  35. recipe = {
  36. { "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
  37. { "", "basic_materials:plastic_sheet", "" },
  38. { "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
  39. },
  40. })
  41. -- aliases
  42. minetest.register_alias("homedecor:plastic_sheeting", "basic_materials:plastic_sheet")
  43. minetest.register_alias("homedecor:plastic_strips", "basic_materials:plastic_strip")
  44. minetest.register_alias("homedecor:empty_spool", "basic_materials:empty_spool")