1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +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

@ -96,7 +96,7 @@ if minetest.get_modpath("farming") == nil then
minetest.register_craft({ minetest.register_craft({
output = "darkage:straw 2", output = "darkage:straw 2",
recipe = { recipe = {
{"default:dry_shrub","default:dry_shrub"}, {"default:dry_shrub","default:dry_shrub"},
{"default:dry_shrub","default:dry_shrub"}, {"default:dry_shrub","default:dry_shrub"},
} }
}) })
@ -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

@ -97,13 +97,21 @@ if stairsplus then
}) })
--if not farming:straw --if not farming:straw
if minetest.get_modpath("farming") == nil then if minetest.get_modpath("farming") == nil then
stairsplus:register_all("darkage", "straw", "darkage:straw", { stairsplus:register_all("darkage", "straw", "darkage:straw", {
description = "Straw", description = "Straw",
tiles = {"darkage_straw.png"}, tiles = {"darkage_straw.png"},
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
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", {
@ -271,13 +279,21 @@ elseif stairs then
) )
--if not farming:straw --if not farming:straw
if minetest.get_modpath("farming") == nil then if minetest.get_modpath("farming") == nil then
stairs.register_stair_and_slab("straw", "darkage:straw", stairs.register_stair_and_slab("straw", "darkage:straw",
{snappy=3, flammable=2}, {snappy=3, flammable=2},
{"darkage_straw.png"}, {"darkage_straw.png"},
"Straw Stair", "Straw Stair",
"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},