3

I'm having some problems, a problem that seems simple, but seems to keep eluding me.

The command I'm using as a test is this:

/gamemode adventure @a[gamemode=creative,distance=..2]

Above that, I have this:

/gamemode creative @a[gamemode=adventure,distance=3..5]

However, when I tried to make another 'boundary' of the same kind with the same commands in the same way, it didn't work, and I have no idea why. The second one does nothing at all, the first one is fine but every time I try make a second or even a third one it does nothing.

Both setups are completely identical in every way, even in other worlds its the same, one works but the other does nothing at all.

The first block is set to Repeat, Unconditional, Always Active, while the one above that it is set to Chain, Unconditional, Always Active, they are about 8 blocks away from each other and I have them the same, even the blocks around their 'borders'

If anyone can explain this and help me out, that would be great.

  • What does "it doesn't work" mean? It just does nothing? No matter if you're 6, 4, 2.5 or 1 block away? Or does it make the first one do nothing anymore? Or do you get an error message? Are you absolutely sure that you did everything exactly the same in both setups and that there's nothing else to interfere? Can you reproduce it in a new world? – Fabian Röling Mar 21 at 9:14
  • "It doesn't work" in that the second one does nothing at all, the first one is fine but every time I try make a second or even a third one it does nothing, both setups are completely identical in every way, even in other worlds its the same, one works but the other does nothing at all. – Anon Mar 21 at 14:34
  • I just tried it, it works just fine for me. – Fabian Röling Mar 21 at 18:41
  • Are your chain command blocks set to "Always Active"? – SpiceWeasel Mar 21 at 20:28
  • Yes, the first block is set to Repeat, Unconditional, Always Active, while the one above that it is set to Chain, Unconditional, Always Active, they are about 8 blocks away from each other and I have them the same, even the blocks around their 'borders' – Anon Mar 21 at 22:07
0

Chain command blocks will only run if:

a) it's touching a command block that is pointing towards it, and
b) the command block that it's touching runs at least once.

If either of those are false, then the chain command block will not run. Even if they are one block away, the repeat block will run, but the chain will not because the repeat command block is not touching it.
If they are not touching, then the command block that is a chain command block needs to be a repeat block itself or touching the repeat block while the repeat block is pointing towards it.

Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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