Minecraft – Command Block working after breaking it

minecraft-commandsminecraft-java-edition

Recently I made a command block teleporting player to specific cords but i accidentaly turned it ON and I was stuck in a loop. I destroyed the command block with setblock but it still executed commands.

I checked it with NBT Editor and it wasn't in the region files but still teleported me. I am using Java edition 1.16.5

Best Answer

you could do /commandblocksenabled false and that would stop command blocks to execute their command and then break the block where the command block was changed