Add compatibility with streets mod
This commit is contained in:
parent
c246e0b799
commit
82557b2d83
@ -1 +1,2 @@
|
|||||||
default
|
default
|
||||||
|
streets?
|
||||||
|
@ -21,15 +21,20 @@ minetest.register_node("steel:plate_rusted", {
|
|||||||
groups = {cracky=1,choppy=1},
|
groups = {cracky=1,choppy=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("steel:strut", {
|
if minetest.registered_nodes["streets:steel_support"] then
|
||||||
drawtype = "glasslike",
|
minetest.register_alias("steel:strut","streets:steel_support")
|
||||||
description = "Strut",
|
else
|
||||||
tile_images = {"strut.png"},
|
minetest.register_node("steel:strut", {
|
||||||
is_ground_content = true,
|
drawtype = "glasslike",
|
||||||
paramtype= "light",
|
description = "Strut",
|
||||||
groups = {choppy=1,cracky=1},
|
tile_images = {"strut.png"},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
is_ground_content = true,
|
||||||
})
|
paramtype= "light",
|
||||||
|
groups = {choppy=1,cracky=1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
minetest.register_alias("streets:steel_support","steel:strut")
|
||||||
|
end
|
||||||
minetest.register_node("steel:grate_soft", {
|
minetest.register_node("steel:grate_soft", {
|
||||||
description = "Soft Steel Grate",
|
description = "Soft Steel Grate",
|
||||||
drawtype = "fencelike",
|
drawtype = "fencelike",
|
||||||
@ -120,14 +125,17 @@ minetest.register_craft({
|
|||||||
recipe = "steel:grate_soft",
|
recipe = "steel:grate_soft",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
-- only register this craft if streets is not loaded
|
||||||
output = 'steel:strut 5',
|
if not minetest.registered_nodes["streets:steel_support"] then
|
||||||
recipe = {
|
minetest.register_craft({
|
||||||
{'default:steel_ingot', '', 'default:steel_ingot'},
|
output = 'steel:strut 5',
|
||||||
{'', 'default:steel_ingot', ''},
|
recipe = {
|
||||||
{'default:steel_ingot', '', 'default:steel_ingot'},
|
{'default:steel_ingot', '', 'default:steel_ingot'},
|
||||||
}
|
{'', 'default:steel_ingot', ''},
|
||||||
})
|
{'default:steel_ingot', '', 'default:steel_ingot'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'steel:roofing 6',
|
output = 'steel:roofing 6',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user