Too many blocks in the specified area: the /fill limit and how to raise it
GuideJava 1.19.2 → 26.35 min read4 commands
/fill and /clone stop at 32,768 blocks. Raise it with /gamerule max_block_modifications (commandModificationBlockLimit before 1.21.11) or split the box.
/fill refuses any box of more than 32,768 blocks. On Java 1.21.11 and later (26.x) you raise that with /gamerule max_block_modifications 100000; from 1.19.4 to 1.21.10 the rule is called commandModificationBlockLimit. Or keep the limit and split the box into smaller fills.
One command, then /fill and /clone accept boxes up to 100,000 blocks.
gamerule max_block_modifications 100000Where exactly is the limit?
We filled two boxes with stone on a Java 26.3 server. The first is 32 × 32 × 32. The second is one block wider. Coordinates are inclusive, so 0 to 32 is 33 blocks, a mistake that is easy to make when you count a box by hand.
- fill 0 -50 0 31 -19 31 minecraft:stoneSuccessfully filled 32768 block(s)
- fill 0 -50 0 32 -19 31 minecraft:stoneToo many blocks in the specified area (maximum 32768, but specified 33792)
- gamerule max_block_modifications 100000Game rule max_block_modifications is now set to 100000
- fill 0 -50 0 32 -19 31 minecraft:stoneSuccessfully filled 33792 block(s)
The error message does the sum for you: “specified 33792” is the size of your box (33 × 32 × 32). Set the rule to at least that number.
Exactly 32,768 blocks. One more row on any side and the game refuses.
fill 0 -50 0 31 -19 31 minecraft:stoneWhat is the rule called in my version?
| Version | Command |
|---|---|
| Java 1.21.11, 26.1 – 26.3 | gamerule max_block_modifications 100000 |
| Java 1.19.4 – 1.21.10 | gamerule commandModificationBlockLimit 100000 |
| Java 1.19.2 and older | Max block modifications does not exist in Java 1.19.2 — left out. |
| Bedrock | Max block modifications is Java only — left out. |
Each side refuses the other’s name. This is a 1.21.10 server:
- gamerule max_block_modifications 100000Incorrect argument for command
- gamerule commandModificationBlockLimit 100000Gamerule commandModificationBlockLimit is now set to: 100000
- fill 0 -50 0 32 -19 31 minecraft:stoneSuccessfully filled 33792 block(s)
And 1.19.2, which has the limit but no rule at all. Neither name is accepted there, so the only way past 32,768 is several commands.
- gamerule commandModificationBlockLimitIncorrect argument for command
- fill 0 -50 0 31 -19 31 minecraft:stoneSuccessfully filled 32768 blocks
- fill 0 -50 0 32 -19 31 minecraft:stoneToo many blocks in the specified area (maximum 32768, specified 33792)
The same rule under its old camelCase name.
gamerule commandModificationBlockLimit 100000How high can it go?
The rule takes any whole number from 1 up to 2,147,483,647. Zero and negative numbers are refused, so there is no “unlimited” setting.
- gamerule max_block_modifications 0Integer must not be less than 1: found 0
- gamerule max_block_modifications 2147483647Game rule max_block_modifications is now set to 2147483647
- gamerule max_block_modifications 2147483648Invalid integer '2147483648'
We would not leave it at the maximum. With no limit, one typo in a coordinate can replace a very large piece of your world in a single command. Raise it for the job and set it back to 32768.
No game rule? Split the box
On versions without the rule, and on servers where you may not change game rules, cut the box into slices that each fit. The /fill generator does the counting: give it the two corners and it writes as many commands as the box needs. This card is the 33,792-block box from above, split in two.
No game rule needed. The generator cuts a box that is over the limit into pieces that each fit.
fill 0 -50 0 32 -20 31 minecraft:stone
fill 0 -19 0 32 -19 31 minecraft:stone- • 33,792 blocks is over the 32,768-block limit, so the box is split into 2 commands. Or raise the limit with /gamerule max_block_modifications 33792 and use one command.
/clone has the same limit
With the rule still at 100,000 the clone went through. Back at the default it was refused with the same message as /fill.
- clone 0 -50 0 32 -19 31 0 0 0Successfully cloned 33792 block(s)
- gamerule max_block_modifications 32768Game rule max_block_modifications is now set to 32768
- clone 0 -50 0 32 -19 31 0 40 0Too many blocks in the specified area (maximum 32768, but specified 33792)
/fillbiome counts differently. The same 33,792-block box went through at the default limit and reported “648 biome entry/entries set between 0, -52, 0 and 32, -20, 28”: it works in 4 × 4 × 4 cells (9 × 9 × 8 of them here), not single blocks.
Other /fill errors we ran into
- That position is not loaded. We aimed at x 5000, z 5000, where no chunk was loaded. /fill only works in loaded chunks: stand closer, or use /forceload first.
- That position is out of this world! Part of the box was below y -64 or above y 319, outside the Overworld’s build height.
- No blocks were filled. Not really an error: every block in the box already was the block we asked for.
More “why did my command fail” cases, with the version that fixes each, are in the command errors guide.
FAQ
What is the maximum number of blocks /fill can place?
32,768 by default, which is a 32 × 32 × 32 cube. On our Java 26.3 server a box of 33,792 blocks was refused with: Too many blocks in the specified area (maximum 32768, but specified 33792).
How do I fill more than 32,768 blocks?
Raise the limit with /gamerule max_block_modifications 100000 on Java 1.21.11 and later, or /gamerule commandModificationBlockLimit 100000 on Java 1.19.4 to 1.21.10. On older versions, split the area into several /fill commands.
Does the limit count air blocks?
Yes. The game counts every position in the box before it looks at what is there, so a box of 33,792 positions is refused even if most of it would not change.
Does the same limit apply to /clone?
Yes. With the default limit, /clone of the 33,792-block box was refused with the same message; after raising the rule it cloned all 33,792 blocks.
Can I raise the /fill limit on Bedrock?
Not with a game rule: the rule is Java only, and the generator leaves it out for Bedrock. We could not test Bedrock on our server. Split the box into smaller fills there.
More drops
- Guide4 commandsInfinite effect command: permanent night vision with no particlesOne word makes it permanent, one more hides the swirls. And one way to undo that by accident.Java 1.19.2 → 26.3 · Bedrock
- Update drop3 commands/effect with tags: one command for a whole set of effects (26.4 snapshot)Four effects from one line, and the tag file you have to write first.Java 26.4 Snapshot 10 · 26.3
- Next drop · Two commands, three rule names, and a new /time pause that does it in one.Java 1.13 → 26.3 · Bedrock · 5 commands