2020-03-29 18:27:00 -04:00
|
|
|
-- Biomes
|
2022-03-24 07:38:27 -04:00
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Marsh",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Swamp",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
"ctg_pix_swamp",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Deep Forest",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_forest",
|
|
|
|
"ctg_pix_colored_forest",
|
|
|
|
"ctg_pix_deep_forest",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Forest",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_forest",
|
|
|
|
"ctg_pix_colored_forest",
|
|
|
|
"ctg_pix_dense_forest",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Grove",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_forest",
|
|
|
|
"ctg_pix_colored_forest",
|
|
|
|
"ctg_pix_grove",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Wilderness",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_forest",
|
|
|
|
"ctg_pix_colored_forest",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Grassland",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Orchard",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_forest",
|
|
|
|
"ctg_pix_colored_forest",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Chaparral",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
"ctg_pix_chaparral",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Savanna",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
"ctg_pix_savanna",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Desert",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_sand",
|
|
|
|
"ctg_pix_colored_sand",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Wasteland",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_sand",
|
|
|
|
"ctg_pix_colored_sand",
|
|
|
|
"ctg_pix_wasteland",
|
|
|
|
},
|
|
|
|
min_height = 1
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Wasteland",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_water",
|
|
|
|
"ctg_pix_colored_water",
|
|
|
|
},
|
|
|
|
max_height = 0
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Grassland Ocean",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_water",
|
|
|
|
"ctg_pix_colored_water",
|
|
|
|
},
|
|
|
|
max_height = 0
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Grassland Ocean",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_sand",
|
|
|
|
},
|
|
|
|
min_height = 1
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Gravel Beach",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_water",
|
|
|
|
"ctg_pix_colored_water",
|
|
|
|
},
|
|
|
|
max_height = 0
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Gravel Beach",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_sand",
|
|
|
|
"ctg_pix_gravel",
|
|
|
|
},
|
|
|
|
min_height = 1
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Savanna Ocean",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_water",
|
|
|
|
"ctg_pix_colored_water",
|
|
|
|
},
|
|
|
|
max_height = 0,
|
|
|
|
}
|
|
|
|
cartographer.biomes.add {
|
|
|
|
name = "Savanna Ocean",
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_sand",
|
|
|
|
},
|
|
|
|
min_height = 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Fallback biomes
|
|
|
|
cartographer.biomes.add_fallback {
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_water",
|
|
|
|
"ctg_pix_colored_water",
|
|
|
|
},
|
|
|
|
max_height = 0,
|
|
|
|
}
|
|
|
|
cartographer.biomes.add_fallback {
|
|
|
|
textures = {
|
|
|
|
"ctg_pix_simple_land",
|
|
|
|
"ctg_pix_colored_land",
|
|
|
|
}
|
|
|
|
}
|
2020-03-29 18:27:00 -04:00
|
|
|
|
2020-04-23 07:41:14 -04:00
|
|
|
-- Markers
|
|
|
|
-- General markers
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:house", "House", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_house",
|
|
|
|
"ctg_pix_marker_house_2",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:skull", "Skull", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_skull",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:jewel", "Jewel", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_jewel",
|
|
|
|
"ctg_pix_marker_jewel_2",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:x", "X", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_x",
|
|
|
|
"ctg_pix_marker_x_2",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:flag", "Flag", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_flag",
|
|
|
|
"ctg_pix_marker_flag_2",
|
|
|
|
});
|
|
|
|
|
|
|
|
-- Line drawing markers
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_h", "Line (Horizontal)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_h",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_v", "Line (Vertical)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_v",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_c_ne", "Line (North-East Corner)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_c_ne",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_c_se", "Line (South-East Corner)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_c_se",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_c_nw", "Line (North-West Corner)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_c_nw",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_c_sw", "Line (South-West Corner)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_c_sw",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_t_n", "Line (North T-Intersection)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_t_n",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_t_s", "Line (South T-Intersection)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_t_s",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_t_e", "Line (East T-Intersection)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_t_e",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_t_w", "Line (West T-Intersection)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_t_w",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:line_cross", "Line (Crossing)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_line_cross",
|
|
|
|
});
|
|
|
|
|
|
|
|
-- Arrow markers
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:arrow_n", "Arrow (North)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_arrow_n",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:arrow_s", "Arrow (South)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_arrow_s",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:arrow_e", "Arrow (East)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_arrow_e",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:arrow_w", "Arrow (West)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_arrow_w",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:arrow_ne", "Arrow (North-East)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_arrow_ne",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:arrow_se", "Arrow (South-East)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_arrow_se",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:arrow_nw", "Arrow (North-West)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_arrow_nw",
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.markers.add("ctg_pix:arrow_sw", "Arrow (South-West)", {
|
2020-04-23 07:41:14 -04:00
|
|
|
"ctg_pix_marker_arrow_sw",
|
|
|
|
});
|
|
|
|
|
2020-03-29 18:27:00 -04:00
|
|
|
-- Materials
|
2020-06-26 17:40:27 -04:00
|
|
|
cartographer.materials.register_by_name("default:paper", "paper");
|
|
|
|
cartographer.materials.register_by_name("default:lump_coal", "pigment");
|
|
|
|
cartographer.materials.register_by_name("default:block_coal", "pigment", 9);
|
2020-03-29 18:27:00 -04:00
|
|
|
|
|
|
|
-- Crafting Recipes
|
|
|
|
crafting.register_craft({
|
|
|
|
output = "cartographer:simple_table",
|
|
|
|
items = {
|
|
|
|
"default:fiber 2",
|
|
|
|
"default:stick 8",
|
|
|
|
"group:wood 6",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
crafting.register_craft({
|
|
|
|
output = "cartographer:standard_table",
|
|
|
|
items = {
|
|
|
|
"cartographer:simple_table",
|
|
|
|
"default:ingot_steel 6",
|
|
|
|
},
|
|
|
|
});
|
2020-06-26 17:40:27 -04:00
|
|
|
crafting.register_craft({
|
|
|
|
output = "cartographer:advanced_table",
|
|
|
|
items = {
|
|
|
|
"cartographer:advanced_table",
|
|
|
|
"default:ingot_carbon_steel 6",
|
|
|
|
},
|
|
|
|
});
|
2020-06-26 20:23:51 -04:00
|
|
|
|
|
|
|
-- Skin
|
|
|
|
for _,skin in pairs(cartographer.skin.table_skins) do
|
|
|
|
skin.paper_texture = "default_paper";
|
|
|
|
skin.pigment_texture = "default_lump_coal";
|
|
|
|
end
|
|
|
|
|
2020-06-26 20:43:52 -04:00
|
|
|
cartographer.skin.table_skins.advanced_table.background.texture = "ctg_pix_advanced_table_bg";
|
|
|
|
|
2020-06-27 11:24:56 -04:00
|
|
|
-- Overrides
|
2020-06-26 20:23:51 -04:00
|
|
|
minetest.override_item("cartographer:map", {
|
|
|
|
inventory_image = "ctg_pix_map.png";
|
|
|
|
wield_image = "ctg_pix_map.png";
|
|
|
|
});
|
|
|
|
minetest.override_item("cartographer:standard_table", {
|
|
|
|
tiles = { "ctg_pix_standard_table.png" };
|
|
|
|
});
|
|
|
|
minetest.override_item("cartographer:advanced_table", {
|
|
|
|
tiles = { "ctg_pix_advanced_table.png" };
|
|
|
|
});
|