minecraft-data icon indicating copy to clipboard operation
minecraft-data copied to clipboard

Why is water diggable?

Open BF5258 opened this issue 1 year ago • 3 comments

In versions 1.19 and 1.20 water and lava are marked as diggable. This cause mineflayer-collect block to try to mine them. image My understanding is that "diggable" means able to be broken in survival by mining. If this is not the case, please explain.

BF5258 avatar Oct 15 '24 07:10 BF5258

yes we need to agree on the definition and fix it, can you look into it?

rom1504 avatar Oct 26 '24 22:10 rom1504

minecraft-data-generator considers any non-air block with finite hardness to be diggable. (BlocksDataGenerator.java) Image Water and lava both have a finite hardness but cannot be targeted. (minecraft.wiki) Image Checking for water and lava as well as air should fix it, but I am unfamiliar with Java.

BF5258 avatar Jan 22 '25 03:01 BF5258

Although they can only be mined by vanilla clients using bugs, the server seems to consider bubble columns to be mineable. They are placed back almost immediately but do cause block updates.

https://github.com/user-attachments/assets/a5ea324e-885d-4981-849e-1b2a736b28e8

Water and lava also seem to be minable but in 1.21 they are replaced by themselves, resulting in no change. waterlogged slab -> waterlogged water + slab item waterlogged water -> waterlogged water (no drop) It might be possible to break liquids in versions before waterlogging was added.

BF5258 avatar Jan 31 '25 09:01 BF5258