How do you find your home bed?

I got lost with an inventory full of stuff and I don't want to kill myself. I've built a huge structure, but I'm unable to find it, as I've no idea where to go. I've slept in the bed, and tried /spawnpoint, but it simply just reassigned my spawnpoint.

I just want to find the coordinates of my bed, as it's the only one in the world. I've tried X-ray programs as well as Blockfinder 0.9.1 (which I can't get to work), and I just can't locate it anywhere.

I'm using Minecraft 1.5.1. Can anyone help me with this?


Solution 1:

Using MCEdit, you can go back to your original spawn point by using "Move Spawn Point" on the hotbar and select "Goto Spawn". Then you can follow your history to try to figure out where your bed is.

If you really can't figure out, you can try the following MCEdit Filter. It will help you find your bed, but may actually take quite long (probably no less than a few minutes).

displayName = "Find beds"

inputs = (
    ("Search the whole world regardless of bounding box", True),
)

def perform(level, box, options):
    if options["Search the whole world regardless of bounding box"]:
        i = level.getAllChunkSlices()
    else:
        i = level.getChunkSlices(box)
    print "Finding beds..."
    for (chunk, slices, point) in i:
        if blockExistInChunk(chunk, 26):
            (x, z) = chunk.chunkPosition
            print "=> Bed found near x={0}, z={1}".format(x * 16 + 8, z * 16 + 8)
    print "Stopped finding beds."

def blockExistInChunk(chunk, blockId):
    for a in chunk.Blocks:
        for b in a:
            for c in b:
                if c == blockId:
                    return True
    return False

Save the file under the filters directory in MCEdit with name findbeds.py, then go to MCEdit, use Filter on the hotbar, select Find Beds and click Filter. Now watch the console (the white on black window) and it will output the approximate coordinates of where beds are found.

Sample output:

Finding beds...
=> Bed found near x=-440, z=-600
Stopped finding beds.

Solution 2:

  • Use F3 to determine your present coordinates.
  • Make a chest (or two).
  • Put all items in your chest.
  • Kill yourself.
  • Note coordinates of your bed (to avoid this in the future)
  • Go to your chests.
  • celebrate with fireworks....

Solution 3:

Load your map into McEdit - this will let you fly around in the world and look for your bed. When you find it just put down your character there, load the map in regular Minecraft and you should be fine.

Press F3 after this and check the beds coordinates, write them down in case of future situations like this.