From 4b4e10ff1d4f1bde96c47331738e4af27bec6142 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 7 Nov 2013 22:16:37 -0500 Subject: 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 :-) --- init.lua | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'init.lua') 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", { -- cgit v1.2.3