mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-20 06:10:23 +02:00
add banisters, placed on side of blocks
when placing, code will try to determine if the bannister should be left- or right-sided. Defaults to left-sided; hold shift while placing to force right-sided.
This commit is contained in:
@ -3162,6 +3162,24 @@ minetest.register_craft({
|
||||
},
|
||||
})
|
||||
|
||||
for i in ipairs(homedecor.banister_materials) do
|
||||
|
||||
local name = homedecor.banister_materials[i][1]
|
||||
local topmat = homedecor.banister_materials[i][5]
|
||||
local vertmat = homedecor.banister_materials[i][6]
|
||||
local dye1 = homedecor.banister_materials[i][7]
|
||||
local dye2 = homedecor.banister_materials[i][8]
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:banister_"..name.."_left 2",
|
||||
recipe = {
|
||||
{ topmat, "", dye1 },
|
||||
{ vertmat, topmat, "" },
|
||||
{ dye2, vertmat, topmat }
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then
|
||||
technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
|
||||
end
|
||||
|
Reference in New Issue
Block a user