Steps to reproduce:
Generate a single biome (jungle) world with the seed "4577860557964729658".
Execute the following command: "/execute in minecraft:overworld run tp @s 191.99 65.50 -316.60 -616.05 -4.35".
❌ The upper half of a tree is floating over a ruined portal.
[media]
This is different from MC-204633 because there is no cave air involved, and from MC-273441 because ruined portals are not underground structures (at least in most cases, including this one).
Trees are being cut off at different heights, so anything between one log and most of the tree might be missing.
Instructions for 25w02a and 25w03a (outdated):
Seed: "-1311658802960653969"
Position: /execute in minecraft:overworld run tp @s 96879.56 73.43 97591.35 -515.85 2.85
Note: The tree that generates in this location is cut off horizontally by the ruined portal, but no parts are floating anymore.
Seed: "1296682046443418838"
Position: "/execute in minecraft:overworld run tp @s -362.40 69.64 275.89 82.20 11.25"
Seed: "-1311658802960653969"
Position: "/execute in minecraft:overworld run tp @s -4086.76 82.00 9179.84 1302.00 -0.90"
Attachments
Comments


I have reproduced your steps in version 25w03a, no floating tree has spawned.
[media]
I have found a new instance; many more might exist.

Does this happen anywhere on 1.21.4 as well, or is it only in the later snapshots?

I visited over 30 ruined portals in jungle and sparse jungle single biome worlds and I did not encounter an instance of this bug. I once saw leaves that got cut off, but no floating trunks. It seems unlikely that this bug was already in 1.21.4 as I required far less than 30 ruined portals to find instances in the snapshots.

I found a new instance in 1.21.5-pre2 where the tree generates inside the ruined portal, replacing parts of it.
Seed: 3348285484163178394
Position: /execute in minecraft:overworld run tp @s 288.87 71.57 164.53 -886.19 5.55

This also applies to huge mushrooms.
Can confirm, relates to MCPE-87995