mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-26 02:30:20 +01:00
stairs no longer dependency, will use only when found
This commit is contained in:
parent
709f037ae7
commit
83ef1cebb2
@ -111,21 +111,24 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- register stairs
|
-- check and register stairs
|
||||||
if stairs and stairs.mod and stairs.mod == "redo" then
|
if minetest.global_exists("stairs") then
|
||||||
|
|
||||||
stairs.register_all("hemp_block", "farming:hemp_block",
|
if stairs.mod and stairs.mod == "redo" then
|
||||||
|
|
||||||
|
stairs.register_all("hemp_block", "farming:hemp_block",
|
||||||
{snappy = 1, flammable = 2},
|
{snappy = 1, flammable = 2},
|
||||||
{"farming_hemp_block.png"},
|
{"farming_hemp_block.png"},
|
||||||
"Hemp Block",
|
"Hemp Block",
|
||||||
default.node_sound_leaves_defaults())
|
default.node_sound_leaves_defaults())
|
||||||
else
|
else
|
||||||
|
|
||||||
stairs.register_stair_and_slab("hemp_block", "farming:hemp_block",
|
stairs.register_stair_and_slab("hemp_block", "farming:hemp_block",
|
||||||
{snappy = 1, flammable = 2},
|
{snappy = 1, flammable = 2},
|
||||||
{"farming_hemp_block.png"},
|
{"farming_hemp_block.png"},
|
||||||
"Hemp Block",
|
"Hemp Block",
|
||||||
default.node_sound_leaves_defaults())
|
default.node_sound_leaves_defaults())
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- paper
|
-- paper
|
||||||
|
@ -51,21 +51,25 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if stairs and stairs.mod and stairs.mod == "redo" then
|
-- check and register stairs
|
||||||
|
if minetest.global_exists("stairs") then
|
||||||
|
|
||||||
stairs.register_all("straw", "farming:straw",
|
if stairs.mod and stairs.mod == "redo" then
|
||||||
|
|
||||||
|
stairs.register_all("straw", "farming:straw",
|
||||||
{snappy = 3, flammable = 4},
|
{snappy = 3, flammable = 4},
|
||||||
{"farming_straw.png"},
|
{"farming_straw.png"},
|
||||||
"Straw",
|
"Straw",
|
||||||
default.node_sound_leaves_defaults())
|
default.node_sound_leaves_defaults())
|
||||||
else
|
else
|
||||||
|
|
||||||
stairs.register_stair_and_slab("straw", "farming:straw",
|
stairs.register_stair_and_slab("straw", "farming:straw",
|
||||||
{snappy = 3, flammable = 4},
|
{snappy = 3, flammable = 4},
|
||||||
{"farming_straw.png"},
|
{"farming_straw.png"},
|
||||||
"Straw Stair",
|
"Straw Stair",
|
||||||
"Straw Slab",
|
"Straw Slab",
|
||||||
default.node_sound_leaves_defaults())
|
default.node_sound_leaves_defaults())
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- flour
|
-- flour
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
default
|
default
|
||||||
stairs
|
stairs?
|
||||||
intllib?
|
intllib?
|
||||||
lucky_block?
|
lucky_block?
|
||||||
toolranks?
|
toolranks?
|
||||||
|
Loading…
Reference in New Issue
Block a user