Remove Water in an Area
Get rid of water flooding a build or cave. Run: /fill ~-5 ~-3 ~-5 ~5 ~3 ~5 air replace water. Replaces every water block in an 11×7×11 box centered on you with air, leaving all other blocks untouched. Adjust the two corner coordinates to cover the flooded area — larger boxes work but /fill has a volume limit per run, so drain big areas in sections. Works on Java 26.2 and Bedrock 26.32. Last verified June 2026.
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026/fill ~-5 ~-3 ~-5 ~5 ~3 ~5 air replace water- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Stand in the middle of the flooded area.
- Paste the command; widen the coordinates if the water extends further.
- Press Enter — only water blocks are replaced; your build stays intact.
- Repeat in sections for large floods.
Frequently asked questions
Does Remove Water in an Area work on Bedrock Edition?
Yes — the same command works on both Java 26.2 and Bedrock 26.32.
Do you need OP or cheats enabled to use Remove Water in an Area?
Yes — you need operator permissions (OP) on a server, or cheats enabled in your world settings (Java: open to LAN with cheats on; Bedrock: enable cheats in world settings).
Can Remove Water in an Area be used in a command block?
Yes — paste the command into a command block and activate it with a button or redstone signal. Remove the leading slash when using a command block.
Does Remove Water in an Area work in multiplayer?
Yes — the command works the same in multiplayer as in singleplayer. Operator permissions may be required depending on your server settings.
Related commands
Set a Single Block
Place one block at a specific spot
Clear an Area (Fill With Air)
Delete a region of blocks by filling it with air
Fill a Hollow Box (Build a Room)
Create a hollow room or box out of any block
Fill an Area with Water
Create a pool or lake by filling a region with water
Replace One Block Type with Another
Swap every block of one type for another in a region
Place a Chest
Instantly place a chest at a specific location
Need something different?
Customize this command in the /fill builder — choose your own options and copy the result.
Learn more
📖How to Use Coordinates in Minecraft Commands
Understand absolute, relative (~), and local (^) coordinates in Minecraft commands