mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-07-18 23:50:26 +02:00
Updated moreblocks and moreores textures : not running yet
This commit is contained in:
@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user