mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-06-30 23:20:44 +02:00
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:
20
init.lua
20
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", {
|
||||
|
Reference in New Issue
Block a user