Skip to content
MC Command Generator

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.

#1Raise the limit to 100,000 (Java 1.21.11+)Epic

One command, then /fill and /clone accept boxes up to 100,000 blocks.

gamerule max_block_modifications 100000
Open in /gamerule Java 26.3

Where 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.

Server log · Java 26.3
  1. fill 0 -50 0 31 -19 31 minecraft:stone
    Successfully filled 32768 block(s)
  2. fill 0 -50 0 32 -19 31 minecraft:stone
    Too many blocks in the specified area (maximum 32768, but specified 33792)
  3. gamerule max_block_modifications 100000
    Game rule max_block_modifications is now set to 100000
  4. fill 0 -50 0 32 -19 31 minecraft:stone
    Successfully 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.

#4The biggest cube that fits: 32 × 32 × 32Rare

Exactly 32,768 blocks. One more row on any side and the game refuses.

fill 0 -50 0 31 -19 31 minecraft:stone
Open in /fill Java 26.3

What is the rule called in my version?

Written by the /gamerule generator for each version.
VersionCommand
Java 1.21.11, 26.1 – 26.3gamerule max_block_modifications 100000
Java 1.19.4 – 1.21.10gamerule commandModificationBlockLimit 100000
Java 1.19.2 and olderMax block modifications does not exist in Java 1.19.2 — left out.
BedrockMax block modifications is Java only — left out.

Each side refuses the other’s name. This is a 1.21.10 server:

Server log · Java 1.21.10
  1. gamerule max_block_modifications 100000
    Incorrect argument for command
  2. gamerule commandModificationBlockLimit 100000
    Gamerule commandModificationBlockLimit is now set to: 100000
  3. fill 0 -50 0 32 -19 31 minecraft:stone
    Successfully 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.

Server log · Java 1.19.2
  1. gamerule commandModificationBlockLimit
    Incorrect argument for command
  2. fill 0 -50 0 31 -19 31 minecraft:stone
    Successfully filled 32768 blocks
  3. fill 0 -50 0 32 -19 31 minecraft:stone
    Too many blocks in the specified area (maximum 32768, specified 33792)
#2Raise the limit on Java 1.19.4 – 1.21.10Rare

The same rule under its old camelCase name.

gamerule commandModificationBlockLimit 100000
Open in /gamerule Java 1.21.9 – 1.21.10

How 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.

Server log · Java 26.3
  1. gamerule max_block_modifications 0
    Integer must not be less than 1: found 0
  2. gamerule max_block_modifications 2147483647
    Game rule max_block_modifications is now set to 2147483647
  3. gamerule max_block_modifications 2147483648
    Invalid 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.

#3Or split the box: 33,792 blocks in two commandsEpic

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.
Open in /fill Java 26.3

/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.

Server log · Java 26.3
  1. clone 0 -50 0 32 -19 31 0 0 0
    Successfully cloned 33792 block(s)
  2. gamerule max_block_modifications 32768
    Game rule max_block_modifications is now set to 32768
  3. clone 0 -50 0 32 -19 31 0 40 0
    Too 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.