1
0
Fork 0
xmaps-forked2/README.md

43 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

# X Maps
2022-05-20 19:59:18 +02:00
This mod adds map items that show terrain in HUD.
The HUD shows a player position & direction marker.
Treasure maps are like normal maps that show a red X.
2022-05-21 22:14:59 +02:00
Maps can be placed in the world on the sides of nodes.
2022-05-20 19:59:18 +02:00
## In Minetest Game
A right click with a mapping kit creates a map of the area.
If you target a node, its position shows as a red X on a map.
With the X players can share coordinates or have treasure hunts.
## X Maps API
2022-05-20 19:59:18 +02:00
You can use `xmaps.create_map_item()` to create a treasure map:
2022-05-20 19:59:18 +02:00
```
local itemstack = xmaps.create_map_item(pos, { draw_x = true })
2022-05-20 19:59:18 +02:00
```
## Notes
`xmaps` is similar to `mcl_maps`, which is part of MineClone2.
2022-05-20 19:59:18 +02:00
2022-05-21 22:14:59 +02:00
All map items and placed maps have a TGA file in the metadata.
2022-05-20 19:59:18 +02:00
2022-05-21 22:14:59 +02:00
This enables items and placed maps to work in world downloads.
2022-05-20 19:59:18 +02:00
## TODO
* Align mapped area with mapblocks (for better performance)
* Add support for mods with nodes that can show bitmaps
* Make it possible to wield map item in player hand
* Add more icons to represent the terrain better
* Make maps update while player is moving
* Make it possible to combine maps