| Type: | Bug | ||
| Reporter: | [Mod] markderickson | Assignee: | Unassigned |
| Resolution: | Works As Intended | Votes: | 63 |
| Labels: | mojang_internal_1, placement-and-support, sugar_cane, water, waterlogged-blocks | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Category: |
Block states
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mojang Priority: | Normal | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
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:
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 Avoma can be found in this comment. |
| Comments |
| Comment by Void_21k [ 08/Jun/24 ] |
|
Is also present in 1.20.6 version |
| Comment by SergZabiyaka [ 04/Nov/23 ] |
|
Сan confirm in 23w44a. |
| Comment by [Mojang] Moesh [ 22/Dec/22 ] |
|
As this has been long-standing behavior, we have decided that if we fix this, it will be as part of a design change instead of as a bug fix. If we address this issue, it will be on a different work track. |
| Comment by [Mod] Avoma [ 06/Dec/22 ] |
|
jacklollz2, 1.19.3 Release Candidate 1 is an archived affect version and cannot be added to this report. We can only update reports with the latest snapshot or release of the game as of the current moment in time. As of the present moment, 1.19.2 and 1.19.3 Release Candidate 3 can only be added. I've just tested this problem now in 1.19.3-rc3 and the bug is still present so I've added this as an affected version. Just thought I'd let you know. |
| Comment by Josh Birk [ 06/Dec/22 ] |
|
In 1.19.3 Release Candidate 1 |
| Comment by pulpetti [ 05/Aug/22 ] |
|
In 1.19.2 |
| Comment by [Mod] Avoma [ 28/Jul/22 ] |
|
Can confirm in 1.19.1. |
| Comment by [Mod] Avoma [ 08/Jun/22 ] |
|
Can confirm in 1.19. |
| Comment by Drageon DB (Dragonborn) [ 29/May/22 ] |
|
Affect 1.19 pre 3 |
| Comment by [Mod] Avoma [ 24/Apr/22 ] |
|
Can confirm in 1.18.2 and 22w16b. Here's a code analysis of this issue. Code Analysis:The following is based on a decompiled version of Minecraft 1.18.2 using MCP-Reborn. net.minecraft.world.level.block.SugarCaneBlock.java public class SugarCaneBlock extends Block { ... public boolean canSurvive(BlockState $bs, LevelReader $lr, BlockPos $bp) { BlockState blockstate = $lr.getBlockState($bp.below()); if (blockstate.is(this)) { return true; } else { if (blockstate.is(BlockTags.DIRT) || blockstate.is(Blocks.SAND) || blockstate.is(Blocks.RED_SAND)) { BlockPos blockpos = $bp.below(); for(Direction direction : Direction.Plane.HORIZONTAL) { BlockState blockstate1 = $lr.getBlockState(blockpos.relative(direction)); FluidState fluidstate = $lr.getFluidState(blockpos.relative(direction)); if (fluidstate.is(FluidTags.WATER) || blockstate1.is(Blocks.FROSTED_ICE)) { return true; } } } return false; } } ... If we look at the above class, we can see that the code only checks to see whether or not the block adjacent to and below the desired placing location is water or frosted ice, before being able to place down some sugar cane. This is evident through the following line of code:
if (fluidstate.is(FluidTags.WATER) || blockstate1.is(Blocks.FROSTED_ICE))
Since no checks are carried out to see if the sugar cane is underwater or in lava before being placed, this results in this problem occurring. |
| Comment by [Mod] Avoma [ 02/Mar/22 ] |
|
Can confirm in 1.18.2. |
| Comment by [Mod] Avoma [ 14/Dec/21 ] |
|
Can confirm in 1.18.1. |
| Comment by Cristininjacraft [ 22/Nov/21 ] |
|
Can confirm on Minecraft 1.18 Pre Release 6 |
| Comment by jia [ 17/Oct/21 ] |
|
Let me add. this works with lava (if there is water in an adjacent block that is one lower that the place you are trying to place the sugar cane on.
|
| Comment by [Mod] ampolive [ 05/Jul/21 ] |
|
Can confirm in 1.17.1 Release Candidate 2. |
| Comment by [Mod] ampolive [ 04/Jul/21 ] |
|
Can confirm in 1.17.1 Release Candidate 1. |
| Comment by [Mod] ampolive [ 29/Jun/21 ] |
|
Can confirm in 1.17.1 Pre-release 2. |
| Comment by Kaiserschmarren [ 17/Jun/21 ] |
|
still possible 1.17 , when would it be fixed? But maybe its an new feature to make tunnels out of cane lol? |
| Comment by Domingo Diaz [ 08/Jun/21 ] |
| Comment by [Mod] Avoma [ 30/Apr/21 ] |
|
Can confirm in 21w17a. |
| Comment by Miguel Flores [ 05/Apr/21 ] |
|
21w13a the error continues to happen in the latest version |
| Comment by Miguel Flores [ 05/Apr/21 ] |
|
Can confirm in 1.16.5 |
| Comment by [Mod] Avoma [ 25/Feb/21 ] |
|
Can confirm in 21w08b. |
| Comment by [Mod] Avoma [ 18/Feb/21 ] |
|
Can confirm in 21w07a. |
| Comment by [Mod] Avoma [ 04/Feb/21 ] |
|
Can confirm in 21w05b. |
| Comment by [Mod] Avoma [ 03/Feb/21 ] |
|
Can confirm in 21w05a. |
| Comment by [Mod] Avoma [ 22/Jan/21 ] |
|
Can confirm in 21w03a. |
| Comment by [Mod] Avoma [ 02/Dec/20 ] |
|
Can confirm in 20w49a. |
| Comment by [Mod] Avoma [ 25/Nov/20 ] |
|
Can confirm in 20w48a. |
| Comment by [Mod] markderickson [ 11/Nov/20 ] |
|
Hello ap70s0s! There's actually no need to confirm something in a version that is not the latest version or the latest snapshot. Adding those versions to reports is something that is not helpful to Mojang in fixing the bug, and adding outdated versions is not actually possible to do without special permissions on the tracker as far as I'm aware. |
| Comment by Pawit [ 11/Nov/20 ] |
|
confirmed for 1.15.2 |
| Comment by SunCat [ 07/Sep/20 ] |
|
there should be no difference. Make sure you put the sugar cane on allowed blocks (dirt, grass, sand) |
| Comment by Mateus Pereira Milbradt [ 31/Aug/20 ] |
|
Which is the difference in put a sugar cane in the water on a superflat world and a normal world?? |
| Comment by Mateus Pereira Milbradt [ 31/Aug/20 ] |
|
No, I can place yet |
| Comment by Mateus Pereira Milbradt [ 31/Aug/20 ] |
|
This was fixed yet. I tried to make this but nothing happened |
| Comment by Connor Steppie [ 27/Jul/20 ] |
|
There is no such thing as an intentional bug by definition. |
| Comment by Derrick Williams [ 08/Jul/20 ] |
|
See |
| Comment by pulpetti [ 08/Jul/20 ] |
|
This isn't a bug, and the wiki just tells you that sugarcane can leave airpockets underwater which some people might interpret as the wiki saying that "it's a feature" which it clearly isn't because IT'S AN ALPHA OLD ALPHA BUG, ALPHA IS ALPHA. Even if it is an Alpha feature why is it listed as a block that's bugged in water in |
| Comment by yenseo Jang [ 29/Jun/20 ] |
|
This is intentional bug. |
| Comment by Dmitry Konev [ 10/May/20 ] |
|
Weird sugarcane underwater is probably one of those "intentional bugs". Known for years, never bothered to fix. |
| Comment by [Mod] Asteraoth [ 02/Mar/19 ] |
|
Ant_Redstone, see |
| Comment by Ant Redstone [ 02/Mar/19 ] |
|
Ask for re-open Bug Report, since water-logged blocks are now possible and sugarcanes still do that air |
| Comment by TheMaxShaft [ 24/Jul/15 ] |
|
it is back in 1.8 i reported it, they took it down, even though it was updated |
| Comment by Daniel Harris [ 14/Feb/13 ] |
|
Sugar Cane can be placed under water on multiplayer but not single player in the newest snapshot. |
| Comment by Cad'ika Orade [ 28/Oct/12 ] |
|
Agreed with Tristan. This isn't a bug. This has been like this since Alpha. At least it was like this when I started in Alpha 1.2. |
| Comment by Tristan Allen [ 27/Oct/12 ] |
|
This is how it works normally. This isn't a bug. "When used underwater, sugar cane displaces the water, just as slabs do, leaving an air pocket." |