[MC-7681] Comparator stays powered after performing command from a Command Block Created: 17/Jan/13 Updated: 05/May/19 Resolved: 18/Jan/13 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Snapshot 13w03a |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | MinecraftShamrock | Assignee: | Unassigned |
| Resolution: | Works As Intended | Votes: | 1 |
| Labels: | command_block, redstone, redstone-comparator | ||
| Environment: |
Windows 7 (64BIT), JRE 7, JDK 7 |
||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Game Mode: | Creative | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
I tested the /testfor command and i found it was great! It only went off when I destroyed the commandblock! I don't know if that has to be so or if it's a bug. |
| Comments |
| Comment by Cody Shearer [ 13/Jan/14 ] |
|
The same thing is happening to me. Except the /testfor command block isn't staying on while a /summon command block is. |
| Comment by _zombiehunter [ 07/Mar/13 ] |
|
@kinsi: |
| Comment by kinsi [ 07/Mar/13 ] |
|
@zombie hunter: "Works As Intended" also, this gives you trouble, just use this: http://imgur.com/2nCkfPD |
| Comment by _zombiehunter [ 27/Feb/13 ] |
|
Dunno if bug or feature, but it's still the case in Snpashots 13w09a/b ! |
| Comment by Alexander Spielvogel [ 16/Feb/13 ] |
|
It seems to work with all commands, which is great! Even with /clear, only a signal if clear was successful. Great for my new adventure map. |
| Comment by irunor [ 18/Jan/13 ] |
|
Weird, the wiki says "Comparators fed by command blocks will now indicate whether the last run command was run successfully," I'll have to update it. |
| Comment by Tails [ 18/Jan/13 ] |
|
The Comparator connected to the Command Block is only usefull if "/testfor" - command is used. |
| Comment by irunor [ 18/Jan/13 ] |
|
I can confirm. I just tried this while my block had "/xp -1L @p"; it turned on like I assume it should when I had xp to give it, but then when I ran out, the signal was still on, which I don't think was supposed to happen. Please reopen. |
| Comment by Tails [ 18/Jan/13 ] |
|
Ok after more testing I figured it out: First off give the command "testfor" a search radius. If a player is within that radius and the Command Block is activated it tells the Comparator to output a signal. Then if you leave that radius and activate the Command Block again, it checks again, this time no player is around - tells Comapartor - signal shuts off. |
| Comment by Tails [ 17/Jan/13 ] |
|
Any command will do. The Comparator is what stays powered. |
| Comment by Kumasasa [ 17/Jan/13 ] |
|
What command did you put in the commandblock ? |