redefinitions.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. --[[
  2. More Blocks: redefinitions of default stuff
  3. Copyright (c) 2011-2017 Hugo Locurcio and contributors.
  4. Licensed under the zlib license. See LICENSE.md for more information.
  5. --]]
  6. -- Redefinitions of some default crafting recipes:
  7. minetest.register_craft({
  8. output = "default:sign_wall 4",
  9. recipe = {
  10. {"default:wood", "default:wood", "default:wood"},
  11. {"default:wood", "default:wood", "default:wood"},
  12. {"", "default:stick", ""},
  13. }
  14. })
  15. minetest.register_craft({
  16. output = "default:ladder 4",
  17. recipe = {
  18. {"default:stick", "", "default:stick"},
  19. {"default:stick", "default:stick", "default:stick"},
  20. {"default:stick", "", "default:stick"},
  21. }
  22. })
  23. minetest.clear_craft({ recipe = {
  24. {"default:papyrus", "default:papyrus", "default:papyrus"},
  25. {"","","",},
  26. {"","","",}
  27. }
  28. })
  29. minetest.register_craft({
  30. output = "default:paper 4",
  31. recipe = {
  32. {"default:papyrus", "default:papyrus", "default:papyrus"},
  33. }
  34. })
  35. minetest.register_craft({
  36. output = "default:rail 24",
  37. recipe = {
  38. {"default:steel_ingot", "", "default:steel_ingot"},
  39. {"default:steel_ingot", "default:stick", "default:steel_ingot"},
  40. {"default:steel_ingot", "", "default:steel_ingot"},
  41. }
  42. })
  43. minetest.register_craft({
  44. type = "toolrepair",
  45. additional_wear = -0.10, -- Tool repair buff (10% bonus instead of 2%).
  46. })
  47. -- minetest.register_alias("old","new")
  48. -- bookshelf
  49. minetest.register_alias("moreblocks:empty_shelf","moreblocks:empty_bookshelf")
  50. -- checkered stones and the cut versions
  51. minetest.register_alias("moreblocks:checker_stone_tile","moreblocks:split_stone_tile_alt")
  52. -- loop though the circular saw subtypes
  53. cs_names = {
  54. {"micro", "_1"},
  55. {"panel", "_1"},
  56. {"micro", "_2"},
  57. {"panel", "_2"},
  58. {"micro", "_4"},
  59. {"panel", "_4"},
  60. {"micro", ""},
  61. {"panel", ""},
  62. {"micro", "_12"},
  63. {"panel", "_12"},
  64. {"micro", "_14"},
  65. {"panel", "_14"},
  66. {"micro", "_15"},
  67. {"panel", "_15"},
  68. {"stair", "_outer"},
  69. {"stair", ""},
  70. {"stair", "_inner"},
  71. {"slab", "_1"},
  72. {"slab", "_2"},
  73. {"slab", "_quarter"},
  74. {"slab", ""},
  75. {"slab", "_three_quarter"},
  76. {"slab", "_14"},
  77. {"slab", "_15"},
  78. {"slab", "_two_sides"},
  79. {"slab", "_three_sides"},
  80. {"slab", "_three_sides_u"},
  81. {"stair", "_half"},
  82. {"stair", "_alt_1"},
  83. {"stair", "_alt_2"},
  84. {"stair", "_alt_4"},
  85. {"stair", "_alt"},
  86. {"slope", ""},
  87. {"slope", "_half"},
  88. {"slope", "_half_raised"},
  89. {"slope", "_inner"},
  90. {"slope", "_inner_half"},
  91. {"slope", "_inner_half_raised"},
  92. {"slope", "_inner_cut"},
  93. {"slope", "_inner_cut_half"},
  94. {"slope", "_inner_cut_half_raised"},
  95. {"slope", "_outer"},
  96. {"slope", "_outer_half"},
  97. {"slope", "_outer_half_raised"},
  98. {"slope", "_outer_cut"},
  99. {"slope", "_outer_cut_half"},
  100. {"slope", "_outer_cut_half_raised"},
  101. {"slope", "_cut"},
  102. }
  103. local nodename_dev = "checker_stone_tile"
  104. local nodename_11 = "split_stone_tile_alt"
  105. for i = 1, #cs_names do
  106. local t = cs_names[i]
  107. local cs_nodename_dev = "moreblocks" .. ":" .. t[1] .. "_" .. nodename_dev .. t[2]
  108. local cs_nodename_11 = "moreblocks" .. ":" .. t[1] .. "_" .. nodename_11 .. t[2]
  109. minetest.register_alias(cs_nodename_dev,cs_nodename_11)
  110. end
  111. -- wood tiles
  112. minetest.register_alias("moreblocks:wood_tile_offset", "moreblocks:wood_tile_up")
  113. -- desert stone stair
  114. -- created in dungeons
  115. -- minetest.register_alias("stairs:stair_desert_stone","moreblocks:stair_desert_stone")
  116. -- new trapstones and other blocks
  117. -- all_faces_acaia_tree
  118. -- all_faces_pine_tree
  119. -- compressed_dirt
  120. -- trap_desert_stone
  121. -- trap_obsidian
  122. -- trap_obsidian_glass
  123. -- trap_sandstone
  124. -- in nodes.lua and crafting.lua