mojira.dev
MC-307192

Java server backup retains random roles

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 11

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:

  1. (Explain what needs to be done for the issue to happen)

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

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

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

Well, this is unacceptable. The trading system is a mess, and your feedback process is even worse.

Give us a way to reset random seeds, even if it’s via a game rule. Don’t just grossly-impact the way the game plays without telling people and giving an opportunity for feedback, just because YOU think players “aren’t playing the game correctly” (or some other ridiculous concept).

1 more comments

No, I can’t. Discord is way too busy to be useful. And the feedback site is monitored into the ground. It’s completely useless, because they never approve any posts. I have up on it years ago.

I don’t really care if you work for Mojang or not. This is Mojang’s official bug reporting system. Therefore, you should at least have contact with them. This was a major change in gameplay, and it was done without warning or recourse.

At a minimum, you should respond with where the random seeds are being stored, so players can correct for the ridiculous decision Mojang made.

*gave (vs. “have” at the end of the first paragraph).

The feedback discord is ideal if you would like to leave feedback. A link to it is below. The trades for villagers are now done based on the world seed so while these trades can be rerolled, the sequence will still be based off the world seed.

https://discord.gg/minecraftfeedback

If you would like to discuss this further please @ me on the mojira discord. The link for that is below on my first message.

I tried, but it hung trying to post my first post (with @greymagic27). It hung for an hour, so I tried again. After the five-minute slowdown, it’s hung again.

Please DM me on discord and we can troubleshoot that further

SirDaddicus

(Unassigned)

Unconfirmed

26.1.1

Retrieved