cartographer-mtg/init.lua

324 lines
8.7 KiB
Lua
Raw Normal View History

2020-04-25 15:50:07 +02:00
-- Biomes
2020-05-13 13:51:32 +02:00
-- Icesheet
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("icesheet", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_snow",
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("icesheet_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("icesheet_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_snow",
}, 1);
-- Tundra
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("tundra", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_snow",
2020-05-13 14:00:01 +02:00
"ctg_mtg_colored_snow",
"ctg_mtg_tundra",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("tundra_highland", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_snow",
2020-05-13 14:00:01 +02:00
"ctg_mtg_colored_snow",
"ctg_mtg_tundra",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("tundra_beach", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
"ctg_mtg_tundra",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("tundra_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
});
-- Taiga
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("taiga", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_forest",
"ctg_mtg_snowy_forest",
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("taiga_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("taiga_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_snow",
}, 1);
-- Snowy Grassland
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("snowy_grassland", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_snow",
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("snowy_grassland_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("snowy_grassland_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_snow",
}, 1);
-- Grassland
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("grassland", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_land",
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("grassland_dunes", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("grassland_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("grassland_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
}, 1);
-- Coniferous Forest
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("coniferous_forest", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_forest",
"ctg_mtg_colored_forest",
2020-06-11 02:37:57 +02:00
"ctg_mtg_coniferous_forest",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("coniferous_forest_dunes", {
2020-05-13 14:00:01 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("coniferous_forest_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("coniferous_forest_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
}, 1);
-- Deciduous Forest
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("deciduous_forest", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_forest",
"ctg_mtg_colored_forest",
2020-06-11 02:37:57 +02:00
"ctg_mtg_deciduous_forest",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("deciduous_forest_shore", {
2020-05-13 14:00:01 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("deciduous_forest_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("deciduous_forest_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
}, 1);
-- Desert
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("desert", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
2020-05-13 14:00:01 +02:00
"ctg_mtg_colored_sand",
"ctg_mtg_desert_sand",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("desert_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("desert_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
}, 1);
-- Sandstone Desert
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("sandstone_desert", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("sandstone_desert_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("sandstone_desert_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
}, 1);
-- Cold Desert
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("cold_desert", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
2020-05-13 14:00:01 +02:00
"ctg_mtg_colored_sand",
"ctg_mtg_silver_sand",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("cold_desert_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("cold_desert_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
}, 1);
-- Savanna
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("savanna", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_land",
2020-05-13 14:00:01 +02:00
"ctg_mtg_colored_land",
"ctg_mtg_savanna",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("savanna_shore", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("savanna_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
}, nil, 0);
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("savanna_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_land",
"ctg_mtg_colored_sand",
}, 1);
-- Rainforest
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("rainforest", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_forest",
"ctg_mtg_colored_forest",
2020-06-26 02:22:26 +02:00
"ctg_mtg_rainforest",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("rainforest_swamp", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
2020-06-26 02:22:26 +02:00
"ctg_mtg_swamp",
2020-05-13 13:51:32 +02:00
});
2020-06-11 02:37:57 +02:00
cartographer.biomes.add("rainforest_ocean", {
2020-05-13 13:51:32 +02:00
"ctg_mtg_simple_water",
"ctg_mtg_colored_water",
});
2020-04-25 15:50:07 +02:00
-- Markers
-- General markers
cartographer.markers.add("ctg_mtg:house", "House", {
"ctg_mtg_marker_house",
"ctg_mtg_marker_house_2",
});
cartographer.markers.add("ctg_mtg:skull", "Skull", {
"ctg_mtg_marker_skull",
});
cartographer.markers.add("ctg_mtg:diamond", "diamond", {
"ctg_mtg_marker_diamond",
"ctg_mtg_marker_diamond_2",
});
cartographer.markers.add("ctg_mtg:mese", "mese", {
"ctg_mtg_marker_mese",
"ctg_mtg_marker_mese_2",
});
cartographer.markers.add("ctg_mtg:x", "X", {
"ctg_mtg_marker_x",
"ctg_mtg_marker_x_2",
});
cartographer.markers.add("ctg_mtg:flag", "Flag", {
"ctg_mtg_marker_flag",
"ctg_mtg_marker_flag_2",
});
2020-04-25 15:50:07 +02:00
-- Line drawing markers
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_h", "Line (Horizontal)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_h",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_v", "Line (Vertical)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_v",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_c_ne", "Line (North-East Corner)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_c_ne",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_c_se", "Line (South-East Corner)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_c_se",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_c_nw", "Line (North-West Corner)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_c_nw",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_c_sw", "Line (South-West Corner)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_c_sw",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_t_n", "Line (North T-Intersection)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_t_n",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_t_s", "Line (South T-Intersection)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_t_s",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_t_e", "Line (East T-Intersection)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_t_e",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_t_w", "Line (West T-Intersection)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_t_w",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:line_cross", "Line (Crossing)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_line_cross",
});
-- Arrow markers
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:arrow_n", "Arrow (North)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_arrow_n",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:arrow_s", "Arrow (South)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_arrow_s",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:arrow_e", "Arrow (East)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_arrow_e",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:arrow_w", "Arrow (West)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_arrow_w",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:arrow_ne", "Arrow (North-East)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_arrow_ne",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:arrow_se", "Arrow (South-East)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_arrow_se",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:arrow_nw", "Arrow (North-West)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_arrow_nw",
});
2020-06-11 02:37:57 +02:00
cartographer.markers.add("ctg_mtg:arrow_sw", "Arrow (South-West)", {
2020-04-25 15:50:07 +02:00
"ctg_mtg_marker_arrow_sw",
});
-- Materials
2020-06-11 02:37:57 +02:00
cartographer.materials.register_by_name("default:paper", "paper");
cartographer.materials.register_by_name("default:coal_lump", "pigment");
cartographer.materials.register_by_name("default:coalblock", "pigment", 9);
cartographer.materials.register_by_name("dye:black", "pigment");
2020-04-25 15:50:07 +02:00
-- Crafting Recipes
minetest.register_craft({
output = "cartographer:simple_table",
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"group:stick", "", "group:stick"},
{"group:stick", "group:stick", "group:stick"},
}
})
minetest.register_craft({
output = "cartographer:standard_table",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "cartographer:simple_table", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
}
})
minetest.register_craft({
output = "cartographer:advanced_table",
recipe = {
{"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
{"default:mese_crystal_fragment", "cartographer:simple_table", "default:mese_crystal_fragment"},
{"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
}
})