1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50: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({
output = "darkage:straw 2",
recipe = {
{"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
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({
output = "darkage:straw_bale",
recipe = {

View File

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