EDIT:
I've setup a page for the project, I'll try to provide the source code, and actually figure more things out once I get a change. At the time of editing it's around 6am, and I haven't slept at all. Here's the topic. <--- THIS WILL LET YOU DO IT YOURSELF WITHOUT HAVING TO PROGRAM ANYTHING!
Original content:
Alright, so, I love strongholds. Not that I've explored any, I just love the concept of them... However, I'm not exactly a patient person, so when I heard that they were few and far between, I set out to decompile the minecraft pre-release and find out how they calculated their position!
This actually proved to be WAY more difficult than I thought it would be. I honestly had no idea that obfuscated code was so..... obfuscated..... And after hours of looking through endless lines of code, I only had only made marginal progress. So, I took what I had, and decided to test it-- The numbers I was getting LOOKED like coordinates, so why not try, right? I inputted a seed I knew the stronghold for and was surprised to find that my numbers were really... close.... So, I started making new maps, putting in the seed and setting my character's position to the numbers I got. Each time I was within 100 blocks of a stronghold....
For all I know this is just dumb luck, or perhaps they greatly increased the number of strongholds generated per world, and I just don't know it. But if people would like to provide me with some sample seeds, I'd love to see if I can find the stronghold in them.
Sorry if this has already been done/covered, I just found it interesting.
EDIT:
Just thought I should put the java code in the first post!
Random c = new Random();
c.setSeed(199513412870065660L); //Or whatever your seed is.
double d1 = c.nextDouble() * 3.141592653589793D * 2.0D;
double d2 = (1.25D + c.nextDouble()) * 32.0D;
int k = (int)Math.round(Math.cos(d1) * d2);
int m = (int)Math.round(Math.sin(d1) * d2);
int kt = (k << 4) + 8;
int mt = (m << 4) + 8;
System.out.println(kt + " " + mt);
Do ya reckon you could maybe try the seed 333 ?
Would be greatly appreciated :biggrin.gif:
Alright!
I came up with:
X: -8
Z: -1096
And while there was an incredibly close point of the stronghold to that, I strongly advise you go just a little bit over to:
X: -100
Z: -1065
As to avoid digging down a very very long distance.
I've setup a page for the project, I'll try to provide the source code, and actually figure more things out once I get a change. At the time of editing it's around 6am, and I haven't slept at all.
Here's the topic. <--- THIS WILL LET YOU DO IT YOURSELF WITHOUT HAVING TO PROGRAM ANYTHING!
Original content:
Alright, so, I love strongholds. Not that I've explored any, I just love the concept of them... However, I'm not exactly a patient person, so when I heard that they were few and far between, I set out to decompile the minecraft pre-release and find out how they calculated their position!
This actually proved to be WAY more difficult than I thought it would be. I honestly had no idea that obfuscated code was so..... obfuscated..... And after hours of looking through endless lines of code, I only had only made marginal progress. So, I took what I had, and decided to test it-- The numbers I was getting LOOKED like coordinates, so why not try, right? I inputted a seed I knew the stronghold for and was surprised to find that my numbers were really... close.... So, I started making new maps, putting in the seed and setting my character's position to the numbers I got. Each time I was within 100 blocks of a stronghold....
For all I know this is just dumb luck, or perhaps they greatly increased the number of strongholds generated per world, and I just don't know it. But if people would like to provide me with some sample seeds, I'd love to see if I can find the stronghold in them.
Sorry if this has already been done/covered, I just found it interesting.
EDIT:
Just thought I should put the java code in the first post!
I know strongholds don't spawn within about 500 blocks of the players' initial spawn point, but I didn't know they have somewhat set positions.
KEKDOT Highways & Freeways in Minecraft - Stack Interchange
Using your seed I got:
x: 472
z: -440
Within viewing distance (if you have a transparent texture pack) was the stronghold.
A safe landing point (not on water) is:
x:567
z:-371
EDIT:
Btw, sorry it took me so long to reply, I had deleted minecraft in hopes of patching to the non pre-release version.
It's not the same for every map. Your seed dictates where the stronghold will spawn.
All right, cheers. :smile.gif: I'll take a look there now.
Out of curiosity, what is the method you're using to find the coordinates?
I would greatly appreciate it. This seed is....creepy by the way. It starts you by a village, very Stephen King Style.
Ah, I see. Do you have a formula to calculate said coordinates given the seeds, or do you run it through a program?
KEKDOT Highways & Freeways in Minecraft - Stack Interchange
Tiny bit of java.
Alright, it came up with:
X: -312
Z: -920
And of course, within a short distance of there is your stronghold (just dig down) at:
X: -382
Z: -900
I'm sure I could, but I'd really like to figure out how to find more accurate coordinates, along with those of the other two strongholds!
I checked the location you said, and sure enough, there was the stronghold! This is very useful information.
lol, I used this seed too, village is pretty creepy i spose..
Checking co-ords now...
Oh wait lol deleted that save didn't I, and can't create a new map cos it crashes..
This works.
Sucks that my stronghold is so far down though haha.
This is wonderful information, I suggest getting in contact with a few modders.
Would be greatly appreciated :biggrin.gif:
Alright!
I came up with:
X: -8
Z: -1096
And while there was an incredibly close point of the stronghold to that, I strongly advise you go just a little bit over to:
X: -100
Z: -1065
As to avoid digging down a very very long distance.
2718970200697810380
Thanks.
By entering 1.8 as the seed it actually set it to: 48571 (Since seeds must be whole numbers)
I got:
X: -840
Z: -280
But, your best bet is to dig at:
X: -764
Z: -263
I got:
X: 808
Z: -200
But if you dig at:
X: 895
Z: -119
You should find yourself in a library! :biggrin.gif: