init.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. local S = minetest.get_translator("basic_materials")
  2. --Coal
  3. minetest.register_craftitem("basic_minerals:coal",
  4. {
  5. description = S("Coal"),
  6. inventory_image = "basic_minerals_coal.png",
  7. stack_max = 128,
  8. })
  9. minetest.register_alias("coal", "basic_minerals:coal")
  10. --Iron with ingot
  11. minetest.register_craftitem("basic_minerals:iron",
  12. {
  13. description = S("Iron"),
  14. inventory_image = "basic_minerals_iron.png",
  15. stack_max = 128,
  16. })
  17. minetest.register_alias("iron", "basic_minerals:iron")
  18. minetest.register_craftitem("basic_minerals:iron_ingot",
  19. {
  20. description = S("Iron Ingot"),
  21. inventory_image = "basic_minerals_iron_ingot.png",
  22. stack_max = 128,
  23. })
  24. minetest.register_alias("iron_ingot", "basic_minerals:iron_ingot")
  25. minetest.register_craft(
  26. {
  27. type = "cooking",
  28. output = minetest.registered_aliases["iron_ingot"],
  29. recipe = minetest.registered_aliases["iron"],
  30. cooktime = 3,
  31. })
  32. --Gold with ingot
  33. minetest.register_craftitem("basic_minerals:gold",
  34. {
  35. description = S("Gold"),
  36. inventory_image = "basic_minerals_gold.png",
  37. stack_max = 128,
  38. })
  39. minetest.register_alias("gold", "basic_minerals:gold")
  40. minetest.register_craftitem("basic_minerals:gold_ingot",
  41. {
  42. description = S("Gold Ingot"),
  43. inventory_image = "basic_minerals_gold_ingot.png",
  44. stack_max = 128,
  45. })
  46. minetest.register_alias("gold_ingot", "basic_minerals:gold_ingot")
  47. minetest.register_craft(
  48. {
  49. type = "cooking",
  50. output = minetest.registered_aliases["gold_ingot"],
  51. recipe = minetest.registered_aliases["gold"],
  52. cooktime = 5,
  53. })
  54. --Diamond
  55. minetest.register_craftitem("basic_minerals:diamond",
  56. {
  57. description = S("Diamond"),
  58. inventory_image = "basic_minerals_diamond.png",
  59. stack_max = 128,
  60. })
  61. minetest.register_alias("diamond", "basic_minerals:diamond")