Moreblocks' update
- Moreblocks' update to use last version's nodes and features
7
mods/moreblocks/LICENSE.txt → mods/moreblocks/LICENSE.md
Executable file → Normal file
@ -1,8 +1,9 @@
|
||||
+---- zlib/libpng license ----+
|
||||
zlib license
|
||||
============
|
||||
|
||||
Copyright (c) 2013-2014 Calinou and contributors
|
||||
Copyright (c) 2011-2015 Calinou and contributors
|
||||
|
||||
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
|
||||
**This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.**
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
||||
|
11
mods/moreblocks/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
More Blocks
|
||||
===========
|
||||
|
||||
More Blocks for Minetest <http://minetest.net>, a free/libre infinite
|
||||
world block sandbox game.
|
||||
|
||||
To install, just clone this repository into your "mods" directory.
|
||||
|
||||
More Blocks code is licensed under the zlib license, textures are by Calinou and are licensed under CC BY-SA 3.0 Unported.
|
||||
|
||||
**Forum topic:** <https://forum.minetest.net/viewtopic.php?f=11&t=509>
|
@ -1,12 +0,0 @@
|
||||
More Blocks
|
||||
==========
|
||||
|
||||
More Blocks for Minetest (http://minetest.net), a free and open source infinite
|
||||
world block sandbox game.
|
||||
|
||||
To install, just clone this repository into your "mods" directory.
|
||||
|
||||
More Blocks code is under the zlib license, textures are under CC BY-SA 3.0 unported.
|
||||
|
||||
Forum topic: http://forum.minetest.net/viewtopic.php?id=509
|
||||
|
21
mods/moreblocks/aliases.lua
Executable file → Normal file
@ -1,24 +1,28 @@
|
||||
-- More Blocks aliases
|
||||
--[[
|
||||
More Blocks: alias definitions
|
||||
|
||||
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")
|
||||
minetest.register_alias("moreblocks:jungle_wood", "default:junglewood")
|
||||
|
||||
for _, t in pairs(circular_saw.names) do
|
||||
minetest.register_alias("moreblocks:" ..t[1].. "_jungle_wood" ..t[2],
|
||||
"moreblocks:" ..t[1].. "_junglewood" ..t[2])
|
||||
minetest.register_alias("moreblocks:" .. t[1] .. "_jungle_wood" .. t[2],
|
||||
"moreblocks:" .. t[1] .. "_junglewood" .. t[2])
|
||||
end
|
||||
minetest.register_alias("moreblocks:horizontaltree", "moreblocks:horizontal_tree")
|
||||
minetest.register_alias("moreblocks:horizontaljungletree", "moreblocks:horizontal_jungle_tree")
|
||||
@ -51,8 +55,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({
|
||||
|
10
mods/moreblocks/circular_saw.lua
Executable file → Normal file
@ -1,4 +1,12 @@
|
||||
local S = moreblocks.gettext
|
||||
--[[
|
||||
More Blocks: circular saw
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
--]]
|
||||
|
||||
local S = moreblocks.intllib
|
||||
|
||||
circular_saw = {}
|
||||
|
||||
circular_saw.known_stairs = setmetatable({}, {
|
||||
|
7
mods/moreblocks/config.lua
Executable file → Normal file
@ -1,3 +1,10 @@
|
||||
--[[
|
||||
More Blocks: configuration handling
|
||||
|
||||
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)
|
||||
|
7
mods/moreblocks/crafting.lua
Executable file → Normal file
@ -1,4 +1,9 @@
|
||||
-- Crafting
|
||||
--[[
|
||||
More Blocks: crafting recipes
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
--]]
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:stick",
|
||||
|
4
mods/moreblocks/depends.txt
Executable file → Normal file
@ -1,2 +1,2 @@
|
||||
default
|
||||
intllib?
|
||||
default
|
||||
intllib?
|
||||
|
23
mods/moreblocks/init.lua
Executable file → Normal file
@ -1,20 +1,22 @@
|
||||
--[[
|
||||
-- More Blocks (moreblocks) by Calinou
|
||||
-- Licensed under the zlib/ license for code and CC BY-SA 3.0 for textures, see LICENSE.txt for info.
|
||||
=====================================================================
|
||||
** More Blocks **
|
||||
By Calinou, with the help of ShadowNinja and VanessaE.
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
=====================================================================
|
||||
--]]
|
||||
|
||||
moreblocks = {}
|
||||
|
||||
-- Load translation library if intllib is installed
|
||||
|
||||
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())
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
moreblocks.gettext = S
|
||||
moreblocks.intllib = S
|
||||
|
||||
local modpath = minetest.get_modpath("moreblocks")
|
||||
|
||||
@ -27,6 +29,5 @@ dofile(modpath .. "/crafting.lua")
|
||||
dofile(modpath .. "/aliases.lua")
|
||||
|
||||
if minetest.setting_getbool("log_mods") then
|
||||
print(S("[moreblocks] loaded."))
|
||||
minetest.log("action", S("[moreblocks] loaded."))
|
||||
end
|
||||
|
||||
|
0
mods/moreblocks/locale/de.txt
Executable file → Normal file
0
mods/moreblocks/locale/es.txt
Executable file → Normal file
0
mods/moreblocks/locale/fr.txt
Executable file → Normal file
0
mods/moreblocks/locale/template.txt
Executable file → Normal file
21
mods/moreblocks/models/moreblocks_slope.obj
Normal file
@ -0,0 +1,21 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_slope_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_slope_onetexture.mtl
|
||||
o Cube_Cube.002
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
usemtl None
|
||||
s off
|
||||
f 1/1 2/2 3/3 4/4
|
||||
f 4/3 3/4 5/1 6/2
|
||||
f 2/1 5/3 3/4
|
||||
f 1/2 4/3 6/4
|
||||
f 2/1 1/2 6/3 5/4
|
23
mods/moreblocks/models/moreblocks_slope_half.obj
Normal file
@ -0,0 +1,23 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_slope_long_fronthalf_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_slope_long_fronthalf_onetexture.mtl
|
||||
o Cube_Cube.002
|
||||
v 0.500000 -0.000000 0.500000
|
||||
v -0.500000 -0.000000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
vt 1.000000 0.500000
|
||||
vt 0.000000 0.500000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
usemtl None
|
||||
s off
|
||||
f 1/1 2/2 3/3 4/4
|
||||
f 4/3 3/4 5/5 6/6
|
||||
f 2/1 5/3 3/4
|
||||
f 1/2 4/3 6/4
|
||||
f 2/5 1/6 6/3 5/4
|
26
mods/moreblocks/models/moreblocks_slope_half_raised.obj
Normal file
@ -0,0 +1,26 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_slope_long_backhalf_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_slope_long_backhalf_onetexture.mtl
|
||||
o Cube
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.500000 0.000000 -0.500000
|
||||
v 0.500000 0.000000 -0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 0.500000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 0.500000
|
||||
vt 0.000000 1.000000
|
||||
usemtl None
|
||||
s off
|
||||
f 5/1 6/2 2/3 1/4
|
||||
f 6/5 7/2 3/3 2/4
|
||||
f 7/5 8/6 4/3 3/4
|
||||
f 8/1 5/6 1/3 4/4
|
||||
f 1/4 2/1 3/6 4/3
|
||||
f 8/6 7/3 6/4 5/1
|
26
mods/moreblocks/models/moreblocks_slope_inner.obj
Normal file
@ -0,0 +1,26 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_icorner_onetexture.blend'
|
||||
# www.blender.org
|
||||
o Cube_Cube.000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
s off
|
||||
f 6/1 1/2 7/3 8/4
|
||||
f 2/1 5/3 3/4
|
||||
f 2/1 1/2 5/4
|
||||
f 6/2 8/3 9/4
|
||||
f 9/1 8/2 7/3 3/4
|
||||
f 3/3 7/4 1/1 2/2
|
||||
f 1/1 6/2 9/3
|
||||
l 1 4
|
||||
l 3 4
|
28
mods/moreblocks/models/moreblocks_slope_inner_half.obj
Normal file
@ -0,0 +1,28 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_icorner_half_short_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_icorner_half_short_onetexture.mtl
|
||||
o Cube_Cube.000
|
||||
v 0.500000 -0.000000 0.500000
|
||||
v -0.500000 -0.000000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.000000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
usemtl None
|
||||
s off
|
||||
f 6/1 1/2 7/3 8/4
|
||||
f 2/1 5/3 3/4
|
||||
f 2/1 1/2 5/4
|
||||
f 6/2 8/3 9/4
|
||||
f 9/1 8/2 7/3 3/4
|
||||
f 3/3 7/4 1/1 2/2
|
||||
f 1/1 6/2 9/3
|
||||
l 1 4
|
||||
l 3 4
|
@ -0,0 +1,31 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_icorner_half_tall_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_icorner_half_tall_onetexture.mtl
|
||||
o Cube_Cube.000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 0.000000 -0.500000
|
||||
v 0.500000 0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v -0.500000 0.000000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 0.500000
|
||||
vt 0.000000 0.500000
|
||||
usemtl None
|
||||
s off
|
||||
f 6/1 1/2 7/3 8/4
|
||||
f 2/1 1/2 5/4
|
||||
f 3/3 7/4 1/1 2/2
|
||||
f 1/2 6/3 9/4
|
||||
f 3/1 10/2 8/3 7/4
|
||||
f 8/3 10/4 5/5 6/2
|
||||
f 3/4 2/1 5/6 10/3
|
||||
l 1 4
|
||||
l 3 4
|
18
mods/moreblocks/models/moreblocks_slope_outer.obj
Normal file
@ -0,0 +1,18 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_ocorner_onetexture.blend'
|
||||
# www.blender.org
|
||||
o Cube_Cube.002
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
s off
|
||||
f 3/1 2/2 4/3 5/4
|
||||
f 1/2 3/3 5/4
|
||||
f 1/1 2/3 3/4
|
||||
f 1/1 4/3 2/4
|
||||
f 1/2 5/3 4/4
|
19
mods/moreblocks/models/moreblocks_slope_outer_cut.obj
Normal file
@ -0,0 +1,19 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_corner_pyramid_tall_2_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_corner_pyramid_tall_2_onetexture.mtl
|
||||
o Cube
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.500000 1.000000
|
||||
usemtl None
|
||||
s off
|
||||
f 4/1 1/2 3/3
|
||||
f 2/3 4/4 3/2
|
||||
f 3/2 1/3 2/4
|
||||
f 1/3 4/5 2/2
|
20
mods/moreblocks/models/moreblocks_slope_outer_cut_half.obj
Normal file
@ -0,0 +1,20 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_corner_pyramid_short_2_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_corner_pyramid_short_2_onetexture.mtl
|
||||
o Cube
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 0.000000 0.500000
|
||||
vt 1.000000 0.500000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 0.000000 0.500000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.500000 1.000000
|
||||
usemtl None
|
||||
s off
|
||||
f 4/1 1/2 3/3
|
||||
f 2/3 4/4 3/2
|
||||
f 3/2 1/3 2/5
|
||||
f 1/3 4/6 2/2
|
@ -0,0 +1,23 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_corner_pyramid_short_3_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_corner_pyramid_short_3_onetexture.mtl
|
||||
o Cube_Cube.002
|
||||
v -0.500000 -0.000000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.000000 -0.500000
|
||||
vt 0.000000 0.500000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 1.000000 0.500000
|
||||
usemtl None
|
||||
s off
|
||||
f 1/1 2/2 3/3 4/4
|
||||
f 4/5 3/2 5/3 6/6
|
||||
f 2/5 5/3 3/4
|
||||
f 1/2 4/3 6/4
|
||||
f 2/3 1/6 6/1 5/2
|
22
mods/moreblocks/models/moreblocks_slope_outer_half.obj
Normal file
@ -0,0 +1,22 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_corner_pyramid_short_1_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_corner_pyramid_short_1_onetexture.mtl
|
||||
o Cube
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 0.000000 0.500000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 0.500000
|
||||
vt 0.000000 0.500000
|
||||
usemtl None
|
||||
s off
|
||||
f 1/1 2/2 3/3 4/4
|
||||
f 5/5 1/3 4/4
|
||||
f 3/4 5/6 4/3
|
||||
f 2/4 5/2 3/3
|
||||
f 1/4 5/1 2/3
|
@ -0,0 +1,27 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_corner_pyramid_tall_3_onetexture.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_corner_pyramid_tall_3_onetexture.mtl
|
||||
o Cube_Cube.002
|
||||
v -0.500000 -0.000000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.000000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.000000 -0.500000
|
||||
vt 0.000000 0.500000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 1.000000 0.500000
|
||||
usemtl None
|
||||
s off
|
||||
f 1/1 2/2 3/3 4/4
|
||||
f 4/5 3/2 5/3 6/6
|
||||
f 8/3 4/5 6/2
|
||||
f 1/6 8/1 7/2 2/3
|
||||
f 4/5 8/3 1/4
|
||||
f 6/1 5/2 7/3 8/6
|
||||
f 5/5 3/2 2/3 7/4
|
14
mods/moreblocks/nodes.lua
Executable file → Normal file
@ -1,4 +1,11 @@
|
||||
local S = moreblocks.gettext
|
||||
--[[
|
||||
More Blocks: node definitions
|
||||
|
||||
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()
|
||||
local sound_stone = default.node_sound_stone_defaults()
|
||||
@ -116,6 +123,11 @@ local nodes = {
|
||||
groups = {cracky = 2},
|
||||
sounds = sound_stone,
|
||||
},
|
||||
["cobble_compressed"] = {
|
||||
description = S("Compressed Cobblestone"),
|
||||
groups = {cracky = 1},
|
||||
sounds = sound_stone,
|
||||
},
|
||||
["plankstone"] = {
|
||||
description = S("Plankstone"),
|
||||
groups = {cracky = 3},
|
||||
|
6
mods/moreblocks/ownership.lua
Executable file → Normal file
@ -1,3 +1,9 @@
|
||||
--[[
|
||||
More Blocks: ownership handling
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
--]]
|
||||
|
||||
local S = moreblocks.gettext
|
||||
|
||||
|
12
mods/moreblocks/redefinitions.lua
Executable file → Normal file
@ -1,3 +1,10 @@
|
||||
--[[
|
||||
More Blocks: redefinitions of default stuff
|
||||
|
||||
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({
|
||||
@ -71,6 +78,11 @@ minetest.override_item("default:papyrus", {
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
|
||||
minetest.override_item("default:fence_wood", {
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
|
||||
minetest.override_item("default:junglegrass", {
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
3
mods/moreblocks/stairsplus/API.md
Executable file → Normal file
@ -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
|
||||
|
8
mods/moreblocks/stairsplus/aliases.lua
Executable file → Normal file
@ -1,3 +1,9 @@
|
||||
--[[
|
||||
More Blocks: alias definitions
|
||||
|
||||
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)
|
||||
@ -33,12 +39,14 @@ end
|
||||
|
||||
register_stairsplus_alias("stairsplus", "stone", "stone")
|
||||
register_stairsplus_alias("stairsplus", "wood", "wood")
|
||||
register_stairsplus_alias("stairsplus", "pinewood", "pinewood")
|
||||
register_stairsplus_alias("stairsplus", "cobble", "cobble")
|
||||
register_stairsplus_alias("stairsplus", "brick", "brick")
|
||||
register_stairsplus_alias("stairsplus", "sandstone", "sandstone")
|
||||
register_stairsplus_alias("stairsplus", "glass", "glass")
|
||||
register_stairsplus_alias("stairsplus", "tree", "tree")
|
||||
register_stairsplus_alias("stairsplus", "jungletree", "jungletree")
|
||||
register_stairsplus_alias("stairsplus", "pinetree", "pinetree")
|
||||
register_stairsplus_alias("stairsplus", "desert_stone", "desert_stone")
|
||||
register_stairsplus_alias("stairsplus", "steelblock", "steelblock")
|
||||
register_stairsplus_alias("stairsplus", "mossycobble", "mossycobble")
|
||||
|
7
mods/moreblocks/stairsplus/conversion.lua
Executable file → Normal file
@ -1,3 +1,10 @@
|
||||
--[[
|
||||
More Blocks: conversion
|
||||
|
||||
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
|
||||
|
||||
|
19
mods/moreblocks/stairsplus/init.lua
Executable file → Normal file
@ -1,3 +1,10 @@
|
||||
--[[
|
||||
More Blocks: Stairs+
|
||||
|
||||
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"
|
||||
@ -18,6 +25,7 @@ function stairsplus:register_all(modname, subname, recipeitem, fields)
|
||||
end
|
||||
self:register_stair(modname, subname, recipeitem, fields)
|
||||
self:register_slab (modname, subname, recipeitem, fields)
|
||||
self:register_slope(modname, subname, recipeitem, fields)
|
||||
self:register_panel(modname, subname, recipeitem, fields)
|
||||
self:register_micro(modname, subname, recipeitem, fields)
|
||||
-- self:register_6dfacedir_conversion(modname, subname) -- Not needed as of Q3 2013, uncomment to fix old maps.
|
||||
@ -36,8 +44,9 @@ end
|
||||
|
||||
-- dofile(modpath.. "/aliases.lua") -- Not needed as of Q2 2013, uncomment to fix old maps.
|
||||
-- dofile(modpath.. "/conversion.lua") -- Not needed as of Q2 2013, uncomment to fix old maps.
|
||||
dofile(modpath.. "/stairs.lua")
|
||||
dofile(modpath.. "/slabs.lua")
|
||||
dofile(modpath.. "/panels.lua")
|
||||
dofile(modpath.. "/microblocks.lua")
|
||||
dofile(modpath.. "/registrations.lua")
|
||||
dofile(modpath .. "/stairs.lua")
|
||||
dofile(modpath .. "/slabs.lua")
|
||||
dofile(modpath .. "/slopes.lua")
|
||||
dofile(modpath .. "/panels.lua")
|
||||
dofile(modpath .. "/microblocks.lua")
|
||||
dofile(modpath .. "/registrations.lua")
|
||||
|
15
mods/moreblocks/stairsplus/microblocks.lua
Executable file → Normal 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: microblock 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>:micro_<subname>
|
||||
|
||||
|
15
mods/moreblocks/stairsplus/panels.lua
Executable file → Normal 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: panel 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>:panel_<subname>
|
||||
|
||||
|
11
mods/moreblocks/stairsplus/registrations.lua
Executable file → Normal file
@ -1,3 +1,10 @@
|
||||
--[[
|
||||
More Blocks: registrations
|
||||
|
||||
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",
|
||||
@ -10,12 +17,14 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
||||
"bronzeblock",
|
||||
"diamondblock",
|
||||
"desert_stone",
|
||||
-- "desert_cobble",
|
||||
"desert_cobble",
|
||||
"glass",
|
||||
"tree",
|
||||
"wood",
|
||||
"jungletree",
|
||||
"junglewood",
|
||||
"pinetree",
|
||||
"pinewood",
|
||||
"obsidian",
|
||||
"obsidian_glass",
|
||||
"stonebrick",
|
||||
|
21
mods/moreblocks/stairsplus/slabs.lua
Executable file → Normal 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:
|
||||
|
||||
|
459
mods/moreblocks/stairsplus/slopes.lua
Normal file
@ -0,0 +1,459 @@
|
||||
--[[
|
||||
More Blocks: slope definitions
|
||||
|
||||
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",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
||||
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
||||
}
|
||||
}
|
||||
|
||||
local box_slope_half = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
|
||||
{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
|
||||
}
|
||||
}
|
||||
|
||||
local box_slope_half_raised = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
||||
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0, 0.5, 0.375, 0.5},
|
||||
{-0.5, 0.375, 0.25, 0.5, 0.5, 0.5},
|
||||
}
|
||||
}
|
||||
|
||||
--==============================================================
|
||||
|
||||
local box_slope_inner = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.5, -0.25, 0.5, 0, 0.5},
|
||||
{-0.5, -0.5, -0.5, 0.25, 0, 0.5},
|
||||
{-0.5, 0, -0.5, 0, 0.25, 0.5},
|
||||
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5},
|
||||
{-0.5, 0.25, -0.5, -0.25, 0.5, 0.5},
|
||||
}
|
||||
}
|
||||
|
||||
local box_slope_inner_half = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.375, -0.5, 0.25, -0.25, 0.5},
|
||||
{-0.5, -0.25, -0.5, 0, -0.125, 0.5},
|
||||
{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
|
||||
{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
|
||||
{-0.5, -0.125, -0.5, -0.25, 0, 0.5},
|
||||
}
|
||||
}
|
||||
|
||||
local box_slope_inner_half_raised = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
||||
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
|
||||
{-0.5, 0.125, -0.5, 0.25, 0.25, 0.5},
|
||||
{-0.5, 0.25, -0.5, 0, 0.375, 0.5},
|
||||
{-0.5, 0.25, 0, 0.5, 0.375, 0.5},
|
||||
{-0.5, 0.375, 0.25, 0.5, 0.5, 0.5},
|
||||
{-0.5, 0.375, -0.5, -0.25, 0.5, 0.5},
|
||||
}
|
||||
}
|
||||
|
||||
--==============================================================
|
||||
|
||||
local box_slope_outer = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.25, -0.25, 0.25, 0, 0.5},
|
||||
{-0.5, 0, 0, 0, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0.25, -0.25, 0.5, 0.5}
|
||||
}
|
||||
}
|
||||
|
||||
local box_slope_outer_half = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
{-0.5, -0.375, -0.25, 0.25, -0.25, 0.5},
|
||||
{-0.5, -0.25, 0, 0, -0.125, 0.5},
|
||||
{-0.5, -0.125, 0.25, -0.25, 0, 0.5}
|
||||
}
|
||||
}
|
||||
|
||||
local box_slope_outer_half_raised = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
||||
{-0.5, 0.125, -0.25, 0.25, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0, 0, 0.375, 0.5},
|
||||
{-0.5, 0.375, 0.25, -0.25, 0.5, 0.5}
|
||||
}
|
||||
}
|
||||
|
||||
-- Node will be called <modname>:slope_<subname>
|
||||
|
||||
function register_slope(modname, subname, recipeitem, groups, images, description, drop, light)
|
||||
return stairsplus:register_slope(modname, subname, recipeitem, {
|
||||
groups = groups,
|
||||
tiles = images,
|
||||
description = description,
|
||||
drop = drop,
|
||||
light_source = light,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
function stairsplus:register_slope(modname, subname, recipeitem, fields)
|
||||
local defs = {
|
||||
[""] = {
|
||||
mesh = "moreblocks_slope.obj",
|
||||
collision_box = box_slope,
|
||||
selection_box = box_slope,
|
||||
|
||||
},
|
||||
["_half"] = {
|
||||
mesh = "moreblocks_slope_half.obj",
|
||||
collision_box = box_slope_half,
|
||||
selection_box = box_slope_half,
|
||||
},
|
||||
["_half_raised"] = {
|
||||
mesh = "moreblocks_slope_half_raised.obj",
|
||||
collision_box = box_slope_half_raised,
|
||||
selection_box = box_slope_half_raised,
|
||||
},
|
||||
|
||||
--==============================================================
|
||||
|
||||
["_inner"] = {
|
||||
mesh = "moreblocks_slope_inner.obj",
|
||||
collision_box = box_slope_inner,
|
||||
selection_box = box_slope_inner,
|
||||
},
|
||||
["_inner_half"] = {
|
||||
mesh = "moreblocks_slope_inner_half.obj",
|
||||
collision_box = box_slope_inner_half,
|
||||
selection_box = box_slope_inner_half,
|
||||
},
|
||||
["_inner_half_raised"] = {
|
||||
mesh = "moreblocks_slope_inner_half_raised.obj",
|
||||
collision_box = box_slope_inner_half_raised,
|
||||
selection_box = box_slope_inner_half_raised,
|
||||
},
|
||||
|
||||
--==============================================================
|
||||
|
||||
["_outer"] = {
|
||||
mesh = "moreblocks_slope_outer.obj",
|
||||
collision_box = box_slope_outer,
|
||||
selection_box = box_slope_outer,
|
||||
},
|
||||
["_outer_half"] = {
|
||||
mesh = "moreblocks_slope_outer_half.obj",
|
||||
collision_box = box_slope_outer_half,
|
||||
selection_box = box_slope_outer_half,
|
||||
},
|
||||
["_outer_half_raised"] = {
|
||||
mesh = "moreblocks_slope_outer_half_raised.obj",
|
||||
collision_box = box_slope_outer_half_raised,
|
||||
selection_box = box_slope_outer_half_raised,
|
||||
},
|
||||
|
||||
--==============================================================
|
||||
|
||||
["_outer_cut"] = {
|
||||
mesh = "moreblocks_slope_outer_cut.obj",
|
||||
collision_box = box_slope_outer,
|
||||
selection_box = box_slope_outer,
|
||||
},
|
||||
["_outer_cut_half"] = {
|
||||
mesh = "moreblocks_slope_outer_cut_half.obj",
|
||||
collision_box = box_slope_outer_half,
|
||||
selection_box = box_slope_outer_half,
|
||||
},
|
||||
["_outer_cut_half_raised"] = {
|
||||
mesh = "moreblocks_slope_outer_cut_half_raised.obj",
|
||||
collision_box = box_slope_outer_half_raised,
|
||||
selection_box = box_slope_outer_half_raised,
|
||||
},
|
||||
}
|
||||
|
||||
local desc = S("%s Slope"):format(fields.description)
|
||||
for alternate, def in pairs(defs) do
|
||||
def.drawtype = "mesh"
|
||||
def.paramtype = "light"
|
||||
def.paramtype2 = "facedir"
|
||||
def.on_place = minetest.rotate_node
|
||||
for k, v in pairs(fields) do
|
||||
def[k] = v
|
||||
end
|
||||
def.description = desc
|
||||
if fields.drop then
|
||||
def.drop = modname.. ":slope_" ..fields.drop..alternate
|
||||
end
|
||||
minetest.register_node(":" ..modname.. ":slope_" ..subname..alternate, def)
|
||||
end
|
||||
|
||||
-- Some saw-less recipes:
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. " 7",
|
||||
recipe = {
|
||||
{modname .. ":panel_" .. subname, "", ""},
|
||||
{recipeitem, modname .. ":panel_" .. subname, ""},
|
||||
{recipeitem, recipeitem, modname .. ":panel_" .. subname},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. " 7",
|
||||
recipe = {
|
||||
{"", "", modname .. ":panel_" .. subname},
|
||||
{"", modname .. ":panel_" .. subname, recipeitem},
|
||||
{modname .. ":panel_" .. subname, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_half 10",
|
||||
recipe = {
|
||||
{modname .. ":panel_" .. subname, "", ""},
|
||||
{recipeitem, recipeitem, modname .. ":panel_" .. subname},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_half 10",
|
||||
recipe = {
|
||||
{"", "", modname .. ":panel_" .. subname},
|
||||
{modname .. ":panel_" .. subname, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_half_raised 7",
|
||||
recipe = {
|
||||
{modname .. ":panel_" .. subname, "", ""},
|
||||
{recipeitem, recipeitem, modname .. ":panel_" .. subname},
|
||||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_half_raised 7",
|
||||
recipe = {
|
||||
{"", "", modname .. ":panel_" .. subname},
|
||||
{modname .. ":panel_" .. subname, recipeitem, recipeitem},
|
||||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
--===================================================== Inner ==
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_inner 7",
|
||||
recipe = {
|
||||
{modname .. ":stair_" .. subname .. "_half", "", ""},
|
||||
{recipeitem, modname .. ":stair_" .. subname .. "_half", ""},
|
||||
{recipeitem, recipeitem, modname .. ":stair_" .. subname .. "_half"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_inner 7",
|
||||
recipe = {
|
||||
{"", "", modname .. ":stair_" .. subname .. "_half"},
|
||||
{"", modname .. ":stair_" .. subname .. "_half", recipeitem},
|
||||
{modname .. ":stair_" .. subname .. "_half", recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_inner_half 10",
|
||||
recipe = {
|
||||
{modname .. ":stair_" .. subname .. "_half", "", ""},
|
||||
{recipeitem, recipeitem, modname .. ":stair_" .. subname .. "_half"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_inner_half 10",
|
||||
recipe = {
|
||||
{"", "", modname .. ":stair_" .. subname .. "_half"},
|
||||
{modname .. ":stair_" .. subname .. "_half", recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_inner_half_raised 7",
|
||||
recipe = {
|
||||
{modname .. ":stair_" .. subname .. "_half", "", ""},
|
||||
{recipeitem, recipeitem, modname .. ":stair_" .. subname .. "_half"},
|
||||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_inner_half_raised 7",
|
||||
recipe = {
|
||||
{"", "", modname .. ":stair_" .. subname .. "_half"},
|
||||
{modname .. ":stair_" .. subname .. "_half", recipeitem, recipeitem},
|
||||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
--===================================================== Outer ==
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_outer 7",
|
||||
recipe = {
|
||||
{modname .. ":micro_" .. subname, "", ""},
|
||||
{recipeitem, modname .. ":micro_" .. subname, ""},
|
||||
{recipeitem, recipeitem, modname .. ":micro_" .. subname},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_outer 7",
|
||||
recipe = {
|
||||
{"", "", modname .. ":micro_" .. subname},
|
||||
{"", modname .. ":micro_" .. subname, recipeitem},
|
||||
{modname .. ":micro_" .. subname, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_outer_half 10",
|
||||
recipe = {
|
||||
{modname .. ":micro_" .. subname, "", ""},
|
||||
{recipeitem, recipeitem, modname .. ":micro_" .. subname},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_outer_half 10",
|
||||
recipe = {
|
||||
{"", "", modname .. ":micro_" .. subname},
|
||||
{modname .. ":micro_" .. subname, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_outer_half_raised 7",
|
||||
recipe = {
|
||||
{modname .. ":micro_" .. subname, "", ""},
|
||||
{recipeitem, recipeitem, modname .. ":micro_" .. subname},
|
||||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":slope_" .. subname .. "_outer_half_raised 7",
|
||||
recipe = {
|
||||
{"", "", modname .. ":micro_" .. subname},
|
||||
{modname .. ":micro_" .. subname, recipeitem, recipeitem},
|
||||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
--================================================= Shapeless ==
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = recipeitem,
|
||||
recipe = {modname .. ":slope_" .. subname, modname .. ":slope_" .. subname},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = recipeitem,
|
||||
recipe = {modname .. ":slope_" .. subname .. "_outer_cut", modname .. ":slope_" .. subname .. "_outer_cut"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = recipeitem,
|
||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half_raised"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = recipeitem,
|
||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
||||
modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slab_" .. subname,
|
||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slope_" .. subname .. "_half_raised",
|
||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
||||
modname .. ":slope_" .. subname .. "_half"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slope_" .. subname .. "_half_raised",
|
||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_half"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slope_" .. subname .. "_inner_half_raised",
|
||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_half"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slope_" .. subname .. "_outer_half_raised",
|
||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_outer_half"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slope_" .. subname .. "_outer_cut_half_raised",
|
||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_outer_cut_half"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slope_" .. subname .. "_outer_cut",
|
||||
recipe = {modname .. ":slope_" .. subname .. "_outer"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slope_" .. subname .. "_outer_cut_half",
|
||||
recipe = {modname .. ":slope_" .. subname .. "_outer_half"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = modname .. ":slope_" .. subname .. "_outer_cut_half_raised",
|
||||
recipe = {modname .. ":slope_" .. subname .. "_outer_half_raised"},
|
||||
})
|
||||
end
|
21
mods/moreblocks/stairsplus/stairs.lua
Executable file → Normal 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: stair 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>:stair_<subname>
|
||||
|
||||
@ -116,11 +117,11 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
||||
end
|
||||
def.description = desc
|
||||
if fields.drop then
|
||||
def.drop = modname.. ":stair_" ..fields.drop..alternate
|
||||
def.drop = modname .. ":stair_" .. fields.drop .. alternate
|
||||
end
|
||||
minetest.register_node(":" ..modname.. ":stair_" ..subname..alternate, def)
|
||||
minetest.register_node(":" .. modname .. ":stair_" .. subname .. alternate, def)
|
||||
end
|
||||
minetest.register_alias(":stairs:stair_" ..subname, modname.. ":stair_" ..subname)
|
||||
minetest.register_alias("stairs:stair_" .. subname, modname .. ":stair_" .. subname)
|
||||
|
||||
-- Some saw-less recipes:
|
||||
|
||||
|
0
mods/moreblocks/textures/default_brick.png
Executable file → Normal file
Before Width: | Height: | Size: 716 B After Width: | Height: | Size: 716 B |
0
mods/moreblocks/textures/default_fence_overlay.png
Executable file → Normal file
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 285 B |
0
mods/moreblocks/textures/invisible.png
Executable file → Normal file
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
0
mods/moreblocks/textures/moreblocks_cactus_brick.png
Executable file → Normal file
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 718 B |
0
mods/moreblocks/textures/moreblocks_cactus_checker.png
Executable file → Normal file
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 693 B |
0
mods/moreblocks/textures/moreblocks_circle_stone_bricks.png
Executable file → Normal file
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 448 B |
0
mods/moreblocks/textures/moreblocks_circular_saw_bottom.png
Executable file → Normal file
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 579 B |
0
mods/moreblocks/textures/moreblocks_circular_saw_side.png
Executable file → Normal file
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
0
mods/moreblocks/textures/moreblocks_circular_saw_top.png
Executable file → Normal file
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 441 B |
0
mods/moreblocks/textures/moreblocks_clean_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 177 B |
0
mods/moreblocks/textures/moreblocks_coal_checker.png
Executable file → Normal file
Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 744 B |
0
mods/moreblocks/textures/moreblocks_coal_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
0
mods/moreblocks/textures/moreblocks_coal_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 B |
0
mods/moreblocks/textures/moreblocks_coal_stone.png
Executable file → Normal file
Before Width: | Height: | Size: 229 B After Width: | Height: | Size: 229 B |
0
mods/moreblocks/textures/moreblocks_coal_stone_bricks.png
Executable file → Normal file
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
0
mods/moreblocks/textures/moreblocks_empty_bookshelf.png
Executable file → Normal file
Before Width: | Height: | Size: 585 B After Width: | Height: | Size: 585 B |
0
mods/moreblocks/textures/moreblocks_fence_jungle_wood.png
Executable file → Normal file
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 204 B |
0
mods/moreblocks/textures/moreblocks_fence_wood.png
Executable file → Normal file
Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 480 B |
0
mods/moreblocks/textures/moreblocks_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 210 B |
0
mods/moreblocks/textures/moreblocks_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 215 B |
0
mods/moreblocks/textures/moreblocks_glow_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
0
mods/moreblocks/textures/moreblocks_glow_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
0
mods/moreblocks/textures/moreblocks_grey_bricks.png
Executable file → Normal file
Before Width: | Height: | Size: 725 B After Width: | Height: | Size: 725 B |
0
mods/moreblocks/textures/moreblocks_iron_checker.png
Executable file → Normal file
Before Width: | Height: | Size: 850 B After Width: | Height: | Size: 850 B |
0
mods/moreblocks/textures/moreblocks_iron_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 158 B |
0
mods/moreblocks/textures/moreblocks_iron_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
0
mods/moreblocks/textures/moreblocks_iron_stone.png
Executable file → Normal file
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 230 B |
0
mods/moreblocks/textures/moreblocks_iron_stone_bricks.png
Executable file → Normal file
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 485 B |
0
mods/moreblocks/textures/moreblocks_junglestick.png
Executable file → Normal file
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 122 B |
0
mods/moreblocks/textures/moreblocks_obsidian_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
0
mods/moreblocks/textures/moreblocks_plankstone.png
Executable file → Normal file
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 335 B |
0
mods/moreblocks/textures/moreblocks_plankstone_2.png
Executable file → Normal file
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
0
mods/moreblocks/textures/moreblocks_rope.png
Executable file → Normal file
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
0
mods/moreblocks/textures/moreblocks_split_stone_tile.png
Executable file → Normal file
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 273 B |
0
mods/moreblocks/textures/moreblocks_split_stone_tile_alt.png
Executable file → Normal file
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B |
0
mods/moreblocks/textures/moreblocks_split_stone_tile_top.png
Executable file → Normal file
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 279 B |
0
mods/moreblocks/textures/moreblocks_stone_tile.png
Executable file → Normal file
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 271 B |
0
mods/moreblocks/textures/moreblocks_super_glow_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 154 B |
0
mods/moreblocks/textures/moreblocks_super_glow_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 171 B |
0
mods/moreblocks/textures/moreblocks_sweeper.png
Executable file → Normal file
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 310 B |
0
mods/moreblocks/textures/moreblocks_tar.png
Executable file → Normal file
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B |
0
mods/moreblocks/textures/moreblocks_trap_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
0
mods/moreblocks/textures/moreblocks_trap_glow_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
0
mods/moreblocks/textures/moreblocks_trap_stone.png
Executable file → Normal file
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 333 B |
0
mods/moreblocks/textures/moreblocks_trap_super_glow_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
0
mods/moreblocks/textures/moreblocks_tree_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 311 B |
0
mods/moreblocks/textures/moreblocks_wood_tile.png
Executable file → Normal file
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 396 B |
0
mods/moreblocks/textures/moreblocks_wood_tile_center.png
Executable file → Normal file
Before Width: | Height: | Size: 288 B After Width: | Height: | Size: 288 B |
0
mods/moreblocks/textures/moreblocks_wood_tile_full.png
Executable file → Normal file
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
0
mods/moreblocks/textures/moreblocks_wood_tile_up.png
Executable file → Normal file
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 289 B |