mojira.dev
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)")

Attachments

Comments 3

The changelog explicitly stated it's for fill and clone. Setblock was not mentioned.

You're right, but it would make more sense in my opinion if setting it to 0 affected /setblock too.

Thank you for your report!
However, this issue is Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit Minecraft Suggestions on Reddit or visit the Feedback website.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

\

(Unassigned)

Unconfirmed

(Unassigned)

23w04a

Retrieved