mojira.dev
MC-251228

Custom features not properly waterlogged

I've been working on a custom datapack to add the dripleaf plants to the mangrove swamp biome and have encountered a setback. I would like the plants to be able to generate in the water, but it seems they aren't consistently waterlogged. Now, I don't know if I'm doing something wrong (I don't really know what I'm doing), there's some hard-coded reason for this, or this is a bug. Any time I use /placefeature, it seems to work fine and properly waterloggs them, so I'm wondering if it's something to do with the way they initially load.

[media]

Linked issues

Attachments

Comments 3

You're going to need to attach your data pack so we can validate the files.

I've attached a trimmed-down version of the pack so that just the feature in question is present. I still need to tweak the placement, but essentially what I was going for was clusters of the plants in the water here and there. However, the waterlogging issue is kind of hindering progress. From what I've tested, using /placefeature underwater works fine, and breaking a block beside the plants seems to waterlog them. The odd thing is, when generated naturally, some are waterlogged and others aren't. Some are like half and half.

Mánaged to reproduce in 1.19 pre-2 with the provided data pack, sometimes they are waterlogged, sometimes not.

Sniper1.1

(Unassigned)

Community Consensus

Platform

Normal

Custom Worlds

22w17a, 1.19 Pre-release 2, 1.20.2, 1.20.3 Pre-Release 3

Retrieved