mojira.dev
MC-121951

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

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:

Linked issues

Attachments

Comments 2

Thank you for the detailed report, but I'm afraid this is a duplicate of MC-121783

Yeah, sorry! I confirm it is a duplicate of MC-121783

Definitely Maca

(Unassigned)

Unconfirmed

Minecraft 17w45b

Retrieved