[GH-ISSUE #4374] Bug: Sugar cane can be placed completely submerged underwater #1301

Closed
opened 2026-11-02 15:45:51 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @snowystormss on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4374

Horizon Version: nightly-2026-10-30-ba6344a (Linux x86_64, Vulkan)
Game Mode: Creative

Description

In Creative mode, the player is able to place sugar cane blocks directly onto underwater dirt/sand on the seabed, replacing the water block and rendering fully submerged.

Steps to Reproduce

  1. Start a world in Creative mode.
  2. Dive completely underwater into an ocean or river.
  3. Aim at a dirt, sand, or gravel block on the sea floor.
  4. Right-click with sugar cane to place it.
  5. Notice the sugar cane successfully places underwater without popping off.

Expected Behavior (Vanilla Parity)

Sugar cane does not implement SimpleWaterloggedBlock. In vanilla Java Edition, attempting to place sugar cane inside water blocks fails, as sugar cane cannot be submerged and requires adjacent water at the soil's Y-level, not inside a fluid block.

Actual Behavior

Sugar cane is successfully placed submerged underwater.

Media

Image
Originally created by @snowystormss on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4374 **Horizon Version:** `nightly-2026-10-30-ba6344a` (Linux x86_64, Vulkan) **Game Mode:** Creative ### Description In Creative mode, the player is able to place sugar cane blocks directly onto underwater dirt/sand on the seabed, replacing the water block and rendering fully submerged. ### Steps to Reproduce 1. Start a world in Creative mode. 2. Dive completely underwater into an ocean or river. 3. Aim at a dirt, sand, or gravel block on the sea floor. 4. Right-click with sugar cane to place it. 5. Notice the sugar cane successfully places underwater without popping off. ### Expected Behavior (Vanilla Parity) Sugar cane does not implement `SimpleWaterloggedBlock`. In vanilla Java Edition, attempting to place sugar cane inside water blocks fails, as sugar cane cannot be submerged and requires adjacent water at the soil's Y-level, not inside a fluid block. ### Actual Behavior Sugar cane is successfully placed submerged underwater. ### Media * <img width="1908" height="835" alt="Image" src="https://github.com/user-attachments/assets/f7d1e1dc-a9ea-4ef7-9dd2-4cb82b69f70f" /> *
Author
Owner

@SlaVKsVolks commented on GitHub (Oct 30, 2026):

/claim

<!-- gh-comment-id:6523897734 --> @SlaVKsVolks commented on GitHub (Oct 30, 2026): /claim
Author
Owner

@SlaVKsVolks commented on GitHub (Oct 30, 2026):

/unclaim

<!-- gh-comment-id:6524138217 --> @SlaVKsVolks commented on GitHub (Oct 30, 2026): /unclaim
Author
Owner

@ASOwnerYT commented on GitHub (Oct 30, 2026):

🤖 Agent: (asowneryt's AI agent, Claude) This matches vanilla 26.3, so it isn't a bug.

SugarCaneBlock.canSurvive only checks the block below the cane: it must be in #supports_sugar_cane (or be sugar cane), and one of its four horizontal neighbours must have a fluid in #supports_sugar_cane_adjacently (water) or be a block in the block tag of the same name (frosted ice). It never looks at the fluid at the cane's own position, and water is replaceable, so vanilla Java lets you place sugar cane fully underwater whenever the soil block touches water, for example on a ledge or next to a dip in the seabed.

Checked on main (d2186eb9a), in both single-player modes (server thread and --in-frame):

  • sand floor under 3 blocks of water, surrounded by sand/stone at soil level: placement is refused, and no ghost block shows on the client;
  • same floor with one water block beside the sand: the cane is placed, as in vanilla.

So the cane in the screenshot was most likely on soil with water next to it at that level. If you can reproduce it on soil with no water at the soil's level, please post the coordinates or the world.

<!-- gh-comment-id:6524533740 --> @ASOwnerYT commented on GitHub (Oct 30, 2026): 🤖 Agent: (asowneryt's AI agent, Claude) This matches vanilla 26.3, so it isn't a bug. `SugarCaneBlock.canSurvive` only checks the block below the cane: it must be in `#supports_sugar_cane` (or be sugar cane), and one of *its* four horizontal neighbours must have a fluid in `#supports_sugar_cane_adjacently` (water) or be a block in the block tag of the same name (frosted ice). It never looks at the fluid at the cane's own position, and water is replaceable, so vanilla Java lets you place sugar cane fully underwater whenever the soil block touches water, for example on a ledge or next to a dip in the seabed. Checked on main (d2186eb9a), in both single-player modes (server thread and `--in-frame`): - sand floor under 3 blocks of water, surrounded by sand/stone at soil level: placement is refused, and no ghost block shows on the client; - same floor with one water block beside the sand: the cane is placed, as in vanilla. So the cane in the screenshot was most likely on soil with water next to it at that level. If you can reproduce it on soil with no water at the soil's level, please post the coordinates or the world.
Author
Owner

@levzzz5154 commented on GitHub (Oct 30, 2026):

🤖 Agent: Triage by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. This matches vanilla 26.3: SugarCaneBlock.canSurvive only checks the soil block and the water beside it, never the fluid at the cane's own position, so Java also lets you place sugar cane under water when the soil touches water. Another agent's check on main (see the comment above) agrees. Reopen with coordinates or a world if it happens on soil with no water beside it.

<!-- gh-comment-id:6529351279 --> @levzzz5154 commented on GitHub (Oct 30, 2026): 🤖 Agent: Triage by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. This matches vanilla 26.3: SugarCaneBlock.canSurvive only checks the soil block and the water beside it, never the fluid at the cane's own position, so Java also lets you place sugar cane under water when the soil touches water. Another agent's check on main (see the comment above) agrees. Reopen with coordinates or a world if it happens on soil with no water beside it.
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#1301
No description provided.