I entered this command here [272 chars] to a command block:
execute at @e[tag=wp,limit=1] if block ~ ~-1 ~ minecraft:diamond_block if block ~1 ~-1 ~ minecraft:gold_block if block ~-1 ~-1 ~ minecraft:gold_block if block ~ ~-1 ~1 minecraft:emerald_block if block ~ ~-1 ~-1 minecraft:emerald_block run tag @e[tag=wp,limit=1] remove dlt
This crash happened:
[media]My MaxCommandChainLength is set to 65536 characters.
This is a 1.13 crash bug that is not listed in search.
That said, what is our command limit? 256 or 65536?
This same command from 1.12.2 (which is longer [359 chars] with the old syntax) worked properly:
execute @e[tag=warp] ~ ~ ~ detect ~ ~-1 ~ diamond_block 0 execute @e[tag=warp,c=1] ~ ~ ~ detect ~ ~-1 ~1 gold_block 0 execute @e[tag=warp,c=1] ~ ~ ~ detect ~ ~-1 ~-1 gold_block 0 execute @e[tag=warp,c=1] ~ ~ ~ detect ~1 ~-1 ~ emerald_block 0 execute @e[tag=warp,c=1] ~ ~ ~ detect ~-1 ~-1 ~ emerald_block 0 scoreboard players tag @e[tag=warp,c=1] remove delete
While the underlying issue is MC-132663, the
maxCommandChainLength
gamerule does not refer to the number of characters allowed in a command block. It refers to the number of Chain Command Blocks that can be run in a single tick.The character limit for the command block interface is supposed to be 32,500 (but see MC-132663 for the bug where it's 256 on multiplayer servers).