mojira.dev
MC-158515

Command block chain errors still appear after disabling command blocks

Console and log are being spammed with "Command Block chain tried to execute more than 65536 steps!" with "enable-command-block=false" in server.properties.

After enabling command blocks and restarting, the actual error from the command block is then also spammed with the chain error

Aug 06 14:40 [Server] WARN Couldn't load custom particle dust
Aug 06 14:40 [Server] INFO com.mojang.brigadier.exceptions.CommandSyntaxException: Expected ' ' at position 4: dust<–[HERE]
Aug 06 14:40 [Server] WARN Command Block chain tried to execute more than 65536 steps!

 

If command blocks are disabled, Minecraft should not be analyzing the command block chain at all.

Attachments

Comments 7

Furthermore, /gamerule commandBlockOutput false does NOT suppress the errors in the console.

Do you use any data packs on your server?

No data packs.

 

In the end it took an x-ray mod to locate the rogue command blocks in the spawn area, which were placed by someone with op permissions. The command blocks were removed and the spamming stopped.

 

#Minecraft server properties
#Tue Aug 06 13:19:48 MDT 2019
allow-flight=false
allow-nether=true
broadcast-console-to-ops=true
broadcast-rcon-to-ops=true
debug=false
difficulty=peaceful
enable-command-block=false
enable-query=true
enable-rcon=false
enforce-whitelist=false
force-gamemode=true
function-permission-level=2
gamemode=survival
generate-structures=true
generator-settings=
hardcore=false
level-name=xxxxx
level-seed=
level-type=default
max-build-height=256
max-players=48
max-tick-time=60000
max-world-size=10000
motd=Mellominecraft
network-compression-threshold=256
online-mode=true
op-permission-level=4
player-idle-timeout=0
prevent-proxy-connections=false
pvp=false
query.port=25565
rcon.password=
rcon.port=25575
resource-pack-sha1=
resource-pack=
server-ip=xx.xx.xx.xx
server-name=xxxxx
server-port=25565
snooper-enabled=true
spawn-animals=true
spawn-monsters=true
spawn-npcs=true
spawn-protection=300
use-native-transport=true
view-distance=7
white-list=false

I just tested this, and can confirm that the server checks for command chain length even if commands run. The message occurs only if there's a command block chain in the world that would run if command blocks were enabled and exceeds the gamerule limit.

I've attached the spawn region file. Start it up on Minecraft 1.14.4 release with "enable-command-block=false" in server.properties and you'll immediately see the error in the console. Also notice that attempting to turn off command block output with the gamerule does nothing.

Having a single powered repeating command block in the world and running /gamerule maxCommandChainLength 0 also does the trick.

Can confirm in 1.18.1.

[media]

Zizzy zizzy

(Unassigned)

Confirmed

Platform

Normal

Commands, Performance

1.14.4, 1.18.1

Retrieved