1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00

added condition if farming mod enabled then farming:straw replace darkage:straw to crafting mores Straw Stair Slab

This commit is contained in:
crabman77 2015-06-06 02:01:38 +02:00
parent 3353cafbe1
commit cfdbe71466
2 changed files with 47 additions and 15 deletions

View File

@ -124,6 +124,22 @@ if minetest.get_modpath("farming") == nil then
} }
}) })
else else
minetest.register_craft({
output = "farming:straw 2",
recipe = {
{"default:dry_shrub","default:dry_shrub"},
{"default:dry_shrub","default:dry_shrub"},
}
})
minetest.register_craft({
output = "farming:straw 2",
recipe = {
{"darkage:dry_leaves","darkage:dry_leaves"},
{"darkage:dry_leaves","darkage:dry_leaves"},
}
})
minetest.register_craft({ minetest.register_craft({
output = "darkage:straw_bale", output = "darkage:straw_bale",
recipe = { recipe = {

View File

@ -104,6 +104,14 @@ if stairsplus then
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
sunlight_propagates = true, sunlight_propagates = true,
}) })
else
stairsplus:register_all("darkage", "straw", "farming:straw", {
description = "Straw",
tiles = {"darkage_straw.png"},
groups = {snappy=3, flammable=2},
sounds = default.node_sound_stone_defaults(),
sunlight_propagates = true,
})
end end
stairsplus:register_all("darkage", "straw_bale", "darkage:straw_bale", { stairsplus:register_all("darkage", "straw_bale", "darkage:straw_bale", {
@ -278,6 +286,14 @@ elseif stairs then
"Straw Slab", "Straw Slab",
default.node_sound_stone_defaults() default.node_sound_stone_defaults()
) )
else
stairs.register_stair_and_slab("straw", "farming:straw",
{snappy=3, flammable=2},
{"darkage_straw.png"},
"Straw Stair",
"Straw Slab",
default.node_sound_stone_defaults()
)
end end
stairs.register_stair_and_slab("straw_bale", "darkage:straw_bale", stairs.register_stair_and_slab("straw_bale", "darkage:straw_bale",
{snappy=2, flammable=2}, {snappy=2, flammable=2},