mojira.dev
MC-140270

Spawning a structure with waterloggable blocks next to or inside a water source will waterlog the structure

The bug

When loading a structure containing waterloggable blocks (which are not waterlogged) next to or inside a water source, the blocks inside the structure become waterlogged.

This is related to MC-130584, but not the same issue since MC-130584 is about water sources inside the structure spreading; while this report is about external water sources not being replaced and spreading inside the structure.

Note: In some cases this behavior might be desired, e.g. for shipwrecks. Maybe the structure file should support specifying whether a block removes water or becomes waterlogged onces loaded next to / inside water.

Linked issues

Attachments

Comments 11

Reopened this report since MC-130584 has been changed to be only about water sources inside structures spreading.

Confirmed for 20w51a.

TelepathicGrunt

This is the same issue that plagues MC-169698. The other report shows it happens with Igloos during world generation

MC-169698

Confirmed for 1.16.5.

Ideally structure blocks would have a setting to toggle this behavior, and this setting would be true for eg. shipwrecks and false for most other structures. This would also fix MC-169698.

1 more comments

It won't, only if the water was present before the loading, which is basically intended so structures can be spawned in water, and be submerged.

This is a major oversight if there really is no way of preventing it from happening. I created a structure with redstone in it, but there is one stair block that gets waterlogged, and the water wipes out all the redstone.

@Marcono1234 .... this ticket is closed as "works as intended", however something seems to be amiss - the problem is neither resolved, nor capable of being a valid game expectation?

 

From what I can tell, there are 2 possible scenarios here ...

INCORRECT BEHAVIOUR ❌
A structure is saved with a block that can be waterlogged, but that block is NOT waterlogged at save time (i.e. it is saved with the waterlogged block state as false) .... then during world generation, the structure is generated in water, and the block in question is in the middle of the structure, nowhere near other water source blocks. But because the structure was generated in water, the waterlogged block state of the respective block is now set to true.

Examples of this incorrect behaviour can be clearly seen in a valid and opened ticket here:

MC-169698

 

CORRECT BEHAVIOUR ✔

A structure is saved with a block that can be waterlogged, but that block is NOT waterlogged at save time (i.e. it is saved with the waterlogged block state as false) .... then during world generation, the structure is generated in water, and the block in question is in at the EDGE of the structure, between water source blocks. Thus, post-generation, the waterlogged block state becomes true, despite the save state being false. No problem with this behaviour.

 

Please can we get assistance on this ticket to determine it's validity and have it reopened. – Affects 1.19.3 .... 
Seed: -9066070196958847497
Coords: /execute in minecraft:overworld run tp @s -13549.54 60.67 -8508.50 236.25 31.80

This mess up the redstone build. I use sign to block water, and after loading structure back in the water spread everywhere.

Simple solution, clear surrounding water before placing the structure.

This has been resolved as intended for over a year, if you want to discuss this, go to reddit, and if you want to suggest a change to the design, go to the feedback site.

Elijah L

(Unassigned)

Community Consensus

Minecraft 18w48a, Minecraft 19w09a, 1.15.1, 1.16.3, 1.16.4, 20w51a, 21w15a

Retrieved