123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- minetest.log("action"," ---- Dark Age Version 1.3 is Loading! ---- ")
- darkage = {}; -- Create darkage namespace
- darkage.formbg = (default.gui_bg or "")..
- (default.gui_bg_img or "")..
- (default.gui_slots or "")
- 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.."walls.lua")
- dofile(MODPATH.."stairs_functions.lua")
- dofile(MODPATH.."stairs.lua")
- ---------------
- -- 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({
- type = "cooking",
- output = "darkage:basalt",
- recipe = "darkage:basalt_rubble",
- })
- minetest.register_craft({
- output = "darkage:basalt_rubble 4",
- recipe = {
- {"default:cobble", "default:cobble"},
- {"default:coal_lump", "default:coal_lump"},
- }
- })
- 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"},
- }
- })
- 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: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"},
- }
- })
- --[[
- 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"},
- }
- })
- 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: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",
- })
- minetest.register_craft({
- output = "darkage:ors 4",
- recipe = {
- {"default:sandstone", "default:sandstone"},
- {"default:iron_lump", "default:sandstone"},
- }
- })
- 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"},
- }
- })
- 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"},
- }
- })
- --[[
- 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"},
- }
- })
- minetest.register_craft({
- output = "darkage:slate_tile 2",
- recipe = {
- {"darkage:slate_brick", "darkage:slate_brick"},
- {"darkage:slate_brick", "darkage:slate_brick"},
- }
- })
- minetest.register_craft({
- output = "darkage:stone_brick",
- recipe = {
- {"default:stone_block"},
- }
- })
- minetest.register_craft({
- output = "darkage:straw_bale",
- recipe = {
- {"farming:straw","farming:straw"},
- {"farming:straw","farming:straw"},
- }
- })
- minetest.register_craft({
- output = "darkage:iron_stick 4",
- recipe = {
- {"default:steel_ingot"},
- }
- })
- -- Cookings
- 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_rubble",
- })
- -- Desert
- minetest.register_craft({
- type = "cooking",
- output = "darkage:ors_brick",
- recipe = "default:desert_stone",
- })
- -- 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({
- output = "darkage:tuff_bricks 4",
- 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({
- output = "darkage:rhyolitic_tuff_bricks 4",
- recipe = {
- {"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
- {"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
- }
- })
|