0

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?

1
  • What have you tried?
    – WarpPrime
    Commented Sep 2, 2020 at 13:40

2 Answers 2

1

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]

1

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.