Mojira Archive
MC-259479

Setblock command does not obey commandModificationBlockLimit gamerule

If you set the commandModificationBlockLimit gamerule to 0 and try to use a fill command to only change one block, it will not work, as expected. But if you use a setblock command instead, it will still work, bypassing the set limit.

 

Steps to reproduce:

  1. Set the commandModificationBlockLimit gamerule to 0
  2. Run "/setblock ~ ~ ~ stone"
  3. The block is placed

What I expected:

  • "Too many blocks in the specified area (maximum 0, specified 1)"

What I observed:

  • 1 block is placed, bypassing the set limit of 0

 

To see the gamerule functioning properly:

  1. Set the commandModificationBlockLimit gamerule to 0
  2. Run "/fill ~ ~ ~ ~ ~ ~ stone"
  3. It throws an error ("Too many blocks in the specified area (maximum 0, specified 1)")

Invalid

\

2023-01-26, 10:22 PM

2023-01-27, 12:35 AM

2023-01-27, 12:35 AM

0

2

Unconfirmed

(Unassigned)

23w04a

-