misc.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. -- Translation support
  2. local S = minetest.get_translator("basic_materials")
  3. -- items
  4. minetest.register_craftitem("basic_materials:oil_extract", {
  5. description = S("Oil extract"),
  6. inventory_image = "basic_materials_oil_extract.png",
  7. })
  8. minetest.register_craftitem("basic_materials:paraffin", {
  9. description = S("Unprocessed paraffin"),
  10. inventory_image = "basic_materials_paraffin.png",
  11. })
  12. minetest.register_craftitem("basic_materials:terracotta_base", {
  13. description = S("Uncooked Terracotta Base"),
  14. inventory_image = "basic_materials_terracotta_base.png",
  15. })
  16. minetest.register_craftitem("basic_materials:wet_cement", {
  17. description = S("Wet Cement"),
  18. inventory_image = "basic_materials_wet_cement.png",
  19. })
  20. -- nodes
  21. minetest.register_node("basic_materials:cement_block", {
  22. description = S("Cement"),
  23. tiles = {"basic_materials_cement_block.png"},
  24. is_ground_content = true,
  25. groups = {cracky=2},
  26. sounds = default.node_sound_stone_defaults(),
  27. })
  28. minetest.register_node("basic_materials:concrete_block", {
  29. description = S("Concrete Block"),
  30. tiles = {"basic_materials_concrete_block.png",},
  31. groups = {cracky=1, level=2, concrete=1},
  32. sounds = default.node_sound_stone_defaults(),
  33. })
  34. -- crafts
  35. minetest.register_craft({
  36. type = "shapeless",
  37. output = "basic_materials:oil_extract 2",
  38. recipe = {
  39. "group:leaves",
  40. "group:leaves",
  41. "group:leaves",
  42. "group:leaves",
  43. "group:leaves",
  44. "group:leaves"
  45. }
  46. })
  47. minetest.register_craft({
  48. type = "cooking",
  49. output = "basic_materials:paraffin",
  50. recipe = "basic_materials:oil_extract",
  51. })
  52. minetest.register_craft({
  53. type = "fuel",
  54. recipe = "basic_materials:oil_extract",
  55. burntime = 30,
  56. })
  57. minetest.register_craft({
  58. type = "fuel",
  59. recipe = "basic_materials:paraffin",
  60. burntime = 30,
  61. })
  62. minetest.register_craft( {
  63. type = "shapeless",
  64. output = "basic_materials:terracotta_base 8",
  65. recipe = {
  66. "bucket:bucket_water",
  67. "default:clay_lump",
  68. "default:gravel",
  69. },
  70. replacements = { {"bucket:bucket_water", "bucket:bucket_empty"}, },
  71. })
  72. minetest.register_craft({
  73. type = "shapeless",
  74. output = "basic_materials:wet_cement 3",
  75. recipe = {
  76. "default:dirt",
  77. "dye:dark_grey",
  78. "dye:dark_grey",
  79. "dye:dark_grey",
  80. "bucket:bucket_water"
  81. },
  82. replacements = {{'bucket:bucket_water', 'bucket:bucket_empty'},},
  83. })
  84. minetest.register_craft({
  85. type = "cooking",
  86. output = "basic_materials:cement_block",
  87. recipe = "basic_materials:wet_cement",
  88. cooktime = 8
  89. })
  90. minetest.register_craft({
  91. output = 'basic_materials:concrete_block 6',
  92. recipe = {
  93. {'group:sand', 'basic_materials:wet_cement', 'default:gravel'},
  94. {'basic_materials:steel_bar', 'basic_materials:wet_cement', 'basic_materials:steel_bar'},
  95. {'default:gravel', 'basic_materials:wet_cement', 'group:sand'},
  96. }
  97. })
  98. -- aliases
  99. minetest.register_alias("homedecor:oil_extract", "basic_materials:oil_extract")
  100. minetest.register_alias("homedecor:paraffin", "basic_materials:paraffin")
  101. minetest.register_alias("homedecor:plastic_base", "basic_materials:paraffin")
  102. minetest.register_alias("homedecor:terracotta_base", "basic_materials:terracotta_base")
  103. minetest.register_alias("gloopblocks:wet_cement", "basic_materials:wet_cement")
  104. minetest.register_alias("gloopblocks:cement", "basic_materials:cement_block")
  105. minetest.register_alias("technic:concrete", "basic_materials:concrete_block")