The comparator won't turn off? I think I know what error you are having.
This "problem" isn't actually a problem, just a function of redstone that can be annoying sometimes.
Since whatever you tested for is true, it gives off a positive output to your comparator. The thing is, it will keep giving a positive output until it is updated.
For Example:
A trapped chest activates a redstone wire that powers a command block that tests for a player with 100 Coins on their scoreboard:
/testfor @a[score_Coins_min=100]
There is a comparator facing away from it that tests the output, giving signal if it is positive.
What this would do is make it so that when you open the chest, if you have 100 Coins you would get a diamond, but then lose those 100 coins.
But this would only work once, since the command block needs to get updated.
The solution is to instead, set a block that simply allows the redstone current to pass through, the whole command block scoreboard testfor with the comparator would all happen before. I'll show you what if should look like in the attached image. I actually did it wrong, but I only noticed at the very end. You'll need to add another repeater and command block where I put "X" that has:
/setblock ~ ~ ~4 air
Which will just be used to reset it so it can be used again. This was just an example, it's not eactly what you need to do.
Reply back if you are still having problems, I love to help
[EDIT]: I also see you are on a LAN server, you will have to change "/give @a diamond 1 0" to
"/give @p[score_Coins_min=100] diamond 1 0" And also change everything from @a to @p.
Couldn't you set it to /testfor @p[x=?,y=?,z=?,score_Coins_min=100] and apply that for everthing else? The xyz would be for just around the button. It's not precise but the chances of it failing are very low - and doesn't that also apply to your solution?
resource pack doesn't interfere with commands. You must have your /testfor part typed in wrong because that's what the error said. make sure there is only one "/" and make sure you typed "testfor" correctly
on 1.8.9 with a resource pack on but all its saying is unknown command.i don't know how to insert images so just believe me also my score is set to 10
PLEASE HELP ME
Another possible problem may be that whatever you are using to power the command block with that command in it is not working, and the message you see is from an earlier time. To diagnose whether this is correct or not, look at the very beginning of the error message/output and you should see something like [00:00:00] (The 0's can be replaced with numbers) this is the time that that error message/output was 'created'. Attempt to power the command block, and then check this clock and see if it matches up with the time you pressed that button (Just if it's close to when you pressed it, just take a rough guess it doesn't matter). If the time matches up, then your problem has to do with the /testfor command being typed incorrectly. If the time is earlier than when you now powered it, then there is a problem with how you are powering it.
Keep in mind, minecraft uses a 24 hour clock. If you don't know how that works just search it up on google.
I have a score of 1 in the Levitate scoreboard (right of the picture) but I won't levitate. The levitate effect command works on its own but the @a[score.Levitiate.min=1,score.Levitiate=1] returns with [19:14:46] The entity UUID provided is in an invalid format
I replaced the score.Levitiate.min=1,score.Levitiate=1 with r=1 and it worked fine so the prior is obviously the problem.
The command is in a repeating command block with always active selected. Conditional doesn't change anything and the comparator changes nothing in its different modes. The comparator doesn't turn on either.
Thanks.
-Derpzman
Don't use dots (score.Levitiate.min=1) , use underscores: score_Levitiate_min=1 and score_Levitiate=1
i am making a thing that crashes your world when you shoot with a bow
Here is the command In The Clock:/execute @e[type=Arrow] ~ ~ ~ summon Fireball ~ ~3 ~ {ExplosionPower:10,direction:[0.0,0.0,0.0,Motion:[0.0,0.0,0.0]]} this will take any arrows fired and summon a fireball that will DESTROY your world
I keep trying to use this command and even though i have a score of 3 it still wont work it keeps saying i don't meet the requirements can i get some help please?
YMbrothers (Edit: sorry forgot to quote your comment, I’m new to the forums)
No sorry it was late for me and I forgot to add how to solve it 😕
oh and 1.8+ you can put a button on the ground next to it
Ok then. I guess you're really asking a question.
Now, what's your question again? My previous reply probably gave you an answer. But if that's not the answer you desire, I recommend you to start a new thread, or just reply here and end this old thread quickly.
And if you're not asking a question.... Then I'll find a bat.
hi i am trying to make a pvz remake using sun as currency i used this command in my other map and it works flawlessly /testfor @p[score_gold=100,score_gold_min=3] but when i change the name to sun it tells me entity cannot be found
hi i figured out my issue i used @p when i ised this command in my other game so if i change my scoreboard to @p i shouldn't have any issues and it worked!!! if anyone has any ideas how to change the @p so i can use plants instead id appreciate it
is there a way to make minimum of coins?
example : buy golden armour only 10 Coins. and i only got 100
p.s sorry for bad english
Ok Thanks but....
i have a problem with my vanilla shop... so what i want to do is making LAN server with friends....
im making a shop that gives chest with Coins cost : 100
but, i had some error, the comperator wont turn off.
i dont know what kind of problem is this cuz im new at 1.8 and this is the 3rd time im making LAN servers
please help!
p.s sorry for bad english/some of the word doesnt make any sense (e.g hate = haet)
The comparator won't turn off? I think I know what error you are having.
This "problem" isn't actually a problem, just a function of redstone that can be annoying sometimes.
Since whatever you tested for is true, it gives off a positive output to your comparator. The thing is, it will keep giving a positive output until it is updated.
For Example:
A trapped chest activates a redstone wire that powers a command block that tests for a player with 100 Coins on their scoreboard:
There is a comparator facing away from it that tests the output, giving signal if it is positive.
Then there are two more command blocks.
One with:
The second:
What this would do is make it so that when you open the chest, if you have 100 Coins you would get a diamond, but then lose those 100 coins.
But this would only work once, since the command block needs to get updated.
The solution is to instead, set a block that simply allows the redstone current to pass through, the whole command block scoreboard testfor with the comparator would all happen before. I'll show you what if should look like in the attached image. I actually did it wrong, but I only noticed at the very end. You'll need to add another repeater and command block where I put "X" that has:
Which will just be used to reset it so it can be used again. This was just an example, it's not eactly what you need to do.
Reply back if you are still having problems, I love to help
[EDIT]: I also see you are on a LAN server, you will have to change "/give @a diamond 1 0" to
"/give @p[score_Coins_min=100] diamond 1 0" And also change everything from @a to @p.
Couldn't you set it to /testfor @p[x=?,y=?,z=?,score_Coins_min=100] and apply that for everthing else? The xyz would be for just around the button. It's not precise but the chances of it failing are very low - and doesn't that also apply to your solution?
resource pack doesn't interfere with commands. You must have your /testfor part typed in wrong because that's what the error said. make sure there is only one "/" and make sure you typed "testfor" correctly
Another possible problem may be that whatever you are using to power the command block with that command in it is not working, and the message you see is from an earlier time. To diagnose whether this is correct or not, look at the very beginning of the error message/output and you should see something like [00:00:00] (The 0's can be replaced with numbers) this is the time that that error message/output was 'created'. Attempt to power the command block, and then check this clock and see if it matches up with the time you pressed that button (Just if it's close to when you pressed it, just take a rough guess it doesn't matter). If the time matches up, then your problem has to do with the /testfor command being typed incorrectly. If the time is earlier than when you now powered it, then there is a problem with how you are powering it.
Keep in mind, minecraft uses a 24 hour clock. If you don't know how that works just search it up on google.
/testfor @p[score_objective=12]
Don't use dots (score.Levitiate.min=1) , use underscores: score_Levitiate_min=1 and score_Levitiate=1
Feel free to ask *almost* anything.
I Know im late but.... how do i put testfor minimum and radius at the same time!
Please help!
I Cant do that command
i am making a thing that crashes your world when you shoot with a bow
Here is the command In The Clock:/execute @e[type=Arrow] ~ ~ ~ summon Fireball ~ ~3 ~ {ExplosionPower:10,direction:[0.0,0.0,0.0,Motion:[0.0,0.0,0.0]]} this will take any arrows fired and summon a fireball that will DESTROY your world
hmm idk
try:/testfor @p[r=5,score_Money_min=50,score_Money=50]
if that doesnt work than idk
Use radius @a[x=?,y=?,z=?,r=1]
I keep trying to use this command and even though i have a score of 3 it still wont work it keeps saying i don't meet the requirements can i get some help please?
/testfor @a {score:LivesUsed=3,score:LivesUsedmin=3}
It seems as if the button powers the command block and the comparator takes the output from the command block.
Then use a redstone block, redstone torch or pressure plate on the side.
Of course, I don't know if you're just trolling on an old thread or not.
YMbrothers (Edit: sorry forgot to quote your comment, I’m new to the forums)
No sorry it was late for me and I forgot to add how to solve it 😕
oh and 1.8+ you can put a button on the ground next to it
Ok then. I guess you're really asking a question.
Now, what's your question again? My previous reply probably gave you an answer. But if that's not the answer you desire, I recommend you to start a new thread, or just reply here and end this old thread quickly.
And if you're not asking a question.... Then I'll find a bat.
hi i am trying to make a pvz remake using sun as currency i used this command in my other map and it works flawlessly /testfor @p[score_gold=100,score_gold_min=3] but when i change the name to sun it tells me entity cannot be found
hi i figured out my issue i used @p when i ised this command in my other game so if i change my scoreboard to @p i shouldn't have any issues and it worked!!! if anyone has any ideas how to change the @p so i can use plants instead id appreciate it