mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-09 17:23:51 +01:00
Stairs: Allow crafting slabs and stairs into full blocks again
This commit is contained in:
parent
7e9c5a3576
commit
b91e047868
@ -108,6 +108,15 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
|
||||
},
|
||||
})
|
||||
|
||||
-- Use stairs to craft full blocks again (1:1)
|
||||
minetest.register_craft({
|
||||
output = recipeitem .. ' 3',
|
||||
recipe = {
|
||||
{'stairs:stair_' .. subname, 'stairs:stair_' .. subname},
|
||||
{'stairs:stair_' .. subname, 'stairs:stair_' .. subname},
|
||||
},
|
||||
})
|
||||
|
||||
-- Fuel
|
||||
local baseburntime = minetest.get_craft_result({
|
||||
method = "fuel",
|
||||
@ -216,6 +225,15 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
|
||||
},
|
||||
})
|
||||
|
||||
-- Use 2 slabs to craft a full block again (1:1)
|
||||
minetest.register_craft({
|
||||
output = recipeitem,
|
||||
recipe = {
|
||||
{'stairs:slab_' .. subname},
|
||||
{'stairs:slab_' .. subname},
|
||||
},
|
||||
})
|
||||
|
||||
-- Fuel
|
||||
local baseburntime = minetest.get_craft_result({
|
||||
method = "fuel",
|
||||
|
Loading…
Reference in New Issue
Block a user