2016-06-11 18:11:06 +02:00
|
|
|
print (" ---- Dark Age Version 1.3 is Loading! ---- ")
|
2013-05-08 06:23:49 +02:00
|
|
|
|
2016-06-11 18:11:06 +02:00
|
|
|
local MODPATH = minetest.get_modpath("darkage")
|
2013-05-08 06:23:49 +02:00
|
|
|
|
2016-06-11 18:11:06 +02:00
|
|
|
dofile(MODPATH.."/nodes.lua")
|
|
|
|
dofile(MODPATH.."/mapgen.lua")
|
|
|
|
dofile(MODPATH.."/mapgen.lua")
|
|
|
|
dofile(MODPATH.."/building.lua")
|
|
|
|
dofile(MODPATH.."/furniture.lua")
|
|
|
|
dofile(MODPATH.."/aliases.lua")
|
|
|
|
dofile(MODPATH.."/walls.lua")
|
2013-05-08 06:23:49 +02:00
|
|
|
|
2016-06-11 18:11:06 +02:00
|
|
|
if minetest.get_modpath("moreblocks") then
|
|
|
|
dofile(MODPATH.."/stairsplus.lua")--only if moreblocks installed
|
|
|
|
else
|
|
|
|
dofile(MODPATH.."/stairs.lua")
|
|
|
|
end
|
2013-05-08 06:23:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
---------------
|
|
|
|
-- Crafts Items
|
|
|
|
---------------
|
|
|
|
minetest.register_craftitem("darkage:chalk_powder", {
|
|
|
|
description = "Chalk Powder",
|
|
|
|
inventory_image = "darkage_chalk_powder.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("darkage:mud_lump", {
|
|
|
|
description = "Mud Lump",
|
|
|
|
inventory_image = "darkage_mud_lump.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("darkage:silt_lump", {
|
|
|
|
description = "Silt Lump",
|
|
|
|
inventory_image = "darkage_silt_lump.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("darkage:iron_stick", {
|
|
|
|
description = "Iron Stick",
|
|
|
|
inventory_image = "darkage_iron_stick.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
----------
|
|
|
|
-- Crafts
|
|
|
|
----------
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:adobe 4',
|
|
|
|
recipe = {
|
|
|
|
{'default:sand','default:sand'},
|
|
|
|
{'default:clay_lump','darkage:straw'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:basalt_cobble 4',
|
|
|
|
recipe = {
|
|
|
|
{'default:cobble','default:cobble'},
|
|
|
|
{'default:coal_lump','default:coal_lump'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:cobble_with_plaster 2',
|
|
|
|
recipe = {
|
|
|
|
{'default:cobble','darkage:chalk_powder'},
|
|
|
|
{'default:cobble','darkage:chalk_powder'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:cobble_with_plaster 2',
|
|
|
|
recipe = {
|
|
|
|
{'darkage:chalk_powder','default:cobble'},
|
|
|
|
{'darkage:chalk_powder','default:cobble'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:darkdirt 4',
|
|
|
|
recipe = {
|
|
|
|
{'default:dirt','default:dirt'},
|
|
|
|
{'default:gravel','default:gravel'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:mud 3',
|
|
|
|
recipe = {
|
|
|
|
{'default:dirt','default:dirt'},
|
|
|
|
{'default:clay_lump','darkage:silt_lump'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:mud',
|
|
|
|
recipe = {
|
|
|
|
{'darkage:mud_lump','darkage:mud_lump'},
|
|
|
|
{'darkage:mud_lump','darkage:mud_lump'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:ors 4',
|
|
|
|
recipe = {
|
|
|
|
{'default:sandstone','default:sandstone'},
|
|
|
|
{'default:iron_lump','default:sandstone'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:silt 3',
|
|
|
|
recipe = {
|
|
|
|
{'default:sand','default:sand'},
|
|
|
|
{'default:clay_lump','default:clay_lump'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:silt',
|
|
|
|
recipe = {
|
|
|
|
{'darkage:silt_lump','darkage:silt_lump'},
|
|
|
|
{'darkage:silt_lump','darkage:silt_lump'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2014-09-04 12:37:40 +02:00
|
|
|
output = 'darkage:slate_tile 2',
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
|
|
|
{'darkage:slate_cobble','darkage:slate_cobble'},
|
|
|
|
{'darkage:slate_cobble','darkage:slate_cobble'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:stone_brick 9',--changed bacause conflicts with moreblocks
|
|
|
|
recipe = {
|
|
|
|
{'default:cobble','default:cobble','default:cobble'},--changed bacause conflicts with moreblocks
|
|
|
|
{'default:cobble','default:cobble','default:cobble'},--changed bacause conflicts with moreblocks
|
|
|
|
{'default:cobble','default:cobble','default:cobble'},--changed bacause conflicts with moreblocks
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:straw 2',
|
|
|
|
recipe = {
|
|
|
|
{'default:dry_shrub','default:dry_shrub'},
|
|
|
|
{'default:dry_shrub','default:dry_shrub'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:straw 2',
|
|
|
|
recipe = {
|
|
|
|
{'darkage:dry_leaves','darkage:dry_leaves'},
|
|
|
|
{'darkage:dry_leaves','darkage:dry_leaves'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-07-12 17:26:24 +02:00
|
|
|
if minetest.get_modpath("farming") then
|
|
|
|
--only if farming installed
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:straw 4',
|
|
|
|
recipe = {
|
|
|
|
{'farming:wheat_harvested','farming:wheat_harvested'},
|
|
|
|
{'farming:wheat_harvested','farming:wheat_harvested'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else
|
|
|
|
--nothing else
|
|
|
|
end
|
|
|
|
|
2013-05-08 06:23:49 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:straw_bale',
|
|
|
|
recipe = {
|
|
|
|
{'darkage:straw','darkage:straw'},
|
|
|
|
{'darkage:straw','darkage:straw'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'darkage:iron_stick 4',
|
|
|
|
recipe = {
|
|
|
|
{'default:steel_ingot'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Cookings
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:basalt",
|
|
|
|
recipe = "darkage:basalt_cobble",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:dry_leaves",
|
|
|
|
recipe = "default:leaves",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:gneiss",
|
|
|
|
recipe = "darkage:schist",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:gneiss",
|
|
|
|
recipe = "darkage:gneiss_cobble",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:ors",
|
|
|
|
recipe = "darkage:ors_cobble",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:schist",
|
|
|
|
recipe = "darkage:slate",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:shale",
|
|
|
|
recipe = "darkage:mud",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:slate",
|
|
|
|
recipe = "darkage:shale",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:slate",
|
|
|
|
recipe = "darkage:slate_cobble",
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Desert
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:ors_cobble",
|
|
|
|
recipe = "default:desert_stone",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'default:desert_stone 2',
|
|
|
|
recipe = {
|
|
|
|
{'default:desert_sand','default:desert_sand'},
|
|
|
|
{'default:desert_sand','default:desert_sand'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|