Is there any way to remotely disable a command block?

Is there any way to remotely disable a command block? - Girl with leg amputation on asphalt road in gloomy weather

I'm trying to make a cool thing in minecraft. and I need to disable a certain command block with a flick of a switch. Is there any command that I can put in a command block the will disable command blocks? I don't want to disable all of them, just one. Anything I can do about this?



Best Answer

Try setting the command block to chain and conditional and chaining it after a repeating command block that checks if a lever is flicked, the command should look something like this: /execute if block <coordinates to the lever> minecraft:lever[powered=true]




Pictures about "Is there any way to remotely disable a command block?"

Is there any way to remotely disable a command block? - Area of residential district with roofs of buildings
Is there any way to remotely disable a command block? - White disabled parking sign on post located on empty asphalt parking lot with marking line on street in foggy weather
Is there any way to remotely disable a command block? - Young lady learning sign language during online lesson with female tutor



How do you stop a command block remotely?

If the command block is not at the spawn; type /kill . But if one is at spawn just look down real quick and break it if you can.



How to fix the infinite teleport loop without loading a backup!




More answers regarding is there any way to remotely disable a command block?

Answer 2

I assume you want to disable a repeating command block, by toggling it from "always active" to "needs redstone". That can be done by setting its "auto" NBT tag to false, for example like this:

/data merge block 12 34 56 {auto:0}

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ahmed akacha, Kelly L, Erik Mclean, SHVETS production