It's simple, you just need to place that command block in the perma load chunks of the spawn or you car use the /forceload commande to keep the chunk load all the time.
By doing that you command block will stay loaded all the time and continue to set in survival.
But why not just keep your cheat off when you open a lan ?
It's simple, you just need to place that command block in the perma load chunks of the spawn or you car use the /forceload commande to keep the chunk load all the time.
By doing that you command block will stay loaded all the time and continue to set in survival.
But why not just keep your cheat off when you open a lan ?