2016-07-01 13:41:40 +02:00
|
|
|
minetest.log("action"," ---- Dark Age Version 1.3 is Loading! ---- ")
|
2013-05-08 06:23:49 +02:00
|
|
|
|
2016-07-09 10:23:29 +02:00
|
|
|
darkage = {}; -- Create darkage namespace
|
|
|
|
|
2016-07-12 16:24:24 +02:00
|
|
|
darkage.formbg = (default.gui_bg or "")..
|
|
|
|
(default.gui_bg_img or "")..
|
|
|
|
(default.gui_slots or "")
|
|
|
|
|
2017-02-22 09:04:52 +01:00
|
|
|
local MODPATH = minetest.get_modpath("darkage")..DIR_DELIM
|
|
|
|
|
|
|
|
dofile(MODPATH.."nodes.lua")
|
|
|
|
dofile(MODPATH.."glass.lua")
|
|
|
|
dofile(MODPATH.."mapgen.lua")
|
|
|
|
dofile(MODPATH.."building.lua")
|
|
|
|
dofile(MODPATH.."furniture.lua")
|
|
|
|
dofile(MODPATH.."aliases.lua")
|
|
|
|
dofile(MODPATH.."walls.lua")
|
|
|
|
|
|
|
|
dofile(MODPATH.."stairs_functions.lua")
|
|
|
|
dofile(MODPATH.."stairs.lua")
|
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({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:adobe 4",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"default:sand", "default:sand"},
|
|
|
|
{"default:clay_lump", "farming:straw"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-01-22 12:03:33 +01:00
|
|
|
--[[
|
|
|
|
Basalt
|
|
|
|
]]
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:basalt",
|
|
|
|
recipe = "darkage:basalt_rubble",
|
|
|
|
})
|
2013-05-08 06:23:49 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-01-22 12:03:33 +01:00
|
|
|
output = "darkage:basalt_rubble 4",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"default:cobble", "default:cobble"},
|
|
|
|
{"default:coal_lump", "default:coal_lump"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-01-22 12:03:33 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:basalt_brick 4",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:basalt", "darkage:basalt"},
|
|
|
|
{"darkage:basalt", "darkage:basalt"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:basalt_block 9",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:basalt", "darkage:basalt", "darkage:basalt"},
|
|
|
|
{"darkage:basalt", "darkage:basalt", "darkage:basalt"},
|
|
|
|
{"darkage:basalt", "darkage:basalt", "darkage:basalt"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-08 06:23:49 +02:00
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:cobble_with_plaster 2",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"default:cobble", "darkage:chalk_powder"},
|
|
|
|
{"default:cobble", "darkage:chalk_powder"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:cobble_with_plaster 2",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"darkage:chalk_powder", "default:cobble"},
|
|
|
|
{"darkage:chalk_powder", "default:cobble"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-09-11 14:25:16 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:chalked_bricks_with_plaster 2",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:chalked_bricks", "darkage:chalk_powder"},
|
|
|
|
{"darkage:chalked_bricks", "darkage:chalk_powder"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:chalked_bricks_with_plaster 2",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:chalk_powder", "darkage:chalked_bricks"},
|
|
|
|
{"darkage:chalk_powder", "darkage:chalked_bricks"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-08 06:23:49 +02:00
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:darkdirt 4",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"default:dirt", "default:dirt"},
|
|
|
|
{"default:gravel", "default:gravel"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-01-22 12:03:33 +01:00
|
|
|
--[[
|
|
|
|
Gneiss
|
|
|
|
]]
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:gneiss",
|
|
|
|
recipe = "darkage:schist",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:gneiss",
|
|
|
|
recipe = "darkage:gneiss_rubble",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:gneiss_brick 4",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:gneiss", "darkage:gneiss"},
|
|
|
|
{"darkage:gneiss", "darkage:gneiss"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:gneiss_block 9",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:gneiss", "darkage:gneiss", "darkage:gneiss"},
|
|
|
|
{"darkage:gneiss", "darkage:gneiss", "darkage:gneiss"},
|
|
|
|
{"darkage:gneiss", "darkage:gneiss", "darkage:gneiss"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-08 06:23:49 +02:00
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:mud 3",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"default:dirt", "default:dirt"},
|
|
|
|
{"default:clay_lump", "darkage:silt_lump"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:mud",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"darkage:mud_lump", "darkage:mud_lump"},
|
|
|
|
{"darkage:mud_lump", "darkage:mud_lump"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-01-22 12:03:33 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:marble_tile 2",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:marble", "darkage:marble"},
|
|
|
|
{"darkage:marble", "darkage:marble"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
--[[
|
|
|
|
Old Red Sandstone
|
|
|
|
]]
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:ors",
|
|
|
|
recipe = "darkage:ors_rubble",
|
|
|
|
})
|
|
|
|
|
2013-05-08 06:23:49 +02:00
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:ors 4",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"default:sandstone", "default:sandstone"},
|
|
|
|
{"default:iron_lump", "default:sandstone"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
2017-01-22 12:03:33 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:ors_brick 4",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:ors", "darkage:ors"},
|
|
|
|
{"darkage:ors", "darkage:ors"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:ors_block 9",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:ors", "darkage:ors", "darkage:ors"},
|
|
|
|
{"darkage:ors", "darkage:ors", "darkage:ors"},
|
|
|
|
{"darkage:ors", "darkage:ors", "darkage:ors"},
|
|
|
|
}
|
|
|
|
})
|
2013-05-08 06:23:49 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:silt 3",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"default:sand", "default:sand"},
|
|
|
|
{"default:clay_lump", "default:clay_lump"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:silt",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"darkage:silt_lump", "darkage:silt_lump"},
|
|
|
|
{"darkage:silt_lump", "darkage:silt_lump"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-01-22 12:03:33 +01:00
|
|
|
--[[
|
|
|
|
Slate
|
|
|
|
]]
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:slate",
|
|
|
|
recipe = "darkage:slate_rubble",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:slate_brick 4",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:slate", "darkage:slate"},
|
|
|
|
{"darkage:slate", "darkage:slate"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:slate_block 9",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:slate", "darkage:slate", "darkage:slate"},
|
|
|
|
{"darkage:slate", "darkage:slate", "darkage:slate"},
|
|
|
|
{"darkage:slate", "darkage:slate", "darkage:slate"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-08 06:23:49 +02:00
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:slate_tile 2",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2017-01-22 12:03:33 +01:00
|
|
|
{"darkage:slate_brick", "darkage:slate_brick"},
|
|
|
|
{"darkage:slate_brick", "darkage:slate_brick"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-02-25 21:38:32 +01:00
|
|
|
output = "darkage:stone_brick",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2017-01-12 15:13:55 +01:00
|
|
|
{"default:stone_block"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-07-12 17:26:24 +02:00
|
|
|
|
2013-05-08 06:23:49 +02:00
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:straw_bale",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"farming:straw","farming:straw"},
|
|
|
|
{"farming:straw","farming:straw"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2016-07-10 11:02:32 +02:00
|
|
|
output = "darkage:iron_stick 4",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = {
|
2016-07-10 11:02:32 +02:00
|
|
|
{"default:steel_ingot"},
|
2013-05-08 06:23:49 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Cookings
|
2017-01-22 12:03:33 +01:00
|
|
|
|
2013-05-08 06:23:49 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:dry_leaves",
|
|
|
|
recipe = "default:leaves",
|
|
|
|
})
|
|
|
|
|
|
|
|
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",
|
2017-01-22 12:03:33 +01:00
|
|
|
recipe = "darkage:slate_rubble",
|
2013-05-08 06:23:49 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Desert
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
2016-10-19 14:30:32 +02:00
|
|
|
output = "darkage:ors_brick",
|
2013-05-08 06:23:49 +02:00
|
|
|
recipe = "default:desert_stone",
|
|
|
|
})
|
|
|
|
|
2016-07-06 09:25:45 +02:00
|
|
|
-- Tuff
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:tuff 2",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:gneiss", "default:stone"},
|
|
|
|
{"default:stone", "darkage:gneiss"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:tuff",
|
|
|
|
recipe = "darkage:tuff_rubble",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:tuff",
|
|
|
|
recipe = "darkage:old_tuff_bricks",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-03-02 13:01:57 +01:00
|
|
|
output = "darkage:tuff_bricks 4",
|
2016-07-06 09:25:45 +02:00
|
|
|
recipe = {
|
|
|
|
{"darkage:tuff", "darkage:tuff"},
|
|
|
|
{"darkage:tuff", "darkage:tuff"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Rhyolitic Tuff
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "darkage:rhyolitic_tuff 2",
|
|
|
|
recipe = {
|
|
|
|
{"darkage:gneiss", "default:desert_stone"},
|
|
|
|
{"default:desert_stone", "darkage:gneiss"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "darkage:rhyolitic_tuff",
|
|
|
|
recipe = "darkage:rhyolitic_tuff_rubble",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-03-02 13:01:57 +01:00
|
|
|
output = "darkage:rhyolitic_tuff_bricks 4",
|
2016-07-06 09:25:45 +02:00
|
|
|
recipe = {
|
|
|
|
{"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
|
|
|
|
{"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
|
|
|
|
}
|
|
|
|
})
|
2018-12-25 13:18:11 +01:00
|
|
|
|
|
|
|
minetest.log("action", "[darkage] loaded.")
|