[Mod] HUD Compass [hud_compass]

Posts: 82
Joined: Mon Mar 27, 2017 21:56
GitHub: kestral246

[Mod] HUD Compass [hud_compass]

by kestral » Mon Dec 30, 2019 18:17

A Minetest mod to optionally place a HUD compass, or a compass and a clock, on the screen.


How to enable

"/compass" -> By default this places just a compass in the bottom right corner of the screen.

Repeated use of this command will toggle the display of the compass off and on.

When given with an argument, the user can select whether to display just a compass, or a compass and a clock, and which corner of the screen to place them in. This is particularly useful with Android clients, where the bottom right corner of the screen has the jump button.

"/compass 1" -> compass only, top right corner
"/compass 2" -> compass only, bottom right corner
"/compass 3" -> compass only, bottom left corner
"/compass 4" -> compass only, top left corner

"/compass 5" -> compass and clock, top right corner
"/compass 6" -> compass and clock, bottom right corner
"/compass 7" -> compass and clock, bottom left corner
"/compass 8" -> compass and clock, top left corner

In addition:

"/compass 0" -> forces compass and clock off.

  • The clock is a 24-hour clock, with only one hand that displays the hours. Noon is at the top and midnight is at the bottom.
  • Local mod storage is used to maintain the state and position of hud_compass display between sessions, per user.
  • No dependencies.

  • Source code: The MIT License (MIT)
  • Media (textures): Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
  • Compass textures were copied from my realcompass mod, which were originally based on the textures created by tacotexmex for the ccompass mod. Clock textures were derived from these same textures.

Get it at: https://github.com/kestral246/hud_compass

User avatar
Posts: 478
Joined: Sat May 25, 2019 00:15
Location: United States
GitHub: is proprietary I use NotABug

Re: [Mod] HUD Compass [hud_compass]

by FreeGamers » Mon Dec 30, 2019 18:59

Nice mod.

I'd also request the options for some more settingstypes. The less chat commands that players have to enter the better. I think the implementation on the UI is very good.

I think I'm going to end up installing your realcompass to use on my survival game after trying this mod out. I prefer the item version. Any chance of getting the pretty clock as a handheld item in the game too? realclock?

I can see where this mod would be handy. It is nice!

User avatar
Posts: 1140
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 18 guests