[MC-954] Air Blocks floating in Water Created: 27/Oct/12  Updated: 14/Feb/16  Resolved: 04/Nov/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.4, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w21a, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w36a, Minecraft 13w36b, Minecraft 13w42a, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 14w04a, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.9, Minecraft 14w17a, Minecraft 14w18a, Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b, Minecraft 14w25a, Minecraft 14w25b, Minecraft 14w26c, Minecraft 1.7.10, Minecraft 14w28b, Minecraft 14w30b, Minecraft 14w30c, Minecraft 14w31a, Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d, Minecraft 14w33a, Minecraft 14w33b, Minecraft 14w33c, Minecraft 1.8-pre2, Minecraft 1.8, Minecraft 1.8.1-pre3
Fix Version/s: Minecraft 1.8.1-pre4

Type: Bug
Reporter: Kevin Gut Assignee: [Mojang] Searge (Michael Stoyke)
Resolution: Fixed Votes: 46
Labels: air, bubble, generator, water, worldgen
Environment:

Microsoft Windows7 x64 With Java 7_9 x64


Attachments: PNG File 2012-10-27_23.46.04.png     PNG File AirpocketBug.png     JPEG File MCairbug.jpg     PNG File Ocean Air 0.png     PNG File Ocean Air 1.png     PNG File Ocean Air 2.png     PNG File Ocean Air 3.png     JPEG File screenshot-1.jpg    
Issue Links:
Duplicate
is duplicated by MC-8474 World Generator creates "dents" in water Resolved
is duplicated by MC-9907 open air box under the ocean Resolved
is duplicated by MC-10836 In ocean biomes there are random air ... Resolved
is duplicated by MC-11491 Three Naturally Generated Air Pockets... Resolved
is duplicated by MC-12894 Bubbles Resolved
is duplicated by MC-16325 I was playing the most recent snapsho... Resolved
is duplicated by MC-29460 Deep Ocean biomes spawn with air pockets Resolved
is duplicated by MC-29905 Air in the under water/Buggy bione Resolved
is duplicated by MC-30710 "Giant bubbles" are created randomly ... Resolved
is duplicated by MC-30901 Just an odd bug that doesnt damgae ga... Resolved
is duplicated by MC-31968 Water generation glitch (random 1x3 2... Resolved
is duplicated by MC-35632 Water Bubble Bug Resolved
is duplicated by MC-36578 Air blocks spawn under water Resolved
is duplicated by MC-36785 Air is spawning under Cohen watter Resolved
is duplicated by MC-36821 Pockets of air in oceans Resolved
is duplicated by MC-37113 Weird air pockets in Deep Ocean Biome Resolved
is duplicated by MC-37285 Air Underwater Resolved
is duplicated by MC-37601 Random Air Pockets in Deep Oceans Resolved
is duplicated by MC-38581 Random blocks of air in water. Resolved
is duplicated by MC-38882 More Wierd Stuff... This Time Wierd W... Resolved
is duplicated by MC-39276 Random air pockets Resolved
is duplicated by MC-44386 Air Bubbles in the Ocean - Deep Ocean... Resolved
is duplicated by MC-48246 Underwater currents Resolved
is duplicated by MC-49299 Ocean's generate with air pockets Resolved
is duplicated by MC-51658 Squid spawn destroy water Resolved
is duplicated by MC-52492 Air blocks in water Resolved
is duplicated by MC-56544 Water/ chunk error Resolved
is duplicated by MC-57008 Small areas without water in the ocean Resolved
is duplicated by MC-57120 Air holes in oceans Resolved
is duplicated by MC-57737 Wild Empty Water Block Resolved
is duplicated by MC-57830 Airbubbles in the oceans. Resolved
is duplicated by MC-57936 Underwater Airholes Resolved
is duplicated by MC-57987 Air Pockets? Resolved
is duplicated by MC-59764 Air Pockets Underwater Resolved
is duplicated by MC-60431 Air blocks under water Resolved
is duplicated by MC-61969 Air Pockets in the Deep Oceans Resolved
is duplicated by MC-62248 Stronghold in Deep Ocean not generati... Resolved
is duplicated by MC-63171 Block of air in the sea Resolved
is duplicated by MC-63250 Water Pockets Generated in Oceans Resolved
is duplicated by MC-65806 Random air holes spawn in the water Resolved
is duplicated by MC-67480 Water inside water? Resolved
is duplicated by MC-67852 Holes in the Deep Ocean Resolved
is duplicated by MC-68751 Bug in the water Resolved
is duplicated by MC-68792 Air spaces in water Resolved
is duplicated by MC-69770 air in the water Resolved
is duplicated by MC-70156 Random air pockets in ocean biomes Resolved
is duplicated by MC-70168 Underwater Air Resolved
is duplicated by MC-73156 there is a hole in the water Resolved
Relates
relates to MCPE-8087 Air blocks connecting corridors to di... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

Sometimes Air Blocks are generated inside huge Water Bodies. Often appearing in Groups of two or three.
Example Location
Seed: 292202
Coords: -472;54;69



 Comments   
Comment by [Mod] redstonehelper [ 14/Feb/16 ]

Please provide seed and coordinates if the issue persists in worlds generated in 16w06a.

Comment by Adam [ 13/Feb/16 ]

Guys this bug is back in 16w06a. I am seeing it right next to an ocean monument. So much so that guardians have fallen into and are flopping around. I can show screen shot if needed.

Comment by Marcono1234 [ 06/May/15 ]

I guess the label bubble is as wrong as Pocket as bubbles are rather the air bubbles particle underwater

However when you use the search bar, it searches in the simply mode for the text element, which is the same like searching in advanced mode for

text ~ "\"Pocket\" shouldn't have been removed from the labels because it refers to air pockets, not the Pocket Edition."

Which leads to this report

Comment by branza [ 06/May/15 ]

ezekielelin But what if someone searches for "air pocket" and doesn't find this report?

Comment by [Mod] Ezekiel (ezfe) [ 06/May/15 ]

branza, that was intentional

Comment by branza [ 05/May/15 ]

"Pocket" shouldn't have been removed from the labels because it refers to air pockets, not the Pocket Edition.

Comment by Markku [ 18/Nov/14 ]

This was a clear bug (not just a "bug" in quotes), and the locations of the center rooms were never meant to be detectable from above in any way, let alone in such a silly way. (Mine structures in general can be considered to be only detectable when they carve through into open space/water or just below sand layer and the sand falls down.) The bug's result was useful in a way as in any bug that can be abused is; e.g. collision bugs used to shoot or move through walls, duplication bugs used to get "infinite" items, etc. (There are bugs that are useful without being considered cheating, e.g. redstone implementation bugs that allows making BUDs, but even those should be solved by implementing a proper BUD item and fixing the implementation. But that is worthy of its own long story in forums instead of here.)

If one wants to cheat and find the center rooms easily (nothing wrong in that, as long as you do it in a single-player game, or if accepted together in multi-player), a mapping program will do the trick. Then one doesn't even have to actually look for those somewhat difficult to see air bubbles (and impossible to see when they are not below ocean).

And we're not out of luck. Considering the history of bug fixing for Minecraft, it was actually pretty darn lucky that this bug was (eventually) fixed. Now, if we could get a few hundred more cases of being as lucky...

Comment by TSL [ 17/Nov/14 ]

I wonder if there's a way to "un-resolve" this, as it's a nice marker. But, like glass towers marking the strongholds in ancient versions (like pre-alpha or indev, I think)... I think we're out of luck.

Comment by a [ 17/Nov/14 ]

Wow! You're the first person to ever realize this!

Comment by TSL [ 17/Nov/14 ]

Damn, I'm sorry to see this "bug" go, these are actually USEFUL — they mark mineshaft central chunks! Seriously... dig straight down from one of these air bubbles, and you'll find a mineshaft. Every time.

Comment by not telling u (Inactive) [ 06/Nov/14 ]

Still in 1.8.1-pre3.

Comment by Paul Prastka [ 13/Oct/14 ]

still present in 1.8

reason/fix has been given by Markku already...

Comment by Jens Falk [ 25/Aug/14 ]

Still present in 1.8-pre2
Seed: 35267400
Coords: 1862, 64, 328

Comment by a [ 07/Aug/14 ]

14w33a.

Comment by a [ 30/Jul/14 ]

Found some in 14w31a.

Comment by a [ 23/Jul/14 ]

and for 14w30b

Comment by Marcono1234 [ 16/Jul/14 ]

Confirmed for 14w28b

Comment by Dek [ 18/Jun/14 ]

I have the feeling the amount of air pockets has increased since the snapshot 14w25a, I have never seen any and now they appear pretty regularily. Might have something to do with the spawning of water dungeons.

Comment by Mustek [ 18/Jun/14 ]

Confirmed for 14w25a

Comment by Marcono1234 [ 24/May/14 ]

Confirmed for 14w21b

Comment by a [ 24/Apr/14 ]

14w17a too
and 14w18a

Comment by Jaqi Hegland [ 16/Apr/14 ]

still here in 14w11b

Comment by Markku [ 30/Mar/14 ]

The materials (e.g. gravel) have nothing to do with it. The reason has been figured out and an example code fix given more than a year ago (buried in the older comments). All we're now doing are confirming occasionally that Mojang still hasn't fixed the issue and providing new seeds/examples (as world generation changes and old examples become less useful).

(Those gravel/sand ceiling tunnels do, or at least did, have their own water issues, but its not this one.)

Comment by user-7535d (Inactive) [ 30/Mar/14 ]

I just found this in my new survival world on 1.7.5. (Seed: 1051732723, South/West of spawn island.) There is gravel at the seabed with mineshaft tunnels right below that.
When I was exploring the mineshaft I found that the roof was mostly gravel so maybe that has something to do with it.

Images:
http://imgur.com/ELRAOtF
http://imgur.com/myEC1o6
http://imgur.com/w0DFXgf
http://imgur.com/hnULgJy
http://imgur.com/HKnVkDj

Comment by Itouch2 [ 20/Feb/14 ]

Still in 08a (see MC-49299)

Comment by Edward Verschraegen [ 26/Jan/14 ]

Confirmed

Comment by CharlesC [ 23/Jan/14 ]

Still in 14w04a :
seed 1082326624105029725
positions: X=34, y=58 z=-2356
X=-275 Y=74 Z=-2357

Comment by J. William Ashton [ 13/Jan/14 ]

Still present in 1.7.4

Comment by a [ 26/Nov/13 ]

More screenshots for good measure.

Comment by Vincent Vanlaer [ 23/Nov/13 ]

I got the same problem, but not in an ocean

Comment by [Mod] redstonehelper [ 29/Oct/13 ]

@Markku Oh, damn, I forgot to check older, hidden comments. Sorry!

Comment by Markku [ 28/Oct/13 ]

@moderators could you perhaps add a link to the earlier fix-comment to the issue description, so others can notice it.

@redstonehelper
If you take a look at the earlier comments, you'll find the same results and the fix already there. Been there since 19 Jan.

Comment by [Mod] redstonehelper [ 28/Oct/13 ]

Someone just posted this on reddit: http://www.reddit.com/r/Minecraft/comments/1pc2jn/how_to_easily_find_mineshaft_in_deep_oceans_using/

Apparently these bubbles are created when mineshaft dirt rooms are generated. That should probably help in fixing the bug.

Comment by kasamikona [ 26/Oct/13 ]

Comment by Billy Chambers [ 25/Oct/13 ]

Evidence that it is indeed in 1.7.2
http://imgur.com/7aOciwe

Comment by Aerotactics [ 23/Oct/13 ]

I've seen them in 1.7.1

Comment by Sciger [ 12/Oct/13 ]

Confirmed in 13w41b. Just encountered several.

Comment by Jacob Glitski [ 13/Sep/13 ]

Confirmed in 13w37b

Comment by Kazuki Fujita [ 07/Sep/13 ]

Confirmed in the 13w36b

Comment by Ville Selkämaa [ 05/Sep/13 ]

Confirmed in the 13w36a

Comment by Markku [ 10/Jul/13 ]

Still there in 1.6.2

Comment by [Mod] Ezekiel (ezfe) [ 10/Jul/13 ]

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Kevin Gut [ 01/Jul/13 ]

updated this issue, still present in 1.6.1

Comment by Kevin Gut [ 17/Mar/13 ]

Updated this issue; Still present in 1.5

Comment by Markku [ 28/Feb/13 ]

Affects 13w09b.

Comment by Markku [ 19/Jan/13 ]

Found the bug, and fixed it.

There is a piece of code that offsets a generated structure (including its substructures) in vertical direction, e.g. moving mines downwards. Unfortunately, bad design raises its ugly head again; that method doing the moving does it completely by itself, instead of requesting the structure parts to do it to themselves.

In this particular case, mine rooms have additional internal data that would also need to be shifted. As they are not shifted, they remain at the nominal height (50-some), and end up being carved somewhere above, in this visible case from the water of oceans. (There are probably many such empty volumes inside ground, too).

Fix
These changes will move the air boxes down into the mineshaft rooms where they belong, thus correcting the water (this issue), and also actually doing what they were supposed to do - making sure the main corridors have clear connections (instead of having e.g. their tops blocked by stone).

StructureStart
protected void markAvailableHeight(World world, Random random, int offsetDown) {
    ...
    int vertical = structureHeight - this.boundingBox.maxY;
    //this.boundingBox.offset(0, bottom, 0); // BAD
    this.offset(0, vertical, 0);  // FIX FOR FUTURE (not this particular issue)

    Iterator var7 = this.components.iterator();
    while (var7.hasNext()) {
        StructureComponent var8 = (StructureComponent) var7.next();
        //var8.getBoundingBox().offset(0, bottom, 0); // BAD
        var8.offset(0, vertical, 0);  // FIX
    }
}

/**
 * <p>Default implementation, let more complex start components override this.</p>
 */
public void offset(int x, int y, int z) {
    this.boundingBox.offset(x, y, z);
}
StructureComponent
/**
 * <p>Default implementation, let more complex components override this.</p>
 */
public void offset(int x, int y, int z) {
    this.boundingBox.offset(x, y, z);
}
ComponentMineShaftRoom
public void offset(int x, int y, int z) {
    this.boundingBox.offset(x, y, z);
    Iterator linkedComponentsIterator = this.boundingBoxesLinkedToTheRoom.iterator();
    while (linkedComponentsIterator.hasNext()) {
        StructureBoundingBox bb = (StructureBoundingBox) linkedComponentsIterator.next();
        bb.offset(x, y, z);
    }
}

Above changes are tested on top of 1.4.7. Clear waters, nice open passages from the start room.

NOTE: there may still be other effects causing empty spaces in water, but at least on couple maps I checked quickly, this reason is either the majority or only reason.

Comment by Nicholas George [ 18/Jan/13 ]

I had this happen while going to the end of the World of Minecraft! In the Water, I saw these!

Comment by Markku [ 18/Jan/13 ]

This is a bug in creation of mineshaft "rooms" or the connections of corridors to a room. Digging deeper... I mean, analysing the source code.

Comment by Kevin Gut [ 11/Jan/13 ]

Still appears in 1.4.7, same seed, same location

Comment by Kevin Gut [ 14/Nov/12 ]

Still appears on 1.4.4 (same Location and seed can be used).
Case Updated to reflect new version
Added Coords and Seed in Description
Changed Gamemode to "none" since it appears on all Modes.

Comment by Chalmes (Jon) [ 29/Oct/12 ]

Confirmed here with that seed/coordinates.

Comment by Kevin Gut [ 29/Oct/12 ]

You can find these very close to spawn.
Seed: 292202
Coords: -472;54;69

Given Location is the center of four of these Air Pockets
Bug is reproduceable: same seed, same location, same problem.

note: My Client is pure Vanilla

Comment by Chalmes (Jon) [ 28/Oct/12 ]

Can confirm this, though don't have a seed handy to show it. Can you supply seed and coordinates of above screenshot Kevin?

Generated at Sun Jan 12 11:52:48 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.