do command blocks work in unloaded chunks?
Not all loaded chunks have the same properties and are divided into 4 load types. This excludes unloaded chunks. All game aspects are active. ... Only some game aspects are active (redstone and command blocks do not work).