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 :-)
This commit is contained in:
Vanessa Ezekowitz
2013-11-07 22:16:37 -05:00
parent 524dcb1396
commit 4b4e10ff1d
7 changed files with 89 additions and 213 deletions

View File

@ -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", {