1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-18 23:50:26 +02:00

Moreblocks' update

- Moreblocks' update to use last version's nodes and features
This commit is contained in:
LeMagnesium
2015-01-15 19:12:20 +01:00
parent cb86fa2008
commit c430709474
88 changed files with 915 additions and 82 deletions

21
mods/moreblocks/stairsplus/slabs.lua Executable file → Normal file
View File

@ -1,10 +1,11 @@
local S -- Load translation library if intllib is installed:
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function(s) return s end
end
--[[
More Blocks: slab definitions
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreblocks.intllib
-- Node will be called <modname>:slab_<subname>
@ -75,11 +76,11 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
end
def.description = desc
if fields.drop then
def.drop = modname.. ":slab_" ..fields.drop..alternate
def.drop = modname.. ":slab_" .. fields.drop .. alternate
end
minetest.register_node(":" ..modname.. ":slab_" ..subname..alternate, def)
minetest.register_node(":" .. modname .. ":slab_" .. subname .. alternate, def)
end
minetest.register_alias("stairs:slab_" ..subname, modname.. ":slab_" ..subname)
minetest.register_alias("stairs:slab_" .. subname, modname .. ":slab_" .. subname)
-- Some saw-less recipes: