mojira.dev
MC-203712

Amethyst Geodes cause floating water/lava to generate when intersecting water/lava caves/pools

The generation of Amethyst Geodes seems to halt the flowing and updating of liquids, resulting in liquids such as the lava attached halting in midair. It occurs with both lava and water, but can be odd in some instances, as in some cases liquids seem to behave naturally while in others only certain regions of generation seem to mess with it. If i had to guess, it has something to do with the external region of the generation on the Geodes with opened sides, as this is where problems seem to most often occur. If I had to guess, it would probably be a few air blocks placed in the "open end" of the geode's structure file, causing the water/lava stream to be "cut off" and hang in the air.

Example location (from MC-204085)

Seed: 505307592494160803
Location: -453 10 -487

Related issues

MC-203654 Water source blocks stay in place even if an amethyst geode generates under it MC-203885 Lava floating near amethyst geode in new snapshot MC-203890 Amethyst geodes that generate in ocean biomes are not filled with water. MC-203932 Generation bug when Geode spawns near ocean MC-204051 floating lava amethyst geodes MC-204085 Lava does not flood geodes MC-204390 Floating lava generates due to amethyst geodes MC-204448 What!? It has a floating water MC-204482 Non-Flowing Water in New Amethyst Geodes MC-204564 Water does not fall in Amethyst Caves! MC-205474 I found a bug in an Amethyst water cave MC-206559 Amethyst geodes create floating lava MC-206621 Lava generating next to geodes is floating. MC-207462 Sea terrain and amethyst cave MC-207497 Water does not properly fall near amethyst cave MC-207852 Bugs with water and amethyst geodes MC-208433 Naturally generated water source blocks do not flow into amethyst geodes MC-215181 Strange water generation with geodes MC-215899 Geodes Generating Inside Lava Pools Don't Replace or Update the Lava MC-215916 Floating Water near Amethyst Geodes MC-217184 Water and lava can appear randomly anywhere (in caves) MC-218939 water spawns encased in geode MC-218959 Amethyst Lava/Water MC-219061 Water acting weird near geodes [Snapshot 21w10a] MC-219193 Amethyst geodes can cause floating lava MC-223449 water floats in minecraft it's amazing the seed: -3747151517081949330 coordinates : -9.110 53 154.583 MC-224064 amethyst geodes underwater could contain water even if no openings towards ocean. MC-224317 Flying lava lake MC-225550 Amethyst geodes can cause floating water to occur.

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media]
galaxy_2alex

Duplicate of (modified) MC-32813

violine1101

Reopened, geodes aren't part of the regular cave carver as far as I can tell.

SuperCoder79

Hello, I've written code to fix this bug and have attached it below. The way I've solved this is to check for water when generating the geode, and flooding it (replacing the air with water) if it's touching water, as it's more than likely the geode is in the ocean or touching a flooded cave. For lava, if the geode finds lava when generating, the geode will fill until the max lava level. To handle this, the new code stores the air positions in a list and defers placement until the geode is fully generated.

 

Here's the code, in official mappings. The parts I've changed have a "// change:" comment before them.

https://gist.github.com/SuperCoder7979/c06a216ab635790832db954f9754a3aa

Licensed under CC0.

 

Here's a screenshot taken with the seed -3902724624318935087 at 312 54 323, with the code working:

[media]

As you can see, the geode generates flooded 🙂

migrated

Confirmed for 20w46a.

migrated

Added more images

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w13a.

Avoma

Can confirm in 21w17a.

migrated

coschevi

Confirmed

Important

World generation

20w45a, 20w46a, 20w48a, 20w49a, 20w51a, ..., 21w10a, 21w11a, 21w13a, 21w16a, 21w17a

21w20a

Retrieved