models | ||
sounds | ||
textures | ||
.gitignore | ||
.gitlab-ci.yml | ||
.luacheckrc | ||
audio.lua | ||
autofill.lua | ||
biome_api.lua | ||
chunk_api.lua | ||
commands.lua | ||
formspec.lua | ||
init.lua | ||
items.lua | ||
map_api.lua | ||
map_formspec.lua | ||
marker_api.lua | ||
material_api.lua | ||
mod.conf | ||
README.md | ||
scanner.lua | ||
skin_api.lua | ||
storage.lua | ||
table.lua | ||
util.lua |
Cartographer
A Minetest mod that provides the necessary framework for crafting maps of the local environment from various resources. The mod is structured as an API of sorts, to allow it to be used with any game where such concepts are sensible.
How to set up Cartographer
Since Cartographer is an API, it needs at least one additional mod in order to function in your world. There are example mods available for Minetest Game and Repixture, and you can make your own to extend these or support other games of your choosing.
The process of making such a mod is pretty straightforward:
- Register every biome in your game with cartographer, by calling
cartographer.biomes.add
, listing the biome, texture names to use for each detail level, and an optional min/max height for those textures to be used. - Register items/item groups that provide "paper" and "pigment" for mapmaking, by calling
cartographer.materials.register_by_name
orcartographer.materials.register_by_group
. You can optionally specify how much of a material to provide per-item, or let it provide 1 unit by default. - Add crafting recipes or other ways of acquiring the following nodes:
- cartographer:simple_table
- cartographer:standard_table
- cartographer:advanced_table
It's worth looking in the code to see what other options the cartographer API offers. If your mod/game would benefit from another means of acquiring or displaying maps, you can use the API to create your own crafting systems and mapping items.