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.
 
 

87 lines
2.7 KiB

  1. -- Translation support
  2. local S = minetest.get_translator("basic_materials")
  3. -- items
  4. minetest.register_craftitem("basic_materials:silicon", {
  5. description = S("Silicon lump"),
  6. inventory_image = "basic_materials_silicon.png",
  7. })
  8. minetest.register_craftitem("basic_materials:ic", {
  9. description = S("Simple Integrated Circuit"),
  10. inventory_image = "basic_materials_ic.png",
  11. })
  12. minetest.register_craftitem("basic_materials:motor", {
  13. description = S("Simple Motor"),
  14. inventory_image = "basic_materials_motor.png",
  15. })
  16. minetest.register_craftitem("basic_materials:heating_element", {
  17. description = S("Heating element"),
  18. inventory_image = "basic_materials_heating_element.png",
  19. })
  20. minetest.register_craftitem("basic_materials:energy_crystal_simple", {
  21. description = S("Simple energy crystal"),
  22. inventory_image = "basic_materials_energy_crystal.png",
  23. })
  24. -- crafts
  25. minetest.register_craft( {
  26. output = "mesecons_materials:silicon 4",
  27. recipe = {
  28. { "default:sand", "default:sand" },
  29. { "default:sand", "default:steel_ingot" },
  30. },
  31. })
  32. minetest.register_craft( {
  33. output = "basic_materials:ic 4",
  34. recipe = {
  35. { "mesecons_materials:silicon", "mesecons_materials:silicon" },
  36. { "mesecons_materials:silicon", "default:copper_ingot" },
  37. },
  38. })
  39. minetest.register_craft( {
  40. output = "basic_materials:motor 2",
  41. recipe = {
  42. { "default:mese_crystal_fragment", "basic_materials:copper_wire", "basic_materials:plastic_sheet" },
  43. { "default:copper_ingot", "default:steel_ingot", "default:steel_ingot" },
  44. { "default:mese_crystal_fragment", "basic_materials:copper_wire", "basic_materials:plastic_sheet" }
  45. },
  46. replacements = {
  47. { "basic_materials:copper_wire", "basic_materials:empty_spool" },
  48. { "basic_materials:copper_wire", "basic_materials:empty_spool" },
  49. }
  50. })
  51. minetest.register_craft( {
  52. output = "basic_materials:heating_element 2",
  53. recipe = {
  54. { "default:copper_ingot", "default:mese_crystal_fragment", "default:copper_ingot" }
  55. },
  56. })
  57. minetest.register_craft({
  58. --type = "shapeless",
  59. output = "basic_materials:energy_crystal_simple 2",
  60. recipe = {
  61. { "default:mese_crystal_fragment", "default:torch", "default:mese_crystal_fragment" },
  62. { "default:diamond", "default:gold_ingot", "default:diamond" }
  63. },
  64. })
  65. -- aliases
  66. minetest.register_alias("homedecor:ic", "basic_materials:ic")
  67. minetest.register_alias("homedecor:motor", "basic_materials:motor")
  68. minetest.register_alias("technic:motor", "basic_materials:motor")
  69. minetest.register_alias("homedecor:heating_element", "basic_materials:heating_element")
  70. minetest.register_alias("homedecor:power_crystal", "basic_materials:energy_crystal_simple")
  71. minetest.register_alias_force("mesecons_materials:silicon", "basic_materials:silicon")