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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w45b
    • None
    • Windows 10, Minecraft Java Edition 17w45b
    • Unconfirmed

      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:

            Unassigned Unassigned
            CBMaca Definitely Maca
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: