init.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. --[[
  27. if minetest.setting_getbool("log_mods") then
  28. minetest.log("action", S("[moreblocks] loaded."))
  29. end
  30. --]]
  31. minetest.register_node("moreblocks:red_coal_brick", {
  32. description = "Darkened Brick Block",
  33. paramtype2 = "facedir",
  34. place_param2 = 0,
  35. tiles = {"moreblocks_coalbrick.png"},
  36. is_ground_content = false,
  37. groups = utility.dig_groups("brick", {brick = 1}),
  38. sounds = default.node_sound_stone_defaults(),
  39. })
  40. minetest.register_craft({
  41. output = "moreblocks:red_coal_brick",
  42. type = "shapeless",
  43. recipe = {"default:brick", "dye:black"}
  44. })
  45. minetest.register_craft({
  46. output = "moreblocks:red_coal_brick",
  47. type = "shapeless",
  48. recipe = {"default:brick", "dye:grey"}
  49. })
  50. minetest.register_craft({
  51. output = "moreblocks:red_coal_brick",
  52. type = "shapeless",
  53. recipe = {"default:brick", "dye:dark_grey"}
  54. })
  55. stairs.register_stair_and_slab(
  56. "coal_redbrick",
  57. "moreblocks:red_coal_brick",
  58. {cracky = 3},
  59. {"moreblocks_coalbrick.png"},
  60. "Darkened Brick",
  61. default.node_sound_stone_defaults()
  62. )