mirror of
https://github.com/mt-mods/moretrees.git
synced 2025-01-11 18:30:23 +01:00
updated to match current moreblocks/stairsplus API
This commit is contained in:
parent
06d28f7870
commit
b9cd044064
116
node_defs.lua
116
node_defs.lua
@ -177,109 +177,35 @@ for i in ipairs(moretrees.treelist) do
|
|||||||
|
|
||||||
if minetest.get_modpath("moreblocks") and moretrees.enable_stairsplus then
|
if minetest.get_modpath("moreblocks") and moretrees.enable_stairsplus then
|
||||||
|
|
||||||
register_stair(
|
-- stairsplus:register_all(modname, subname, recipeitem, {fields})
|
||||||
|
|
||||||
|
stairsplus:register_all(
|
||||||
"moretrees",
|
"moretrees",
|
||||||
treename.."_trunk",
|
treename.."_trunk",
|
||||||
"moretrees:"..treename.."_trunk",
|
"moretrees:"..treename.."_trunk",
|
||||||
{ snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_stair=1 },
|
{
|
||||||
{ "moretrees_"..treename.."_trunk_top.png",
|
groups = { snappy=1, choppy=2, oddly_breakable_by_hand=1, flammable=2, not_in_creative_inventory=1 },
|
||||||
"moretrees_"..treename.."_trunk_top.png",
|
tiles = {
|
||||||
"moretrees_"..treename.."_trunk.png"
|
"moretrees_"..treename.."_trunk_top.png",
|
||||||
},
|
"moretrees_"..treename.."_trunk_top.png",
|
||||||
S(treedesc.." Trunk"),
|
"moretrees_"..treename.."_trunk.png"
|
||||||
treename.."_trunk",
|
},
|
||||||
0
|
description = S(treedesc.." Trunk"),
|
||||||
|
drop = treename.."_trunk",
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
register_slab(
|
stairsplus:register_all(
|
||||||
"moretrees",
|
|
||||||
treename.."_trunk",
|
|
||||||
"moretrees:"..treename.."_trunk",
|
|
||||||
{ snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_slab=1 },
|
|
||||||
{ "moretrees_"..treename.."_trunk_top.png",
|
|
||||||
"moretrees_"..treename.."_trunk_top.png",
|
|
||||||
"moretrees_"..treename.."_trunk.png"
|
|
||||||
},
|
|
||||||
S(treedesc.." Trunk"),
|
|
||||||
treename.."_trunk",
|
|
||||||
0
|
|
||||||
)
|
|
||||||
|
|
||||||
register_panel(
|
|
||||||
"moretrees",
|
|
||||||
treename.."_trunk",
|
|
||||||
"moretrees:"..treename.."_trunk",
|
|
||||||
{ snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_panel=1 },
|
|
||||||
{ "moretrees_"..treename.."_trunk_top.png",
|
|
||||||
"moretrees_"..treename.."_trunk_top.png",
|
|
||||||
"moretrees_"..treename.."_trunk.png"
|
|
||||||
},
|
|
||||||
S(treedesc.." Trunk"),
|
|
||||||
treename.."_trunk",
|
|
||||||
0
|
|
||||||
)
|
|
||||||
|
|
||||||
register_micro(
|
|
||||||
"moretrees",
|
|
||||||
treename.."_trunk",
|
|
||||||
"moretrees:"..treename.."_trunk",
|
|
||||||
{ snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_micro=1 },
|
|
||||||
{ "moretrees_"..treename.."_trunk_top.png",
|
|
||||||
"moretrees_"..treename.."_trunk_top.png",
|
|
||||||
"moretrees_"..treename.."_trunk.png"
|
|
||||||
},
|
|
||||||
S(treedesc.." Trunk"),
|
|
||||||
treename.."_trunk",
|
|
||||||
0
|
|
||||||
)
|
|
||||||
|
|
||||||
register_stair(
|
|
||||||
"moretrees",
|
"moretrees",
|
||||||
treename.."_planks",
|
treename.."_planks",
|
||||||
"moretrees:"..treename.."_planks",
|
"moretrees:"..treename.."_planks",
|
||||||
{ snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_stair=1 },
|
{
|
||||||
{ "moretrees_"..treename.."_wood.png" },
|
groups = { snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=3, not_in_creative_inventory=1 },
|
||||||
S(treedesc.." Planks"),
|
tiles = { "moretrees_"..treename.."_wood.png" },
|
||||||
treename.."_planks",
|
description = S(treedesc.." Planks"),
|
||||||
0
|
drop = treename.."_planks",
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
register_slab(
|
|
||||||
"moretrees",
|
|
||||||
treename.."_planks",
|
|
||||||
"moretrees:"..treename.."_planks",
|
|
||||||
{ snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_slab=1 },
|
|
||||||
{ "moretrees_"..treename.."_wood.png" },
|
|
||||||
S(treedesc.." Planks"),
|
|
||||||
treename.."_planks",
|
|
||||||
0
|
|
||||||
)
|
|
||||||
|
|
||||||
register_panel(
|
|
||||||
"moretrees",
|
|
||||||
treename.."_planks",
|
|
||||||
"moretrees:"..treename.."_planks",
|
|
||||||
{ snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_panel=1 },
|
|
||||||
{ "moretrees_"..treename.."_wood.png" },
|
|
||||||
S(treedesc.." Planks"),
|
|
||||||
treename.."_planks",
|
|
||||||
0
|
|
||||||
)
|
|
||||||
|
|
||||||
register_micro(
|
|
||||||
"moretrees",
|
|
||||||
treename.."_planks",
|
|
||||||
"moretrees:"..treename.."_planks",
|
|
||||||
{ snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_micro=1 },
|
|
||||||
{ "moretrees_"..treename.."_wood.png" },
|
|
||||||
S(treedesc.." Planks"),
|
|
||||||
treename.."_planks",
|
|
||||||
0
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_trunk")
|
|
||||||
table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_planks")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user