Make a seeded world come out the same no matter where you walk first
Two players typing the same world code should find the same mountains, but if the land is made as you walk, the order of your steps can change it. This entry shows the AI how to give every patch of land its own repeatable number.
Why this works
If land is made while walking, its look must not depend on the walk. Give each patch its own starting number built only from the world code and its place, so a patch is the same whether it is met first, last, or after a restart.
When not to use it
It is the wrong approach when land should react to what happened before, such as terrain that spreads or a world shaped by earlier players' choices. Then store the result, not the recipe, or the same code will rebuild the wrong land.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- 36 lines of example code with 3 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Make a seeded world come out the same no matter where you walk first" (read_entry world-seed-same-chunk-any-order) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP