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.
 
 

57 lines
1.6 KiB

  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. groups = { strip = 1 },
  11. inventory_image = "basic_materials_plastic_strip.png",
  12. })
  13. minetest.register_craftitem("basic_materials:empty_spool", {
  14. description = S("Empty wire spool"),
  15. inventory_image = "basic_materials_empty_spool.png"
  16. })
  17. -- crafts
  18. minetest.register_craft({
  19. type = "cooking",
  20. output = "basic_materials:plastic_sheet",
  21. recipe = "basic_materials:paraffin",
  22. })
  23. minetest.register_craft({
  24. type = "fuel",
  25. recipe = "basic_materials:plastic_sheet",
  26. burntime = 30,
  27. })
  28. minetest.register_craft( {
  29. output = "basic_materials:plastic_strip 9",
  30. recipe = {
  31. { "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
  32. },
  33. })
  34. minetest.register_craft( {
  35. output = "basic_materials:empty_spool 3",
  36. recipe = {
  37. { "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
  38. { "", "basic_materials:plastic_sheet", "" },
  39. { "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
  40. },
  41. })
  42. -- aliases
  43. minetest.register_alias("homedecor:plastic_sheeting", "basic_materials:plastic_sheet")
  44. minetest.register_alias("homedecor:plastic_strips", "basic_materials:plastic_strip")
  45. minetest.register_alias("homedecor:empty_spool", "basic_materials:empty_spool")