Am I safe to assume the way it works is pointing towards, let me show:
It would point towards the highest Y coordinate in the map, and then the player's X coordinate?
Not quite... It simply points in the -X direction. -X is North in Minecraft; not sure why... Also, you wouldn't need the player's position at all because you don't actually have to calculate anything (the calculation is done in world-space, so it's always a [-1,0] vector).
tbh the compass is more important to spawn. Man I think was one the most useful things for people who are making trains/subway systems even more underground. You know where spawn is so instead of starting at spawn and on you start far off and head to spawn.
Nice! But I don't use the Directions anyway, when I'm lost in a cave with ample pickaxes, I just tunnel a 2x1 to where it says my spawn is, and dig up, then I'm home, and I've got a nice safe way to my cave.
Rollback Post to RevisionRollBack
Notice: If you notice this notice you will notice that this notice is not worth noticing
hey can someone port this to be usable by mac or give instructions on how to download for mac? I NEED THIS MOD.
From another thread:
Quote from CyborgDragon »
1) Go to Applications>Utilities and open terminal.
2) Type in the following, line by line:
jar xf ~/Library/Application\ Support/minecraft/bin/minecraft.jar
3) Outside of terminal, copy the class files into the mctmp directory.
4) Back inside terminal, type in the following:
jar uf ~/Library/Application\ Support/minecraft/bin/minecraft.jar ./
rm -rf mctmp
5) Run Minecraft, enjoy!
I'm working on a script I made myself to do this automatically. It's very basic right now, no error checking because I know how it works and what not to do. But I can extend it if people would want a copy of it...
Here's how it works:
0.) [Before first run only] Move modmc to /bin
1.) Open Terminal and type modmc
3.) A Finder window will open, replace any files you need.
4.) Go back to Terminal and press a key to commit changes.
EDIT: I always make a post to help someone who is having difficulties, and forget to thank the OP. Thanks, this is really cool!
I wish this could be server side, but I guess thats impossible.
Really cool mod! This should just come with the game.
NOTE: I am only starting to look into modding so I am not proficient with Minecraft's logic or protocol so this is just a thought on a possible trick in logic if the compass works the way I think it does.
This could be done serverside with a trick. Basically, if the needle always points to the spawn location then have the server intentionally report to the client incorrect spawn coordinates at login or if it can, on the fly with a simple command of /compass.
If set to report north then the spawn coordinates are reported to the client with the X coordinate changed to
-35,000,000(or furthest possible -X coordinate). So if the spawn is at coord(X,Y,Z) = coord(42,80,25) then the server would tell the client it is at coord(X,Y,Z) = coord(-35 000 000,80,25). This would trick the compass into pointing at what is essentially magnetic north. You would have to go pretty far in the Z or -X direction for this not to point north. Don't know how much stress this would put on the client trying to calculate this but I don't forsee it being a problem since it is probably just a floating point calculation.
This IS dependant on whether the actual spawn location can be changed on the fly and whether respawn is handled by the server not the client. This is most likely handled by the server or else you could hack yourself anywhere on the map regardless of permissions by changing the client side spawn coordinates in memory. Unfortunately, if you can't update spawn on the fly then this would have to be a server choice that cannot be overridden by the player after login. You could however change it then relogin if the mod is set to remember user preferences.
Just a thought on how server side could be acheived to prevent requiring client side mods.