mojira.dev
MC-229191

Diamond ore distribution changed between 1.16.5 and 1.17

I believe this is a bug, as I've noticed this on survival worlds and many others have as well but I haven't seen any bug reports about this.

 

I did this via a server using world edit.

 

I used the same coordinates each time and the same numbers each time,

Seed: -6798331664095837875

 

Test #1:

Coordinates: 224 71 -15

Command: //replacenear 100 diamond_ore air

1.16.5 Result: 502 Diamond Ore within 100 Blocks

1.17 Result: 450 Diamond Ore within 100 Blocks

 

Test #2:

Coordinates: 1000 64 1000

Command: //replacenear 200 diamond_ore air

1.16.5 Result: 2,153 Diamond Ore within 200 Blocks

1.17 Result: 1,803 Diamond Ore within 200 Blocks

 

 

I'm not sure if it is meant to be less common now in 1.17 or if it was due to the first few snapshots being what is now considered 1.18 - Please let me know.

Linked issues

Attachments

Comments 33

Also, I suggest replacing //replacenear with /fill replace in the description, and try to reproduce this issue in vanilla.

Here are the results of my very basic test: I generated a new world using the seed 1, set the gamemode to spectator and /tp 9 10 9. After giving myself night vision, I traveled 8 chunks towards positive Z in 1.16.5 and 8 chunks towards negative Z in 1.17, executing the following command repeatedly:

/fill ~-9 ~-10 ~-9 ~6 ~10 ~6 air replace diamond_ore

In 1.16.5, I found 33 diamond ores. In 1.17, I found 22 diamond ores. Evidently it's a small sample size (8 chunks), but there really seems to be a reduction in diamond ore generation.

So, I can confirm.

I wasn't that knowledgeable on the fill command which is why I used Worldedit, but I mined at Y: 11 for ages on 1.17 and barely found any diamonds. This is a massive change when you look at the long run of things.

23 more comments

Analysis of differences in absolute ore amounts and y-level distributions between 1.16.5 and 1.17

We are looking to find out whether there is a difference between the absolute amount of diamond ores generated in 1.16.5 (μ1), and the absolute amount of diamond ores generated in 1.17 (μ2).
H0: μ1 = μ2
Ha: μ1 ≠ μ2

Sample size: 30 worlds, 15 in 1.16.5 and 15 in 1.17, using randomised seeds.
The data collected is the amount of diamonds at each y-level from 1 to 16 inclusive for all selected worlds in 1.16.5 and 1.17. We use the coordinates -256, 1, -256 to 255, 16, 255 (32x32 chunks) in all worlds.

Boxplots (totals is for 1.17 while totals16 is for 1.16.5):

[media]

It appears that there is a greater variation in the number of diamond ores between worlds (or chunk areas), from 1.16.5 to 1.17. A larger sample size will be needed to see if this variation is consistent, but without any further anaylsis, this suggests that luck plays a bigger factor in 1.17 than it did in 1.16.5.
Diamond ore samples can be said to be independent. I think there are trillions of possible seeds.

By running the data through a 2-sample t-test, we obtain t = 0.994 and P-value = 0.329, which means there is a 32.9% probability that this result arose by chance, and is not significant. There is no evidence to suggest a change in the absolute amount of diamond ores on average.

If we run the data on a y-level basis (specifically, y=11 and y=12) using the same test, we obtain respective P-values of 0.0230 and 0.0320 on a two-tailed test (Ha: μ1 ≠ μ2), or 0.0115 and 0.0160 respectively for a left-tailed test (Ha: μ1 < μ2), which suggests a decrease in diamond ore levels on these two levels. Note that this does not show how much it actually decreased, only that it could have decreased.

In the dataset linked above, light gray represents the 25th percentile, yellow shows the 50th percentile, dark grey shows the 75th percentile and aqua shows the 100th percentile. Pastel blue in 1.16.5 seed 14 represents both numbers at the same position near the 75th percentile. In both versions, the top quartile of y-levels with the most diamonds appear to be 5 - 7 and 12.

Another factor that could be involved is deepslate. Deepslate takes almost twice the time to mine as stone (87.5% more for an iron pickaxe if the Wiki is correct), and depending on whether you tend to divert upon seeing deepslate, this may be a bigger factor in the apparent reduction in diamonds than the ore distribution changes.

Tl;dr: No statistical difference in absolute amount of diamond ore generated, but possible slight decreases on a y-level basis in 1.17. Y-levels 5-7 have always been good for diamonds. Deepslate may be a larger factor as it will increase the mining time significantly. Diamond ore amounts could vary morein 1.17 than in 1.16.5, which could mean that luck has become a larger factor.

The only remaining analyses would be on whether ore vein sizes have decreased and veins have become more common (while retaining similar absolute numbers), and whether this negatively affects the chances of finding diamonds.

Given all the information this far in this bug, my conclusion is the likeliest problem is that there's an off-by-one error leading to the range being extended one block higher. This means the overall amount of diamonds stay roughly the same, but since it's slightly more spread out, if you're digging at one certain level (like branch mining at y=11) you'll see a marginally lower result.

While I agree this is an (unintended) change and a bug, it is very far from the disaster that people are making it out to be. If you include some level of caving, diamonds are probably a tiny bit easier to find overall now. Anyway, we're talking about a 1 block difference in distribution height.

@unknown This is not a discussion forum. If you do not have new information to add, please refrain from posting. If you want to have discussions about the bug tracker, please do so in the mojira subreddit or discord.

Btw ore distribution changes DID appear in the changelog, just not the one you guys were looking at.

Ore distribution of ALL ORES was changed when the height was increased in the snapshots (new height range was negative 64 to positive 320). Then in week 15 Mojang decided to revert all height changes and save that for 1.18. Apparently their reversion of ore distribution had a mistake in it. But the changelog for the release version of 1.17 isn't going to list changes that were made 4 months back and then undone 2 months back.

I'm able to confirm that the diamond distribution in 1.17.2-pre2 is identical to how it was in 1.16.5.

[media]

Zedanity

slicedlime

Confirmed

Normal

World generation

1.17, 1.17.1 Pre-release 1

1.17.1 Pre-release 2

Retrieved