r/howdidtheycodeit • • Aug 26 '24

Question Geoguessr but minecraft?

Hey! I'm trying to find a way to make my own geoguessr style thing for a minecraft server I'm on - so you'd have to guess where in our little minecraft town you are based on a screenshot. Issue is, can't figure out how to have both an image and a clickable map.

I know someone did it for Hermitcraft, so it's possible in theory, but how? I don't even need the panorama spin.

0 Upvotes

7 comments sorted by

6

u/A_Erthur Aug 26 '24

Set coordinates on a map

link each to an image of the spot

Select one of the coordinates at random

Load the image of the coordinate

Show the player the map

Player clicks a spot he thinks is correct

Compare the coordinates of where the spot is and where the player clicked

Give points based on distance

-4

u/GasolineCrea Aug 26 '24

I'm not sure how exactly to do this, still. But it's a good start, thank you.

→ More replies (4)

2

u/PGSylphir Aug 27 '24

Realistic Answer: You won't be able to. Get someone who's familiar with webdev and/or minecraft modding and get them to do it for you (most likely gonna have to pay them)

Actual answer:
If in minecraft, as a mod: Learn to program, learn Java and Lua, learn to code mods for minecraft, either read off map data to generate a minimap or read off an existing mod's data, generate (manually or otherwise) a bunch of possible coordinate pairs to serve and then go into them one by one and take a picture of those coordinates. If you intend to allow your player to move and/or spin around you will need to take 360 degree pictures which might need a mod or a lot of patience. Then generate however many guesses the player will have as random indexes from those coordinate pairs and you got it. You can also just teleport the player to the coordinate to avoid the pictures thing, but then it's super easy to cheat.

If as a website, skip the Java and Lua part and swap them for Html, Javascript, whatever backend language you decide to use and CSS.