init.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. =====================================================================
  3. ** More Blocks **
  4. By Calinou, with the help of ShadowNinja and VanessaE.
  5. Copyright (c) 2011-2017 Hugo Locurcio and contributors.
  6. Licensed under the zlib license. See LICENSE.md for more information.
  7. =====================================================================
  8. --]]
  9. moreblocks = {}
  10. -- 2019-06-01
  11. moreblocks.mod = "undo"
  12. local S
  13. if minetest.global_exists("intllib") then
  14. if intllib.make_gettext_pair then
  15. S = intllib.make_gettext_pair()
  16. else
  17. S = intllib.Getter()
  18. end
  19. else
  20. S = function(s) return s end
  21. end
  22. moreblocks.intllib = S
  23. local modpath = minetest.get_modpath("moreblocks")
  24. dofile(modpath .. "/config.lua")
  25. dofile(modpath .. "/circular_saw.lua")
  26. dofile(modpath .. "/stairsplus/init.lua")
  27. dofile(modpath .. "/nodes.lua")
  28. dofile(modpath .. "/redefinitions.lua")
  29. dofile(modpath .. "/crafting.lua")
  30. dofile(modpath .. "/aliases.lua")
  31. dofile(modpath .. "/panes.lua")
  32. local own_name = "moreblocks"
  33. minetest.register_node(own_name..":version_node", {
  34. description = own_name.." version node",
  35. tiles = {own_name.."_version_node.png"},
  36. groups = {cracky = 3,not_in_creative_inventory=1},
  37. })
  38. minetest.register_craft({
  39. output = own_name..":version_node",
  40. recipe = {
  41. { "moreblocks:super_glow_glass" },
  42. { "moreblocks:cobble_condensed" },
  43. { "moreblocks:circular_saw" },
  44. },
  45. })
  46. if minetest.settings:get_bool("log_mods") then
  47. minetest.log("action", S("[moreblocks] loaded."))
  48. end