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:
Vanessa Ezekowitz 2015-03-23 02:09:39 -04:00
parent 311b1ea4c5
commit 8b806bf082
3 changed files with 38 additions and 1 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 947 B

View File

@ -3053,10 +3053,11 @@ minetest.register_craft({
recipe = { recipe = {
{ "group:stick", "homedecor:plastic_sheeting", "dye:green" }, { "group:stick", "homedecor:plastic_sheeting", "dye:green" },
{ "group:stick", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, { "group:stick", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "group:stick", "stairs:slab_wood", "dye:blue" } { "group:stick", "moreblocks:slab_wood", "dye:blue" }
}, },
}) })
if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then 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"} }) technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
end end