forked from minetest-mods/moreblocks
Add licensing headers to all files, fix intllib global variable warnings.
This commit is contained in:
parent
41bb46fb36
commit
b5d62de9d8
19
aliases.lua
19
aliases.lua
@ -1,16 +1,22 @@
|
||||
-- More Blocks aliases
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
-- More Blocks aliases:
|
||||
minetest.register_alias("sweeper", "moreblocks:sweeper")
|
||||
minetest.register_alias("circular_saw", "moreblocks:circular_saw")
|
||||
minetest.register_alias("jungle_stick", "moreblocks:jungle_stick")
|
||||
|
||||
-- Old block/item replacement
|
||||
|
||||
-- Old block/item replacement:
|
||||
minetest.register_alias("moreblocks:oerkkiblock", "default:mossycobble")
|
||||
minetest.register_alias("moreblocks:screwdriver", "screwdriver:screwdriver")
|
||||
|
||||
-- Node and item renaming
|
||||
|
||||
-- Node and item renaming:
|
||||
minetest.register_alias("moreblocks:stone_bricks", "default:stonebrick")
|
||||
minetest.register_alias("moreblocks:stonebrick", "default:stonebrick")
|
||||
minetest.register_alias("moreblocks:junglewood", "default:junglewood")
|
||||
@ -51,8 +57,7 @@ minetest.register_alias("moreblocks:junglestick", "moreblocks:jungle_stick")
|
||||
minetest.register_alias("moreblocks:splitstonesquare","moreblocks:split_stone_tile")
|
||||
minetest.register_alias("moreblocks:allfacestree","moreblocks:all_faces_tree")
|
||||
|
||||
-- ABM for horizontal trees (fix facedir).
|
||||
|
||||
-- ABM for horizontal trees (fix facedir):
|
||||
local horizontal_tree_convert_facedir = {7, 12, 9, 18}
|
||||
|
||||
minetest.register_abm({
|
||||
|
@ -1,3 +1,12 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
local S = moreblocks.intllib
|
||||
|
||||
circular_saw = {}
|
||||
|
@ -1,3 +1,12 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
moreblocks.config = {}
|
||||
|
||||
local function getbool_default(setting, default)
|
||||
|
10
crafting.lua
10
crafting.lua
@ -1,4 +1,11 @@
|
||||
-- Crafting
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:stick",
|
||||
@ -448,7 +455,6 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
|
||||
})
|
||||
|
2
init.lua
2
init.lua
@ -4,7 +4,7 @@
|
||||
By Calinou, with the help of ShadowNinja and VanessaE.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.txt for more information.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
local S = moreblocks.intllib
|
||||
|
||||
local sound_wood = default.node_sound_wood_defaults()
|
||||
|
@ -1,3 +1,11 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
local S = moreblocks.gettext
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
-- Redefinitions of some default crafting recipes:
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -1,6 +1,5 @@
|
||||
API documentation for Stairs+
|
||||
================================
|
||||
- - - - - - - - - - - - - - - -
|
||||
=============================
|
||||
|
||||
* `stairsplus:register_all(modname, subname, recipeitem, fields)`
|
||||
Registers a stair, slab, panel, microblock, and any other types of
|
||||
|
@ -1,3 +1,11 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
local function register_stairsplus_alias(modname, origname, newname)
|
||||
minetest.register_alias(modname.. ":slab_" ..origname, "moreblocks:slab_" ..newname)
|
||||
|
@ -1,3 +1,12 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
-- Function to convert all stairs/slabs/etc nodes from
|
||||
-- inverted, wall, etc to regular + 6d facedir
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
-- Nodes will be called <modname>:{stair,slab,panel,micro}_<subname>
|
||||
|
||||
local modpath = minetest.get_modpath("moreblocks").. "/stairsplus"
|
||||
|
@ -1,9 +1,13 @@
|
||||
local S -- Load translation library if intllib is installed:
|
||||
if intllib then
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
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>:micro_<subname>
|
||||
|
||||
|
@ -1,9 +1,13 @@
|
||||
local S -- Load translation library if intllib is installed:
|
||||
if intllib then
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
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>:panel_<subname>
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
||||
"stone",
|
||||
"cobble",
|
||||
|
@ -1,9 +1,13 @@
|
||||
local S -- Load translation library if intllib is installed:
|
||||
if intllib then
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
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>
|
||||
|
||||
|
@ -1,9 +1,13 @@
|
||||
local S -- Load translation library if intllib is installed:
|
||||
if intllib then
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
|
||||
local S = moreblocks.intllib
|
||||
|
||||
local box_slope = {
|
||||
type = "fixed",
|
||||
|
@ -1,9 +1,13 @@
|
||||
local S -- Load translation library if intllib is installed:
|
||||
if intllib then
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
--[[
|
||||
======================================================================
|
||||
This file is part of More Blocks.
|
||||
|
||||
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>:stair_<subname>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user