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

resolve conflict straw

resolve conflict darkage:straw and farming:straw Use darkage:straw if not mod farming else use farming:straw
This commit is contained in:
crabman77 2015-03-03 21:18:02 +01:00
parent a85c16af47
commit 7a102d8a32
3 changed files with 78 additions and 46 deletions

View File

@ -90,30 +90,56 @@ minetest.register_craft({
-- Cobble -- Cobble
-- Other Blocks -- Other Blocks
--if not farming:straw
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"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "darkage:straw 2", output = "darkage:straw 2",
recipe = { recipe = {
{"darkage:dry_leaves","darkage:dry_leaves"}, {"darkage:dry_leaves","darkage:dry_leaves"},
{"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 = {
{"darkage:straw","darkage:straw"}, {"darkage:straw","darkage:straw"},
{"darkage:straw","darkage:straw"}, {"darkage:straw","darkage:straw"},
} }
}) })
minetest.register_craft({
output = "darkage:adobe 4",
recipe = {
{"default:sand","default:sand"},
{"default:clay_lump","darkage:straw"},
}
})
else
minetest.register_craft({
output = "darkage:straw_bale",
recipe = {
{"farming:straw","farming:straw"},
{"farming:straw","farming:straw"},
}
})
minetest.register_craft({
output = "darkage:adobe 4",
recipe = {
{"default:sand","default:sand"},
{"default:clay_lump","farming:straw"},
}
})
end
minetest.register_craft({ minetest.register_craft({
output = "darkage:slate_tile 4", output = "darkage:slate_tile 4",
@ -151,14 +177,6 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = "darkage:adobe 4",
recipe = {
{"default:sand","default:sand"},
{"default:clay_lump","darkage:straw"},
}
})
minetest.register_craft({ minetest.register_craft({
output = "darkage:lamp", output = "darkage:lamp",
recipe = { recipe = {

View File

@ -164,20 +164,31 @@ minetest.register_node("darkage:stone_brick", {
}) })
-- Other Blocks -- Other Blocks
minetest.register_node("darkage:straw", { --if not farming:straw
if minetest.get_modpath("farming") == nil then
minetest.register_node("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_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
minetest.register_node("darkage:straw_bale", { minetest.register_node("darkage:straw_bale", {
description = "Straw Bale", description = "Straw Bale",
tiles = {"darkage_straw_bale.png"}, tiles = {"darkage_straw_bale.png"},
drop = "darkage:straw 4", drop = "darkage:straw 4",
groups = {snappy=2, flammable=2}, groups = {snappy=2, flammable=2},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
else
minetest.register_node("darkage:straw_bale", {
description = "Straw Bale",
tiles = {"darkage_straw_bale.png"},
drop = "farming:straw 4",
groups = {snappy=2, flammable=2},
sounds = default.node_sound_leaves_defaults(),
})
end
minetest.register_node("darkage:slate_tile", { minetest.register_node("darkage:slate_tile", {
description = "Slate Tile", description = "Slate Tile",

View File

@ -95,7 +95,8 @@ if stairsplus then
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
sunlight_propagates = true, sunlight_propagates = true,
}) })
--if not farming:straw
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"},
@ -103,6 +104,7 @@ if stairsplus then
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
sunlight_propagates = true, sunlight_propagates = true,
}) })
end
stairsplus:register_all("darkage", "straw_bale", "darkage:straw_bale", { stairsplus:register_all("darkage", "straw_bale", "darkage:straw_bale", {
description = "Straw Bale", description = "Straw Bale",
@ -267,7 +269,8 @@ elseif stairs then
"Basalt Cobble Slab", "Basalt Cobble Slab",
default.node_sound_stone_defaults() default.node_sound_stone_defaults()
) )
--if not farming:straw
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"},
@ -275,7 +278,7 @@ elseif stairs then
"Straw Slab", "Straw Slab",
default.node_sound_stone_defaults() default.node_sound_stone_defaults()
) )
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},
{"darkage_straw_bale.png"}, {"darkage_straw_bale.png"},