Added circular crafting rule to 3-microblock stairs

This commit is contained in:
Marcin 2015-06-27 12:05:39 +02:00
parent 9f491f05cb
commit 825bd17e50
2 changed files with 29 additions and 9 deletions

View File

@ -85,40 +85,66 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
minetest.register_alias(modname.. ":micro_" ..subname.. "_bottom", modname.. ":micro_" ..subname)
-- Some saw-less recipes:
-- chopping into microblocks
-- full block minus 1 microblock
minetest.register_craft({
type = "shapeless",
output = modname .. ":micro_" .. subname .. " 7",
recipe = {modname .. ":stair_" .. subname .. "_inner"},
})
-- stair
minetest.register_craft({
output = modname .. ":micro_" .. subname .. " 6",
type = "shapeless",
recipe = {modname .. ":stair_" .. subname},
})
-- slab + 1 microblock
minetest.register_craft({
type = "shapeless",
output = modname .. ":micro_" .. subname .. " 5",
recipe = {modname .. ":stair_" .. subname .. "_outer"},
})
-- slab
minetest.register_craft({
type = "shapeless",
output = modname .. ":micro_" .. subname .. " 4",
recipe = {modname .. ":slab_" .. subname},
})
-- right half stair
-- NOTE: this is circular crafting rule:
-- 3 microblocks -> left half stair -> right half stair -> 3 microblocks
minetest.register_craft({
type = "shapeless",
output = modname .. ":micro_" .. subname .. " 3",
recipe = {modname .. ":stair_" .. subname .. "_right_half"},
})
-- panel
minetest.register_craft({
type = "shapeless",
output = modname .. ":micro_" .. subname .. " 2",
recipe = {modname .. ":panel_" .. subname},
})
})
-- coupling microblocks back to full block
minetest.register_craft({
type = "shapeless",
output = recipeitem,
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, 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,
modname .. ":micro_" .. subname,
modname .. ":micro_" .. subname,
modname .. ":micro_" .. subname,
modname .. ":micro_" .. subname,
}
})
end

View File

@ -179,12 +179,6 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
recipe = {modname .. ":stair_" .. subname .. "_half"},
})
minetest.register_craft({
type = "shapeless",
output = modname .. ":stair_" .. subname .. "_half",
recipe = {modname .. ":stair_" .. subname .. "_right_half"},
})
minetest.register_craft({
type = "shapeless",
output = modname .. ":stair_" .. subname,