aliases.lua 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. More Blocks: alias definitions
  3. Copyright © 2011-2020 Hugo Locurcio and contributors.
  4. Licensed under the zlib license. See LICENSE.md for more information.
  5. --]]
  6. local function register_stairsplus_alias(modname, origname, newname)
  7. minetest.register_alias(modname.. ":slab_" ..origname, "moreblocks:slab_" ..newname)
  8. minetest.register_alias(modname.. ":slab_" ..origname.. "_inverted", "moreblocks:slab_" ..newname.. "_inverted")
  9. minetest.register_alias(modname.. ":slab_" ..origname.. "_wall", "moreblocks:slab_" ..newname.. "_wall")
  10. minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter", "moreblocks:slab_" ..newname.. "_quarter")
  11. minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter_inverted", "moreblocks:slab_" ..newname.. "_quarter_inverted")
  12. minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter_wall", "moreblocks:slab_" ..newname.. "_quarter_wall")
  13. minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter", "moreblocks:slab_" ..newname.. "_three_quarter")
  14. minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter_inverted", "moreblocks:slab_" ..newname.. "_three_quarter_inverted")
  15. minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter_wall", "moreblocks:slab_" ..newname.. "_three_quarter_wall")
  16. minetest.register_alias(modname.. ":stair_" ..origname, "moreblocks:stair_" ..newname)
  17. minetest.register_alias(modname.. ":stair_" ..origname.. "_inverted", "moreblocks:stair_" ..newname.. "_inverted")
  18. minetest.register_alias(modname.. ":stair_" ..origname.. "_wall", "moreblocks:stair_" ..newname.. "_wall")
  19. minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half", "moreblocks:stair_" ..newname.. "_wall_half")
  20. minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half_inverted", "moreblocks:stair_" ..newname.. "_wall_half_inverted")
  21. minetest.register_alias(modname.. ":stair_" ..origname.. "_half", "moreblocks:stair_" ..newname.. "_half")
  22. minetest.register_alias(modname.. ":stair_" ..origname.. "_half_inverted", "moreblocks:stair_" ..newname.. "_half_inverted")
  23. minetest.register_alias(modname.. ":stair_" ..origname.. "_right_half", "moreblocks:stair_" ..newname.. "_right_half")
  24. minetest.register_alias(modname.. ":stair_" ..origname.. "_right_half_inverted", "moreblocks:stair_" ..newname.. "_right_half_inverted")
  25. minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half", "moreblocks:stair_" ..newname.. "_wall_half")
  26. minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half_inverted", "moreblocks:stair_" ..newname.. "_wall_half_inverted")
  27. minetest.register_alias(modname.. ":stair_" ..origname.. "_inner", "moreblocks:stair_" ..newname.. "_inner")
  28. minetest.register_alias(modname.. ":stair_" ..origname.. "_inner_inverted", "moreblocks:stair_" ..newname.. "_inner_inverted")
  29. minetest.register_alias(modname.. ":stair_" ..origname.. "_outer", "moreblocks:stair_" ..newname.. "_outer")
  30. minetest.register_alias(modname.. ":stair_" ..origname.. "_outer_inverted", "moreblocks:stair_" ..newname.. "_outer_inverted")
  31. minetest.register_alias(modname.. ":panel_" ..origname.. "_bottom", "moreblocks:panel_" ..newname.. "_bottom")
  32. minetest.register_alias(modname.. ":panel_" ..origname.. "_top", "moreblocks:panel_" ..newname.. "_top")
  33. minetest.register_alias(modname.. ":panel_" ..origname.. "_vertical", "moreblocks:panel_" ..newname.. "_vertical")
  34. minetest.register_alias(modname.. ":micro_" ..origname.. "_bottom", "moreblocks:micro_" ..newname.. "_bottom")
  35. minetest.register_alias(modname.. ":micro_" ..origname.. "_top", "moreblocks:micro_" ..newname.. "_top")
  36. end
  37. register_stairsplus_alias("stairsplus", "stone", "stone")
  38. register_stairsplus_alias("stairsplus", "wood", "wood")
  39. register_stairsplus_alias("stairsplus", "pinewood", "pinewood")
  40. register_stairsplus_alias("stairsplus", "cobble", "cobble")
  41. register_stairsplus_alias("stairsplus", "brick", "brick")
  42. register_stairsplus_alias("stairsplus", "sandstone", "sandstone")
  43. register_stairsplus_alias("stairsplus", "glass", "glass")
  44. register_stairsplus_alias("stairsplus", "tree", "tree")
  45. register_stairsplus_alias("stairsplus", "jungletree", "jungletree")
  46. register_stairsplus_alias("stairsplus", "pinetree", "pinetree")
  47. register_stairsplus_alias("stairsplus", "desert_stone", "desert_stone")
  48. register_stairsplus_alias("stairsplus", "steelblock", "steelblock")
  49. register_stairsplus_alias("stairsplus", "mossycobble", "mossycobble")
  50. register_stairsplus_alias("moreblocks", "coalstone", "coal_stone")
  51. register_stairsplus_alias("moreblocks", "junglewood", "jungle_wood")
  52. register_stairsplus_alias("moreblocks", "circlestonebrick", "circle_stone_bricks")
  53. register_stairsplus_alias("moreblocks", "ironstone", "iron_stone")
  54. register_stairsplus_alias("moreblocks", "coalglass", "coal_glass")
  55. register_stairsplus_alias("moreblocks", "ironglass", "iron_glass")
  56. register_stairsplus_alias("moreblocks", "glowglass", "glow_glass")
  57. register_stairsplus_alias("moreblocks", "superglowglass", "super_glow_glass")
  58. register_stairsplus_alias("moreblocks", "coalchecker", "coal_checker")
  59. register_stairsplus_alias("moreblocks", "ironchecker", "iron_checker")
  60. register_stairsplus_alias("moreblocks", "cactuschecker", "cactus_checker")
  61. register_stairsplus_alias("moreblocks", "ironstonebrick", "iron_stone_bricks")
  62. register_stairsplus_alias("moreblocks", "stonesquare", "stone_tile")
  63. register_stairsplus_alias("moreblocks", "splitstonesquare", "split_stone_tile")
  64. register_stairsplus_alias("moreblocks", "woodtile", "wood_tile")
  65. register_stairsplus_alias("moreblocks", "woodtile_centered", "wood_tile_centered")
  66. register_stairsplus_alias("moreblocks", "woodtile_full", "wood_tile_full")