mojira.dev
MC-113899

Leaves of Swamp world generation trees replace all non-full blocks

The bug

Leaves of swamp world generation trees replace all non-full blocks whereas trees place by the world generation in other biome or normally grown trees only replace certain blocks like leaves and vines.

How to reproduce

Seed: 2154973
/tp -13241 69 -3493 -90 20

→ ❌ Some fences are missing and instead replaced by leaves

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.world.gen.feature.WorldGenSwamp.generate(World, Random, BlockPos) starts testing in a 3 block radius for free space starting at position.getY() + 1 + i - 2 but starts placing the leaves at position.getY() - 3 + i.

Attachments

Comments 4

Taiga should be fine, therefor I removed that part again.

Cannot reproduce for 1.13.1, most likely fixed.

I searched for villages in swamps for around 30 minuts, could not found a single village in a swamp which had leaves around fences.

(ik, one of the screenshots is not in a swamp but thats the best one I found while looking)

Not updated for most recent versions. If the bug persist, please reopen the ticket.

This seems to be fixed. In 19w45b SwampTreeFeature (Mojang name) checks each position before placing a block.

marcono1234

migrated

Confirmed

World generation

block, leaves, swamp, tree, tree-generation, world-generation

Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2, Minecraft 18w02a

19w45b

Retrieved