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

/gamerule commandBlockOutput doesn't prevent functions from spamming the chat

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 17w45b
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Windows 10, Minecraft Java Edition 17w45b

    • Confirmation Status:
      Unconfirmed

      Description

      I created a function and ran /reload multiple times, the console didn't show errors and I could in fact run the function with no problem. I placed the function command in a repeating Command Block and activated it, it spammed my chat so I ran /gamerule commandBlockOutput false

      What I expected to happen was...:
      I expected it to stop spamming [@: Executed <function name> command(s) from function '58'] in my chat, and to still run the function.

      What actually happened was...:
      Despite having set these gamerules to false:

      • commandBlockOutput
      • sendCommandFeedback
      • logAdminCommands

      The chat was spammed with the function being executed by the command block.

      Steps to Reproduce:

      1. Create a valid function file inside a world's data pack
      2. Run command /gamerule commandBlockOutput false (i used tab key autocompletion to be sure i typed it right)
      3. Type a function command which runs that function in a Repeating Command Block (mine was set to Needs Redstone, triggered by a lever)
      4. Activate the Command Block

      Attached screenshot of the moment I pulled the lever:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                CBMaca Riccardo Lussu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: