[GH-ISSUE #5987] Flower pots remove snow layers when placed on top #1916

Closed
opened 2026-11-02 15:50:36 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @byMehd on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5987

When placing a flower pot on top of a snow layer, for example in a snowy biome, the snow layer disappears in Horizon Rust.

In vanilla Minecraft Java Edition, placing a flower pot on a snow layer does not remove the snow layer. Both remain in place.

Originally created by @byMehd on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5987 When placing a flower pot on top of a snow layer, for example in a snowy biome, the snow layer disappears in Horizon Rust. In vanilla Minecraft Java Edition, placing a flower pot on a snow layer does not remove the snow layer. Both remain in place.
Author
Owner

@kira-horizon[bot] commented on GitHub (Nov 1, 2026):

Claimed by United on Discord (GitHub: Sticky-Bug), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #5987).

<!-- gh-comment-id:6559173494 --> @kira-horizon[bot] commented on GitHub (Nov 1, 2026): Claimed by `United` on Discord (GitHub: `Sticky-Bug`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #5987). <!-- kira:work -->
Author
Owner

@Sticky-Bug commented on GitHub (Nov 1, 2026):

When placing a flower pot on top of a snow layer, for example in a snowy biome, the snow layer disappears in Horizon Rust.

In vanilla Minecraft Java Edition, placing a flower pot on a snow layer does not remove the snow layer. Both remain in place.
In vanilla Minecraft Java Edition 26.3 (net.minecraft.world.level.block.SnowLayerBlock.canBeReplaced), 1-layer snow returns true when tested against any non-snow item:

protected boolean canBeReplaced(BlockState state, BlockPlaceContext context) {
    int i = state.getValue(LAYERS);
    if (context.getItemInHand().is(this.asItem()) && i < 8) {
        return context.replacingClickedOnBlock() ? context.getClickedFace() == Direction.UP : true;
    } else {
        return i == 1;
    }
}

When placing a flower pot onto snow[layers=1], vanilla's BlockPlaceContext resolves to the clicked position and BlockItem.place replaces the snow layer (VanillaBlockPlacementOracle outputs place 0,1,0 minecraft:flower_pot). For layers >= 2, canBeReplaced returns false and the pot is placed above it at (0, 2, 0).

Horizon Rust's implementation in crates/horizon-world/src/level/place.rs already matches this behavior exactly, and passes tools/test_level_place_parity.py against the native oracle. Because this matches vanilla Java Edition 26.3 parity, releasing the claim.

<!-- gh-comment-id:6560325141 --> @Sticky-Bug commented on GitHub (Nov 1, 2026): > When placing a flower pot on top of a snow layer, for example in a snowy biome, the snow layer disappears in Horizon Rust. > > In vanilla Minecraft Java Edition, placing a flower pot on a snow layer does not remove the snow layer. Both remain in place. In vanilla Minecraft Java Edition 26.3 (`net.minecraft.world.level.block.SnowLayerBlock.canBeReplaced`), 1-layer snow returns `true` when tested against any non-snow item: ```java protected boolean canBeReplaced(BlockState state, BlockPlaceContext context) { int i = state.getValue(LAYERS); if (context.getItemInHand().is(this.asItem()) && i < 8) { return context.replacingClickedOnBlock() ? context.getClickedFace() == Direction.UP : true; } else { return i == 1; } } ``` When placing a flower pot onto `snow[layers=1]`, vanilla's `BlockPlaceContext` resolves to the clicked position and `BlockItem.place` replaces the snow layer (`VanillaBlockPlacementOracle` outputs `place 0,1,0 minecraft:flower_pot`). For `layers >= 2`, `canBeReplaced` returns `false` and the pot is placed above it at `(0, 2, 0)`. Horizon Rust's implementation in `crates/horizon-world/src/level/place.rs` already matches this behavior exactly, and passes `tools/test_level_place_parity.py` against the native oracle. Because this matches vanilla Java Edition 26.3 parity, releasing the claim.
Author
Owner

@Sticky-Bug commented on GitHub (Nov 1, 2026):

Working As Intended

<!-- gh-comment-id:6560335815 --> @Sticky-Bug commented on GitHub (Nov 1, 2026): Working As Intended
Author
Owner

@kira-horizon[bot] commented on GitHub (Nov 1, 2026):

Unclaimed by United on Discord: this issue is free to take.

<!-- gh-comment-id:6560337653 --> @kira-horizon[bot] commented on GitHub (Nov 1, 2026): Unclaimed by `United` on Discord: this issue is free to take. <!-- kira:work -->
Author
Owner

@ludovic111 commented on GitHub (Nov 1, 2026):

🤖 Agent: Closing as vanilla behaviour, as United noted in #contributors: in vanilla, SnowLayerBlock.canBeReplaced returns true for a single snow layer (layers == 1), so placing any block, a flower pot included, on one layer replaces it. With 2 or more layers it isn't replaceable, and the pot goes on top. If you saw a thicker snow layer disappear, reopen with the layer count (F3 shows layers).

<!-- gh-comment-id:6560567053 --> @ludovic111 commented on GitHub (Nov 1, 2026): 🤖 Agent: Closing as vanilla behaviour, as United noted in #contributors: in vanilla, `SnowLayerBlock.canBeReplaced` returns true for a single snow layer (`layers == 1`), so placing any block, a flower pot included, on one layer replaces it. With 2 or more layers it isn't replaceable, and the pot goes on top. If you saw a thicker snow layer disappear, reopen with the layer count (F3 shows `layers`).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1916
No description provided.