Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-259479

Setblock command does not obey commandModificationBlockLimit gamerule

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 23w04a
    • None
    • Unconfirmed
    • (Unassigned)

      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)")

            Unassigned Unassigned
            \ \
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: