mojira.dev
MC-51736

Spectator Mode Triggers /testfor @p[r=#]

While using the "/testfor @p[r=#]" command, I noticed that, while in spectator mode, they count them aswell, triggering the redstone. That isn't suppose to happen since they are just spectating and not actually "playing the game."

I have not tested this pressure plates, tripwire, and buttons yet.

Linked issues

Comments 3

Please do not mark unreleased versions (anything starting with "Future Version") as affected. You don't have access to them yet.

What do you mean by "activates redstone"? Pressure plates? It just magically turns on? Switches? Buttons? Please specify.

Duplicate of MC-46662 – If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.

You can modify the code to add a check for what mode they're on. If you just want survival players to activate it make it " /testfor @p[r=10,m=0] ". If you want every mode other than spectator to active it I think adding a ! before the number makes it look for anything that doesn't match that number (it does for some commands but not others apparently). Spectator mode is number 3.

King Rainbow

(Unassigned)

Unconfirmed

Minecraft 14w11b

Retrieved