forked from mtcontrib/homedecor_modpack
if technic isn't installed, define its granite node (as a building
material only) and make it from 5 tar + 4 marble (both from building_blocks). If moreblocks is installed (and technic isn't), this node is routed through the stairsplus component, and a recipe is added that uses moreblocks' own tar node also.
This commit is contained in:
@ -569,3 +569,39 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
if not minetest.get_modpath("technic") then
|
||||
minetest.register_node( ":technic:granite", {
|
||||
description = "Granite",
|
||||
tiles = { "technic_granite.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "technic:granite 9",
|
||||
recipe = {
|
||||
{ "building_blocks:Tar", "building_blocks:Marble", "building_blocks:Tar" },
|
||||
{ "building_blocks:Marble", "building_blocks:Tar", "building_blocks:Marble" },
|
||||
{ "building_blocks:Tar", "building_blocks:Marble", "building_blocks:Tar" }
|
||||
},
|
||||
})
|
||||
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("technic", "granite", "technic:granite", {
|
||||
description="Granite",
|
||||
groups={cracky=1, not_in_creative_inventory=1},
|
||||
tiles={"technic_granite.png"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "technic:granite 9",
|
||||
recipe = {
|
||||
{ "moreblocks:tar", "building_blocks:Marble", "moreblocks:tar" },
|
||||
{ "building_blocks:Marble", "moreblocks:tar", "building_blocks:Marble" },
|
||||
{ "moreblocks:tar", "building_blocks:Marble", "moreblocks:tar" }
|
||||
},
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
|
BIN
building_blocks/textures/technic_granite.png
Normal file
BIN
building_blocks/textures/technic_granite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 947 B |
Reference in New Issue
Block a user