mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-06-30 23:20:44 +02:00
Added circular crafting rule to 3-microblock stairs
This commit is contained in:
@ -86,39 +86,65 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
|
|||||||
|
|
||||||
-- Some saw-less recipes:
|
-- Some saw-less recipes:
|
||||||
|
|
||||||
|
-- chopping into microblocks
|
||||||
|
|
||||||
|
-- full block minus 1 microblock
|
||||||
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"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- stair
|
||||||
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},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- slab + 1 microblock
|
||||||
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"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- slab
|
||||||
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},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- 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({
|
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},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- coupling microblocks back to full block
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = recipeitem,
|
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
|
end
|
||||||
|
@ -179,12 +179,6 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
|||||||
recipe = {modname .. ":stair_" .. subname .. "_half"},
|
recipe = {modname .. ":stair_" .. subname .. "_half"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname .. "_half",
|
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_right_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = modname .. ":stair_" .. subname,
|
output = modname .. ":stair_" .. subname,
|
||||||
|
Reference in New Issue
Block a user