Minetest mod that adds map items that show terrain in HUD
Go to file
Lars Mueller df5bd3c4ec Fix dynamic media race condition
Wait for *all* players to receive the texture before using it.
Previously this would wait for *any* player to receive the texture.
This works fine in singleplayer (or on pre-5.5,
where dynamic_add_media would block until all players have received the texture),
but it may fail otherwise:
Either entity textures won't be available in time,
or, even worse, the HUD texture is unavailable.
Both produce an error in chat for clients.
2023-04-08 20:10:43 +02:00
textures Add tiny player position marker 2022-05-22 15:54:25 +02:00
LICENSE Add LICENSE 2022-05-20 19:16:39 +02:00
README.md Mention placed maps in README.md 2022-05-21 22:14:59 +02:00
dynamic_add_media_all.lua Fix dynamic media race condition 2023-04-08 20:10:43 +02:00
generate_textures.lua Add tiny player position marker 2022-05-22 15:54:25 +02:00
init.lua Fix dynamic media race condition 2023-04-08 20:10:43 +02:00
mod.conf Change name from “maps” to “xmaps” 2022-05-20 20:53:41 +02:00
screenshot.png Add screenshot 2022-05-20 20:11:46 +02:00

README.md

X Maps

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.

Maps can be placed in the world on the sides of nodes.

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

You can use xmaps.create_map_item() to create a treasure map:

local itemstack = xmaps.create_map_item(pos, { draw_x = true })

Notes

xmaps is similar to mcl_maps, which is part of MineClone2.

All map items and placed maps have a TGA file in the metadata.

This enables items and placed maps to work in world downloads.

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