Sugar cane can be placed underwater
The Bug:
Sugar cane can be placed underwater.
If there is water adjacent to and below the desired location of placement, sugar cane can be placed. This of course results in sugar cane being allowed to be placed underwater.
Steps to Reproduce:
- Obtain some sugar cane and locate an open body of water.
- Attempt to place sugar cane on any block underwater that has water adjacent to and below it.
- Take note as to whether or not sugar cane can be placed underwater.
Observed Behavior:
Sugar cane can be placed underwater.
Expected Behavior:
Sugar cane would not be able to be placed underwater.
Code Analysis:
Code analysis by [Mod] Avoma can be found in this comment.
2012-10-27, 07:20 PM
2025-01-26, 08:03 PM
2022-12-22, 12:37 PM
63
31
mojang_internal_1, placement-and-support, sugar_cane, water, waterlogged-blocks
Minecraft 1.4.2 - 1.19.3
Minecraft 1.4.2, 1.16.1, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 2, 1.17, 1.17.1 Pre-release 1, 1.17.1 Release Candidate 1, 1.17.1 Release Candidate 2, 1.17.1, 21w37a, 21w39a, 21w41a, 21w42a, 1.18 Pre-release 2, 1.18 Pre-release 5, 1.18 Pre-release 6, 1.18 Pre-release 7, 1.18, 1.18.1, 22w06a, 1.18.2, 22w14a, 22w16b, 1.19 Pre-release 1, 1.19 Pre-release 3, 1.19, 1.19.1 Release Candidate 1, 1.19.1 Pre-release 5, 1.19.1, 1.19.2, 22w42a, 1.19.3 Release Candidate 3, 1.19.3
-