Command blocks give output for some commands even when output is disabled
The bug
Even when the commandBlockOutput gamerule is disabled, a few commands give output anyway when run from a command block.
Affected commands:
- /give
- /tp
- /gamemode
How to reproduce
1. /gamerule commandBlockOutput false
2. Place a command block with the command /summon cow
3. Power it
→
No output in chat
4. Change the command to /give @p apple
5. Power it
→
Output "You have been given Apple * 1" in chat
Workaround
It is possible to suppress these messages by disabling sendCommandFeedback, but that gamerule disables output when running commands from chat. It should not affect command blocks. The most often desired situation is to hide all command block output, but keep chat output. This is currently not possible because of this bug.
2020-03-19, 07:32 PM
2025-01-30, 09:38 PM
7
3
410001
1.20.10.20 Preview - 1.21.60.28 Preview
1.20.10.20 Preview, 1.19.80.21 Preview, 1.17.40.23 Beta, 1.17.40.21 Beta, 1.17.20.20 Beta, 1.16.100.54 Beta, 1.16.0.63 Beta, 1.14.30 Hotfix, 1.16.0, 1.16.1, 1.16.40 Hotfix, 1.16.201 Hotfix, 1.17.2 Hotfix, 1.17.30, 1.17.32, 1.19.10, 1.19.20, 1.19.70, 1.21.60.28 Preview
-