Minecraft wiki entry for Command_Block, associated text: In Java Edition, leaving the command block GUI with clicking the "Done" button or ↵ Enter resets the success count to 0, no matter whether making changes in the GUI. In Bedrock Edition, leaving the GUI with changes resets the success count to 0.