I typically save my Java server files “World” folder to a secondary folder, for backup and “cheating” purposes.
Until 26.1.1, I could restore an old backup, and new random numbers would be used. Specifically, I use this to avoid getting duplicated maps from cartographer villagers.
But in 26.1.1, I’ve not received the same trade offer eight times in a row. With each having a 1/2 chance of being selected, this is a 1 in 6500 probability. That’s extremely unlikely, so I suspect this is a change to how random seeds are saved.
This worked properly as of 26.0 or 26.1 (not sure which).
Comments 4
Go to the server folder for a java server.
Go to the “World” folder.
Back up all files in here.
Copy to another location.
Perform a task. In this case, trade with a villager to promote him/her to the next level. Make sure you choose a villager who has several trades available at what will be his/her next level.
Note the trades.
Log out and close the server (batch window).
Restore the contents of the the backup folder into the World folder, overwriting the entire folder.
Bring the game back up and log in again.
Make the same trade.
In the past, this sequence had equal probabilities of generating trades using all random trades available at that level.
Now, however, it always chooses the same trades. In the example I cited, I was trading with a savanna cartographer to bring him/her to level 2. Typically, there is an equal probability of getting any two of the three maps available (jungle, plains, and desert). But eight times in a row, I got only jungle and plains. The odds against his are over 2700 to 1.
Then, I went to another server, and check against it’s backup. This was an armorsmith going to level 3. There are five options. The trade came up the same as the one I had done before the backup/restore. The odds against that are 20 to 1. The odds against both happening are over 54,000 to 1.
This strongly implies that the random seeds are being saved somewhere other than the World folder. And it’s a huge change from the past behavior.
One more thing: on that second server, I also promoted that armorsmith to the fourth level as well. The trades are the same, but the prices are supposed to be random. Both items were exactly the same price as before. So now the odds against are in the millions to one against.
Thank you for your report!
However, this issue is Working As Intended.
The behavior you have reported is working as intended: Please refer to the 26.1 Snapshot 1 and 26.1 changelogs, the latter of which is quoted below.
Trades
The trades that are unlocked by Villager professions are now generated using deterministic random sequences, like loot drops and barter loot
Re-rolling a Villager's trades still produces a randomized sequence of trades, but that sequence is now determined by the world seed
Please note that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – Feature Requests and Suggestions
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
We do not have enough information to reproduce this issue.
Please include the following information to help us understand your problem:
Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.
Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki