[Mod] HUD Compass [hud_compass]

Post Reply
kestral
Member
Posts: 89
Joined: Mon Mar 27, 2017 21:56
GitHub: kestral246

[Mod] HUD Compass [hud_compass]

by kestral » Post

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

Image

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.

Notes
  • 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.
Licenses
  • 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
FreeGamers
Member
Posts: 651
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] HUD Compass [hud_compass]

by FreeGamers » Post

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!
FreeGamers.org has moved to MeseCraft.net | FreeGamers on the forum is now MeseCraft

User avatar
runs
Member
Posts: 1908
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] HUD Compass [hud_compass]

by runs » Post

Yes, I would like this one as a item too :-(
Day 42 of the quarantine

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests