2

Is there a command to waterlog stuff?

Niveltan 1/1/25 9:53 am
728
1/2/2025 6:11 pm
I'd like to be able to waterlog a large amounts of blocks in one single fill command, but no vanilla command seems to allow you to do that. The /fill replace #air command isn't working, the /data merge block cannot change the {IsWaterlogged} NBT on blocks and i'm starting to get fed up of it. Is there any solution that wouldn't have me make 50 command blocks to check for every block i want to waterlog/dry out? Has anyone ever created a datapack to implement this command?
Posted by
Niveltan
Level 40 : Master Commander
57

  Have something to say?

JoinSign in

5

Clownfish2
01/01/2025 10:40 am
They/Them • Level 1 : New Network
Can't you just use the debug stick?
1
Niveltan
01/01/2025 11:43 am
He/Him • Level 40 : Master Commander
I want to automate the process using command blocks, and i have a minimum of 9x9x9 blocks to waterlog. The debug stick isn't an option.
1
Clownfish2
01/01/2025 1:07 pm
They/Them • Level 1 : New Network
history
What about something like "/fill ~ ~ ~ 9 9 9 oak_slab[​waterlogged=true]"?
2
Niveltan
01/02/2025 4:41 am
He/Him • Level 40 : Master Commander
I can't do every block individually. I would have to check for 4 types of slab (up and down) 4 types of stairs in all shapes and configurations, which would make me create over 200 command blocks for each one.
1
HoboMaggot
01/02/2025 6:11 pm
Level 55 : Grandmaster Blob
Then it would be
/fill ~ ~ ~ ~ ~ ~ oak_slab[type=top,waterlogged=true] replace oak_slab[type=top]
Use https://mcstacker.net/ for the other possible combinations
1

Welcome