Page 1 of 1

[Mod] Compass [compass]

Posted: Thu Oct 25, 2012 02:53
by Sokomine
This mod kind of adds a compass. It is a simple passive node with six diffrent sides. When you see the side labled "N", you will know that you are looking north. It won't work in your inventory. You have to place it somewhere. The node has its coordinates as infotext (helpful if you need them e.g. for node protection) and emits light. That's it. I'd have prefered a compass rose displayed and updated in the main window every time you look around - but that can't be done with a mod.

It is also the only mod I've done that comes with textures. They're not very good. If you can help out with better ones please do so!

Download: https://github.com/Sokomine/compass/zipball/master
Browse code: https://github.com/Sokomine/compass
License: WTFPL
Depends on: nothing

Two compasses, player looking east-north-east:
Image

A compass at night:
Image

Several compasses, illustrating how they work while beeing passive nodes:
Image

How to craft one:
Image

Posted: Thu Oct 25, 2012 02:59
by BrandonReese
My first idea for a mod was a compass, but like you I quickly figured out you can't overlay a compass on the display. Very nice work on this, I just press F5 for the debug info and use the location and yaw info.

Posted: Thu Oct 25, 2012 03:08
by Sokomine
Yes, F5 helps to a degree. Unfortionately, debug info shows too much info to take it in really fast. It is sometimes too precise and a break in the way one "parses" the input - text vs. images.

Posted: Thu Oct 25, 2012 09:19
by PilzAdam
Suggestions:
  • Remove the x,y,z and only use the other notation.
  • Use the drawtype "raillike" and create some compass looking textures.
This could be a great mod.

Posted: Thu Oct 25, 2012 09:43
by PilzAdam
Here is a version with my suggestions: [url]ompldr.org/vZzBuZw/compass.zip[/url]
It has the raillike drawtype and looks like a compass. It also switches N, E and H to S, W, U if the values are negative.

Posted: Thu Oct 25, 2012 17:38
by Sokomine
The x,y,z coordinates are intended to be a help to get the coordinates for things like area protection, teleporters etc. This can be done with F5 as well, but might be a bit easier if the coordinates are displayed without decimal points.

The drawtype "raillike" plus less light emitted could not fulfill the main purpose I need the compasses for - namely quick orientation, even from some blocks away. The raillike type can only be viewed if one looks straight down at it. On the other hand my compass isn't something that fits into towns well. Your version is much more unobstrusive and more of a decorative type. Maybe the texture could be changed to a larger size (32x32 or something like that) to make a really decorative compass complete with needle that one might place in/around ones house as a decorative element? Both versions coud be crafted into each other so that the right compass can be used depending on sourrounding.

The switching of N/S and E/W and H/(U? D?) depending on the values is an excellent idea! I'll include that soon. Maybe someone can supply a higher resolution compass image for your raillike/flat type.

Posted: Thu Oct 25, 2012 18:15
by PilzAdam
Sokomine wrote:H/(U? D?)
U = underground. But I think H-16 would be possible too.

Posted: Thu Oct 25, 2012 22:58
by Dragonop
it needs a best texture and add x.y and z like this :
X: 00,000
Y: 00,000
Z: 00,000
Like a simple text and don't make it so hard to understand

Posted: Sun Nov 11, 2012 10:22
by ruskie
A bit too colourful for me. I'd be happy with something like:

Code: Select all

  /\
 /  \
------
Pointing north and 1/4th high block.

Posted: Sun Nov 11, 2012 10:34
by Echo
Sun and moon rise east, set west. Guess where north is...

A compass directing to home / spawnpoint (PilzAdams bed-mod) would be helpful.

Re: [Mod] Compass (sort of)

Posted: Sun Sep 14, 2014 02:21
by Sokomine
Re-added missing textures.

Re: [Mod] Compass (sort of)

Posted: Sun Sep 14, 2014 10:22
by Napiophelios
This is a cool mod,especially if you like to spend your time underground :)

But you need to edit the compass_side_top.png so that it lines up
no matter what view you have of the compass block like so:

Image

flip the image horizontally then flip it again vertically

edit:
okay I am a goon never mind my suggestion

Re: [Mod] Compass [compass]

Posted: Sun Sep 21, 2014 17:16
by lag01
I think, compass on like on Napiophelios image would be more convenient, at least for non-programmers :)
That is - on north side of block write "north".

Re:

Posted: Sun Jul 12, 2015 05:06
by Anonymous_moose
Echo wrote:Sun and moon rise east, set west. Guess where north is...
yep. remember: Never Eat Shredded Wheat

Re: [Mod] Compass [compass]

Posted: Fri May 18, 2018 16:09
by Astrobe
I made a variation of this compass.

I have replaced the original "flashy" textures with a chest texture on which is painted a simple dot. The node now uses "wood" sounds. The brightness has been reduced to 10.

Finally, the display of the coordinates of the node has been removed. Instead, when removing the node the bearing or azimuth is printed in the player's chat. Together with a HUD waypoint display (not included) it forms polar coordinates (angle+distance). I found it more fun that the usual cartesian coordinates.

I had to make the node "dig immediate" (like torches) to avoid chat spam when removing the node.