forked from minetest-mods/moreblocks
Run cleanfile on all files, fixing whitespace issues.
This commit is contained in:
parent
d587b4d23f
commit
5500c9906c
@ -77,4 +77,3 @@ minetest.register_abm({
|
|||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ function circular_saw:update_inventory(pos, amount)
|
|||||||
self:reset(pos)
|
self:reset(pos)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local stack = inv:get_stack("input", 1)
|
local stack = inv:get_stack("input", 1)
|
||||||
-- At least one "normal" block is necessary to see what kind of stairs are requested.
|
-- At least one "normal" block is necessary to see what kind of stairs are requested.
|
||||||
if stack:is_empty() then
|
if stack:is_empty() then
|
||||||
@ -371,14 +371,14 @@ function circular_saw.can_dig(pos,player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("moreblocks:circular_saw", {
|
minetest.register_node("moreblocks:circular_saw", {
|
||||||
description = S("Circular Saw"),
|
description = S("Circular Saw"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-0.4, -0.5, -0.4, -0.25, 0.25, -0.25}, -- Leg
|
{-0.4, -0.5, -0.4, -0.25, 0.25, -0.25}, -- Leg
|
||||||
{0.25, -0.5, 0.25, 0.4, 0.25, 0.4}, -- Leg
|
{0.25, -0.5, 0.25, 0.4, 0.25, 0.4}, -- Leg
|
||||||
{-0.4, -0.5, 0.25, -0.25, 0.25, 0.4}, -- Leg
|
{-0.4, -0.5, 0.25, -0.25, 0.25, 0.4}, -- Leg
|
||||||
{0.25, -0.5, -0.4, 0.4, 0.25, -0.25}, -- Leg
|
{0.25, -0.5, -0.4, 0.4, 0.25, -0.25}, -- Leg
|
||||||
{-0.5, 0.25, -0.5, 0.5, 0.375, 0.5}, -- Tabletop
|
{-0.5, 0.25, -0.5, 0.5, 0.375, 0.5}, -- Tabletop
|
||||||
{-0.01, 0.4375, -0.125, 0.01, 0.5, 0.125}, -- Saw blade (top)
|
{-0.01, 0.4375, -0.125, 0.01, 0.5, 0.125}, -- Saw blade (top)
|
||||||
@ -389,9 +389,9 @@ minetest.register_node("moreblocks:circular_saw", {
|
|||||||
tiles = {"moreblocks_circular_saw_top.png",
|
tiles = {"moreblocks_circular_saw_top.png",
|
||||||
"moreblocks_circular_saw_bottom.png",
|
"moreblocks_circular_saw_bottom.png",
|
||||||
"moreblocks_circular_saw_side.png"},
|
"moreblocks_circular_saw_side.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {choppy = 2,oddly_breakable_by_hand = 2},
|
groups = {choppy = 2,oddly_breakable_by_hand = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_construct = circular_saw.on_construct,
|
on_construct = circular_saw.on_construct,
|
||||||
|
@ -477,7 +477,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
|
if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:circular_saw",
|
output = "moreblocks:circular_saw",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "", "default:steel_ingot", "" },
|
{ "", "default:steel_ingot", "" },
|
||||||
{ "group:wood", "group:wood", "group:wood"},
|
{ "group:wood", "group:wood", "group:wood"},
|
||||||
|
@ -358,4 +358,3 @@ minetest.register_craftitem("moreblocks:nothing", {
|
|||||||
inventory_image = "invisible.png",
|
inventory_image = "invisible.png",
|
||||||
on_use = function() end,
|
on_use = function() end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -22,11 +22,11 @@ function moreblocks.node_is_owned(pos, placer)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif type(isprotect)=="function" then -- glomie's protection mod
|
elseif type(isprotect)=="function" then -- glomie's protection mod
|
||||||
if not isprotect(5, pos, placer) then
|
if not isprotect(5, pos, placer) then
|
||||||
ownername = S("someone")
|
ownername = S("someone")
|
||||||
end
|
end
|
||||||
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
||||||
if not protector.can_dig(5, pos, placer) then
|
if not protector.can_dig(5, pos, placer) then
|
||||||
ownername = S("someone")
|
ownername = S("someone")
|
||||||
end
|
end
|
||||||
|
@ -81,7 +81,7 @@ function stairsplus:register_6dfacedir_conversion(modname, material)
|
|||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
local fdir = node.param2 or 0
|
local fdir = node.param2 or 0
|
||||||
|
|
||||||
if flip_upside_down and not flip_to_wall then
|
if flip_upside_down and not flip_to_wall then
|
||||||
nfdir = dirs1[fdir + 2]
|
nfdir = dirs1[fdir + 2]
|
||||||
elseif flip_to_wall and not flip_upside_down then
|
elseif flip_to_wall and not flip_upside_down then
|
||||||
nfdir = dirs2[fdir + 1]
|
nfdir = dirs2[fdir + 1]
|
||||||
@ -125,7 +125,7 @@ function stairsplus:register_6dfacedir_conversion(modname, material)
|
|||||||
local fdir = node.param2
|
local fdir = node.param2
|
||||||
local nfdir = 20
|
local nfdir = 20
|
||||||
|
|
||||||
if flip_upside_down and not flip_to_wall then
|
if flip_upside_down and not flip_to_wall then
|
||||||
nfdir = dirs1[fdir + 1]
|
nfdir = dirs1[fdir + 1]
|
||||||
elseif flip_to_wall and not flip_upside_down then
|
elseif flip_to_wall and not flip_upside_down then
|
||||||
nfdir = dirs2[fdir + 2]
|
nfdir = dirs2[fdir + 2]
|
||||||
@ -136,4 +136,3 @@ function stairsplus:register_6dfacedir_conversion(modname, material)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -98,53 +98,53 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
|
|||||||
minetest.register_node(":" ..modname.. ":micro_" ..subname..alternate, def)
|
minetest.register_node(":" ..modname.. ":micro_" ..subname..alternate, def)
|
||||||
end
|
end
|
||||||
minetest.register_alias(modname.. ":micro_" ..subname.. "_bottom", modname.. ":micro_" ..subname)
|
minetest.register_alias(modname.. ":micro_" ..subname.. "_bottom", modname.. ":micro_" ..subname)
|
||||||
|
|
||||||
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
||||||
|
|
||||||
-- Some saw-less recipes:
|
-- Some saw-less recipes:
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":micro_" .. subname .. " 7",
|
output = modname .. ":micro_" .. subname .. " 7",
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_inner"},
|
recipe = {modname .. ":stair_" .. subname .. "_inner"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = modname .. ":micro_" .. subname .. " 6",
|
output = modname .. ":micro_" .. subname .. " 6",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {modname .. ":stair_" .. subname},
|
recipe = {modname .. ":stair_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":micro_" .. subname .. " 5",
|
output = modname .. ":micro_" .. subname .. " 5",
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_outer"},
|
recipe = {modname .. ":stair_" .. subname .. "_outer"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":micro_" .. subname .. " 4",
|
output = modname .. ":micro_" .. subname .. " 4",
|
||||||
recipe = {modname .. ":slab_" .. subname},
|
recipe = {modname .. ":slab_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":micro_" .. subname .. " 4",
|
output = modname .. ":micro_" .. subname .. " 4",
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_alt"},
|
recipe = {modname .. ":stair_" .. subname .. "_alt"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":micro_" .. subname .. " 3",
|
output = modname .. ":micro_" .. subname .. " 3",
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_right_half"},
|
recipe = {modname .. ":stair_" .. subname .. "_right_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":micro_" .. subname .. " 2",
|
output = modname .. ":micro_" .. subname .. " 2",
|
||||||
recipe = {modname .. ":panel_" .. subname},
|
recipe = {modname .. ":panel_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
|
@ -98,7 +98,7 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
|||||||
minetest.register_node(":" ..modname.. ":panel_" ..subname..alternate, def)
|
minetest.register_node(":" ..modname.. ":panel_" ..subname..alternate, def)
|
||||||
end
|
end
|
||||||
minetest.register_alias(modname.. ":panel_" ..subname.. "_bottom", modname.. ":panel_" ..subname)
|
minetest.register_alias(modname.. ":panel_" ..subname.. "_bottom", modname.. ":panel_" ..subname)
|
||||||
|
|
||||||
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
||||||
|
|
||||||
-- Some saw-less recipes:
|
-- Some saw-less recipes:
|
||||||
@ -110,7 +110,7 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
|||||||
{recipeitem, recipeitem},
|
{recipeitem, recipeitem},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = modname .. ":panel_" .. subname .. " 12",
|
output = modname .. ":panel_" .. subname .. " 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -118,13 +118,13 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
|||||||
{recipeitem, recipeitem},
|
{recipeitem, recipeitem},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":panel_" .. subname,
|
output = modname .. ":panel_" .. subname,
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
|
@ -78,27 +78,27 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
|||||||
output = modname .. ":slab_" .. subname .. " 6",
|
output = modname .. ":slab_" .. subname .. " 6",
|
||||||
recipe = {{recipeitem, recipeitem, recipeitem}},
|
recipe = {{recipeitem, recipeitem, recipeitem}},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- uncomment this rule when conflict is no longer likely to happen
|
-- uncomment this rule when conflict is no longer likely to happen
|
||||||
-- https://github.com/minetest/minetest/issues/2881
|
-- https://github.com/minetest/minetest/issues/2881
|
||||||
-- minetest.register_craft({
|
-- minetest.register_craft({
|
||||||
-- type = "shapeless",
|
-- type = "shapeless",
|
||||||
-- output = modname .. ":slab_" .. subname,
|
-- output = modname .. ":slab_" .. subname,
|
||||||
-- recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
-- recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
||||||
-- })
|
-- })
|
||||||
|
|
||||||
-- then remove these two
|
-- then remove these two
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {{modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}},
|
recipe = {{modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -113,109 +113,109 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
|||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname},
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_2"},
|
recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_2"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_15", modname .. ":slab_" .. subname .. "_1"},
|
recipe = {modname .. ":slab_" .. subname .. "_15", modname .. ":slab_" .. subname .. "_1"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_quarter",
|
output = modname .. ":slab_" .. subname .. "_quarter",
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_quarter",
|
output = modname .. ":slab_" .. subname .. "_quarter",
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_2",
|
output = modname .. ":slab_" .. subname .. "_2",
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname .. "_quarter"},
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_14",
|
output = modname .. ":slab_" .. subname .. "_14",
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_2"},
|
recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_2"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_14",
|
output = modname .. ":slab_" .. subname .. "_14",
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. "_15",
|
output = modname .. ":slab_" .. subname .. "_15",
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_1"},
|
recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_1"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname .. " 3",
|
output = modname .. ":slab_" .. subname .. " 3",
|
||||||
|
@ -261,99 +261,99 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields)
|
|||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname, modname .. ":slope_" .. subname},
|
recipe = {modname .. ":slope_" .. subname, modname .. ":slope_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half_raised"},
|
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half_raised"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
||||||
modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer", modname .. ":slope_" .. subname .. "_inner"},
|
recipe = {modname .. ":slope_" .. subname .. "_outer", modname .. ":slope_" .. subname .. "_inner"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half_raised"},
|
recipe = {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half_raised"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_half_raised", modname .. ":slope_" .. subname .. "_inner_half"},
|
recipe = {modname .. ":slope_" .. subname .. "_outer_half_raised", modname .. ":slope_" .. subname .. "_inner_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_cut", modname .. ":slope_" .. subname .. "_inner_cut"},
|
recipe = {modname .. ":slope_" .. subname .. "_outer_cut", modname .. ":slope_" .. subname .. "_inner_cut"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half_raised"},
|
recipe = {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half_raised"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
output = recipeitem,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_cut", modname .. ":slope_" .. subname .. "_cut"},
|
recipe = {modname .. ":slope_" .. subname .. "_cut", modname .. ":slope_" .. subname .. "_cut"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half"},
|
recipe = {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slab_" .. subname,
|
output = modname .. ":slab_" .. subname,
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half"},
|
recipe = {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slope_" .. subname .. "_half_raised",
|
output = modname .. ":slope_" .. subname .. "_half_raised",
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
||||||
modname .. ":slope_" .. subname .. "_half"},
|
modname .. ":slope_" .. subname .. "_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slope_" .. subname .. "_half_raised",
|
output = modname .. ":slope_" .. subname .. "_half_raised",
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_half"},
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slope_" .. subname .. "_inner_half_raised",
|
output = modname .. ":slope_" .. subname .. "_inner_half_raised",
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_half"},
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slope_" .. subname .. "_outer_half_raised",
|
output = modname .. ":slope_" .. subname .. "_outer_half_raised",
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_outer_half"},
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_outer_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":slope_" .. subname .. "_inner_cut_half_raised",
|
output = modname .. ":slope_" .. subname .. "_inner_cut_half_raised",
|
||||||
|
Loading…
Reference in New Issue
Block a user