Guides / Commands & Data

/fill and /clone: the 32,768 block limit and the modes that get around it

Both commands cap at 32,768 blocks per call and fail silently past it. Here are the hollow, outline and replace modes, the clone masks, and how to move a build bigger than the cap.

/fill and /clone share a hard limit that is not in the error message people expect: 32,768 blocks per command. That is 32×32×32. Go past it and the command refuses, which in a command block chain looks like nothing happening at all.

Working out whether you are over

The count is inclusive on both ends, so a region from 0 0 0 to 31 31 31 is exactly 32,768 — right at the cap. From 0 0 0 to 32 32 32 is 35,937 and fails.

blocks = (|x2-x1|+1) × (|y2-y1|+1) × (|z2-z1|+1)

For anything larger, split into slabs and run several commands. Splitting on Y is usually easiest to reason about.

fill modes

ModeDoes
replacedefault; optionally filter to one block type
hollowfills the outer shell, clears the interior to air
outlinefills the outer shell, leaves the interior alone
destroydrops the existing blocks as items first
keeponly fills air, never overwrites

hollow versus outline is the pair people mix up. Building a glass box around an existing structure needs outline; hollow would delete what is inside it.

keep is the safe one for terrain — it will not eat anything already placed.

The filter form takes the block to replace last:

/fill ~ ~ ~ ~10 ~5 ~10 stone replace dirt

That replaces only dirt with stone and leaves everything else untouched.

clone modes and masks

/clone has two independent settings and the order matters:

Maskreplace (everything) or filtered <block> (only that block) or masked (skip air in the source).

Modenormal, force (allow overlapping regions), or move (clear the source after copying).

/clone <begin> <end> <destination> masked normal

masked is what you want when stamping a build onto existing terrain — air in the source will not punch holes in the destination.

move is the one that surprises people: it deletes the original. There is no undo.

Overlap needs force

If source and destination overlap at all, normal refuses. force allows it, but the result depends on copy order and is rarely what you wanted. Cloning to a scratch area and back is more predictable.

Chunks must be loaded

Both commands only work on loaded chunks. A /fill reaching into unloaded terrain silently does nothing out there. For scripted builds, /forceload add the region first and remove it after — otherwise the same command works when you are standing nearby and fails when run from spawn.

Build any of these with the arguments in the right order, and the block count checked against the cap, in the World & Blocks Command Builder.

Open the World & Blocks Command Builder →

More guides

Browse all →

Looking for more Minecraft tools?

A suite of client-side generators, viewers and converters — all free, all in your browser.