aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-07 22:16:37 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-07 22:16:37 -0500
commit4b4e10ff1d4f1bde96c47331738e4af27bec6142 (patch)
tree3d5a07f680e0b7eef590a995de480fae1cff2d61 /init.lua
parent524dcb1396aa9df0f60c6f74d91c2e24c19e9ad6 (diff)
downloadmoreblocks-4b4e10ff1d4f1bde96c47331738e4af27bec6142.tar.gz
moreblocks-4b4e10ff1d4f1bde96c47331738e4af27bec6142.tar.bz2
moreblocks-4b4e10ff1d4f1bde96c47331738e4af27bec6142.zip
Rewrite slightly to use the new 6d facedir prediction code in builtin.
Keeps the old behavior of sneak == force wall (rather than invert). Add protection/ownership checking. Can be phased out later after protection mods start taking advantage of the engine's built-in ownershi-checking functions. Got rid of the /st command, since it didn't work anyway. Minor re-arrangement of init.lua to put the mod's title block at the top where it belongs :-)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua20
1 files changed, 12 insertions, 8 deletions
diff --git a/init.lua b/init.lua
index 5a9c74f..98276d5 100644
--- a/init.lua
+++ b/init.lua
@@ -1,3 +1,13 @@
+--[[
+****
+More Blocks
+by Calinou
+Licensed under the zlib/libpng license for code and CC BY-SA for textures, see LICENSE.txt for info.
+****
+--]]
+
+moreblocks = {}
+
-- Load translation library if intllib is installed
local S
@@ -7,9 +17,11 @@ if (minetest.get_modpath("intllib")) then
else
S = function ( s ) return s end
end
+moreblocks.gettext = S
dofile(minetest.get_modpath("moreblocks").."/_config.txt")
+dofile(minetest.get_modpath("moreblocks").."/ownership.lua")
dofile(minetest.get_modpath("moreblocks").."/redefinitions.lua")
dofile(minetest.get_modpath("moreblocks").."/crafting.lua")
dofile(minetest.get_modpath("moreblocks").."/aliases.lua")
@@ -22,14 +34,6 @@ dofile(minetest.get_modpath("moreblocks").."/stairsplus/aliases.lua")
dofile(minetest.get_modpath("moreblocks").."/stairsplus.lua")
dofile(minetest.get_modpath("moreblocks").."/circular_saw.lua")
---[[
-****
-More Blocks
-by Calinou
-Licensed under the zlib/libpng license for code and CC BY-SA for textures, see LICENSE.txt for info.
-****
---]]
-
-- Blocks
minetest.register_node("moreblocks:wood_tile", {