Minecraft wiki entry for Sugar_Cane, associated text: When the spot a sugar cane block is placed in becomes unsuitable, such as when the supporting block is removed, the sugar cane block uproots and drops as an item. In Bedrock Edition, sugar cane uproots immediately after all adjacent water is removed. In Java Edition, sugar cane uproots on the next block update or random tick.