init.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. =====================================================================
  3. ** More Blocks **
  4. By Calinou, with the help of ShadowNinja and VanessaE.
  5. Copyright (c) 2011-2015 Calinou and contributors.
  6. Licensed under the zlib license. See LICENSE.md for more information.
  7. =====================================================================
  8. --]]
  9. moreblocks = {}
  10. local S
  11. if minetest.get_modpath("intllib") then
  12. S = intllib.Getter()
  13. else
  14. S = function(s) return s end
  15. end
  16. moreblocks.intllib = S
  17. local modpath = minetest.get_modpath("moreblocks")
  18. -- Unnecessary stuff disabled, by MustTest.
  19. dofile(modpath .. "/config.lua")
  20. --dofile(modpath .. "/circular_saw.lua")
  21. --dofile(modpath .. "/stairsplus/init.lua")
  22. dofile(modpath .. "/nodes.lua")
  23. --dofile(modpath .. "/redefinitions.lua")
  24. dofile(modpath .. "/crafting.lua")
  25. --dofile(modpath .. "/aliases.lua")
  26. minetest.register_node("moreblocks:red_coal_brick", {
  27. description = "Darkened Brick Block",
  28. paramtype2 = "facedir",
  29. place_param2 = 0,
  30. tiles = {"moreblocks_coalbrick.png"},
  31. is_ground_content = false,
  32. groups = utility.dig_groups("brick", {brick = 1}),
  33. sounds = default.node_sound_stone_defaults(),
  34. })
  35. minetest.register_craft({
  36. output = "moreblocks:red_coal_brick",
  37. type = "shapeless",
  38. recipe = {"default:brick", "dye:black"}
  39. })
  40. minetest.register_craft({
  41. output = "moreblocks:red_coal_brick",
  42. type = "shapeless",
  43. recipe = {"default:brick", "dye:grey"}
  44. })
  45. minetest.register_craft({
  46. output = "moreblocks:red_coal_brick",
  47. type = "shapeless",
  48. recipe = {"default:brick", "dye:dark_grey"}
  49. })
  50. stairs.register_stair_and_slab(
  51. "coal_redbrick",
  52. "moreblocks:red_coal_brick",
  53. {cracky = 3},
  54. {"moreblocks_coalbrick.png"},
  55. "Darkened Brick",
  56. default.node_sound_stone_defaults()
  57. )