[Mod] Compass [compass]
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
[Mod] Compass [compass]
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:
A compass at night:
Several compasses, illustrating how they work while beeing passive nodes:
How to craft one:
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:
A compass at night:
Several compasses, illustrating how they work while beeing passive nodes:
How to craft one:
Last edited by Sokomine on Sat Mar 21, 2015 23:36, edited 3 times in total.
A list of my mods can be found here.
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
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.
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: 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.
A list of my mods can be found here.
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: 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.
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.
A list of my mods can be found here.
- ruskie
- New member
- Posts: 6
- Joined: Sat Oct 27, 2012 20:05
- Location: Ljubljana.Slovenia.Europe
- Contact:
A bit too colourful for me. I'd be happy with something like:
Pointing north and 1/4th high block.
Code: Select all
/\
/ \
------
- Napiophelios
- Member
- Posts: 1035
- Joined: Mon Jul 07, 2014 01:14
- GitHub: Napiophelios
- IRC: Nappi
- In-game: Nappi
Re: [Mod] Compass (sort of)
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:
flip the image horizontally then flip it again vertically
edit:
okay I am a goon never mind my suggestion
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:
flip the image horizontally then flip it again vertically
edit:
okay I am a goon never mind my suggestion
- lag01
- Member
- Posts: 321
- Joined: Sun Mar 16, 2014 03:41
- GitHub: AndrejIT
- IRC: lag01
- In-game: lag
- Contact:
Re: [Mod] Compass [compass]
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".
That is - on north side of block write "north".
- Anonymous_moose
- Member
- Posts: 39
- Joined: Tue Aug 27, 2013 20:25
Re:
yep. remember: Never Eat Shredded WheatEcho wrote:Sun and moon rise east, set west. Guess where north is...
Re: [Mod] Compass [compass]
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.
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.
- Attachments
-
- compass.zip
- (2.58 KiB) Downloaded 80 times
Who is online
Users browsing this forum: No registered users and 61 guests