1
So I have a repeater, uncoditional, always active block with the command "testfor avrona" then a chain, conditional, needs retsone block next to it. It has the command "tellraw @a[thecreator=0] /tellraw @p ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]"
However it does not work. The repeater block is facing into the back of the chain block. It seems that the problem is that the chain block is not being powered for some reason, as a error message doesn't even show up. Anyone know how to fix it?
However it does not work. The repeater block is facing into the back of the chain block. It seems that the problem is that the chain block is not being powered for some reason, as a error message doesn't even show up. Anyone know how to fix it?
Create an account or sign in to comment.
32
1
Ohhhhh now I get the whole testfor thing
1
I wouldn't mind checking out your map when you're done
It's not a map, it's a server.
1
I might have misunderstood, If you want the command chain in your original post to work for that testfor command you will need /testfor @p[name=avrona]
and make sure the chain command block after it is set to always active
Conditional means the command block before it has to succeed
I wouldn't mind checking out your map when you're done
and make sure the chain command block after it is set to always active
Conditional means the command block before it has to succeed
I wouldn't mind checking out your map when you're done
1
okay I'm just going to put my 2 cents in even if it's not what you are after...
you want an achievment system... that is actually quite simple
thecreator=1 = Achievement, thecreator=0 = No Achievement
/scoreboard objectives add thecreator dummy TheCreator
Repeating chain:
/tellraw @a[score_thecreator=1] ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]
any more commands in the chain you want to run when you get an achievement go here
/scoreboard players remove @a[score_thecreator_min=1] thecreator 1
now, when anyone gets a "thecreator" score of 1 they will get this tellraw message plus whatever else you want providing the target selector looks like this "@a[score_thecreator_min=1]".
And the last command in the chain removes the score instantly so everything gets set off once.
Everyone by default will not have a score of 1 so no need to worry about "initiating" the system.
Hope I helped, I'm making an achievment system myself that gives players points that I use in my map for currency.
Edit: Also, have all your achievements on the same chain like this:
/tellraw @a[score_thecreator=1] ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]
/scoreboard players remove @a[score_thecreator_min=1] thecreator 1
/tellraw @a[score_thebulldozer=1] ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE BULLDOZER!--","color":"dark_green","bold":true}]
/scoreboard players remove @a[score_thebulldozer_min=1] thebulldozer 1
It will still work and it saves rescources and cuts down lag
you want an achievment system... that is actually quite simple
thecreator=1 = Achievement, thecreator=0 = No Achievement
/scoreboard objectives add thecreator dummy TheCreator
Repeating chain:
/tellraw @a[score_thecreator=1] ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]
any more commands in the chain you want to run when you get an achievement go here
/scoreboard players remove @a[score_thecreator_min=1] thecreator 1
now, when anyone gets a "thecreator" score of 1 they will get this tellraw message plus whatever else you want providing the target selector looks like this "@a[score_thecreator_min=1]".
And the last command in the chain removes the score instantly so everything gets set off once.
Everyone by default will not have a score of 1 so no need to worry about "initiating" the system.
Hope I helped, I'm making an achievment system myself that gives players points that I use in my map for currency.
Edit: Also, have all your achievements on the same chain like this:
/tellraw @a[score_thecreator=1] ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]
/scoreboard players remove @a[score_thecreator_min=1] thecreator 1
/tellraw @a[score_thebulldozer=1] ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE BULLDOZER!--","color":"dark_green","bold":true}]
/scoreboard players remove @a[score_thebulldozer_min=1] thebulldozer 1
It will still work and it saves rescources and cuts down lag
1
This seems very troubling.
So what you're trying to do is give any player with a "thecreator" score of 0, the message "you have received the achievement: the creator"
The following command blocks should work, I have tested them myself.
Command Block #1:
Repeat > Unconditional > Always Active
Command Block #2:
Chain > Conditional > Always Active
Command Block #3:
Chain > Conditional > Always Active
You may notice I used "foo" as my objective name, these commands will still work, simply replace it with "thecreator" (or what your objective name may be)
I also want to add that newly spawned players will not have a score of 0 or any value.
So what you're trying to do is give any player with a "thecreator" score of 0, the message "you have received the achievement: the creator"
The following command blocks should work, I have tested them myself.
Command Block #1:
Repeat > Unconditional > Always Active
/testfor Avrona
// "Avrona" may be replaced with "@a[score_foo=0]" for use with all players
Command Block #2:
Chain > Conditional > Always Active
tellraw @a[score_foo=0] ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]
Command Block #3:
Chain > Conditional > Always Active
scoreboard players set @a[score_foo=0] foo 1
// Used to prevent repeated spamming of the same message
You may notice I used "foo" as my objective name, these commands will still work, simply replace it with "thecreator" (or what your objective name may be)
I also want to add that newly spawned players will not have a score of 0 or any value.
1
Weird
1
Still doesn't work. My score for thecreator is 0. Oh and I also changed to tellraw @a.
1
avronaSo I have a repeater, uncoditional, always active block with the command "testfor avrona" then a chain, conditional, needs retsone block next to it. It has the command "tellraw @a[thecreator=0] /tellraw @p ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]"
However it does not work. The repeater block is facing into the back of the chain block. It seems that the problem is that the chain block is not being powered for some reason, as a error message doesn't even show up. Anyone know how to fix it?
Soo, this goes on for far too long now.
So I will make this as detailed as possible and if it still won't work after that, please feel free to send me your world and I will make it work.
Starte here:
You have the score objective "thecreator", created and assigned to avrona.
The value of "thecreator" for avora is 0 or less.
Ther first command Block - a repeating, unconditiona, always active command Block:
/testfor avrona
The second commandBlock - a chain, conditional, always active command Block:
/tellraw @p[score_thecreator=0] ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]
This WILL work, unless:
- The nearest player to the command Block does not match with the condition [score_thecreator=0]
- The first commandBlock does not run, in this case just replace it.
1
anyone?
1
bump
1
Also to make sure every player has a score you can do "/scoreboard players add @a thecreator 0"
I already know how to do that. I know a lot about commands. However that wouldn't work as new players join the server all the time, and doing that will also make the people that already have 1 go back to 0, which I don't want. Doesn't everyone spawn in with 0 when they join for the first time?
Could you be more specfic on what thecreator is supposed to be
Why does it have to be a chain?
Could you also tell us a bit more about what this "the creator" thing is, and what it really should do? It would make it a lot easier to help then
Ok, so I want to create achievements on my server. The Creator is the first achievement I am trying to make and it simply involves being on the server at the same time as me. It has to be a chain because it has to run about 5 commands, each doing a different thing and very fast, and quicky changing a player's score to 1 so that none of the commands will repeat for them. So please also involve in your version something that will make sure that the commands don't repeat for someone. For example before the chain signal reaches the block that sets the score to 1, they may already get the {"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":"true"} said again.
1
avronaFirst off when the condition is "testfor avrona", it will execute once, when it changes from false to true. This causes you to never see it, because it appears just as you join, after you left.
The repeater command block auto changes states, not spamming output signals...
If you want to do the above:
execute avrona ~ ~ ~ <command>
And you need to set needs redstone to always active in the repeater cmd block
Secondly,
"tellraw @a[thecreator=0] /tellraw @p ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]"
Is completely wrong.
The correct command:
"tellraw @a[thecreator=0] {"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":"true"}"
Lastly keep in mind that the score for a new player isn't set to 0 automatically...
You need to use /scoreboard players set @p thecreator 0 at least once on every player.
It has to be a chain though.
Why does it have to be a chain? Here it is in one cmd:
/execute avrona ~ ~ ~ /tellraw @a[score_thecreator=0] {"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":"true"}
Could you also tell us a bit more about what this "the creator" thing is, and what it really should do? It would make it a lot easier to help then
1
Also to make sure every player has a score you can do "/scoreboard players add @a thecreator 0"
Anything without a score will be set to 0 and anything with a score will be unchanged. Just activate that at the start of every check.
Could you be more specfic on what thecreator is supposed to be?
Also if it is a score you NEED score_ before it.
Anything without a score will be set to 0 and anything with a score will be unchanged. Just activate that at the start of every check.
Could you be more specfic on what thecreator is supposed to be?
Also if it is a score you NEED score_ before it.
1
Wow.... that is amazing.... I wish I knew it before!
1
1. Probably
2. Please don't talk about that. This thread is about something else.
2. Please don't talk about that. This thread is about something else.
1
bump
1
I honestly hate the new command block system, #BringBackOldCommandBlocks!
1
First off when the condition is "testfor avrona", it will execute once, when it changes from false to true. This causes you to never see it, because it appears just as you join, after you left.
The repeater command block auto changes states, not spamming output signals...
If you want to do the above:
execute avrona ~ ~ ~ <command>
And you need to set needs redstone to always active in the repeater cmd block
Secondly,
"tellraw @a[thecreator=0] /tellraw @p ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]"
Is completely wrong.
The correct command:
"tellraw @a[thecreator=0] {"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":"true"}"
Lastly keep in mind that the score for a new player isn't set to 0 automatically...
You need to use /scoreboard players set @p thecreator 0 at least once on every player.
It has to be a chain though.
1
There is so much wrong...
First off when the condition is "testfor avrona", it will execute once, when it changes from false to true. This causes you to never see it, because it appears just as you join, after you left.
The repeater command block auto changes states, not spamming output signals...
If you want to do the above:
execute avrona ~ ~ ~ <command>
And you need to set needs redstone to always active in the repeater cmd block
Secondly,
"tellraw @a[thecreator=0] /tellraw @p ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]"
Is completely wrong.
The correct command:
"tellraw @a[thecreator=0] {"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":"true"}"
Lastly keep in mind that the score for a new player isn't set to 0 automatically...
You need to use /scoreboard players set @p thecreator 0 at least once on every player.
I made multiple blogs about commands that might be useful to you.
First off when the condition is "testfor avrona", it will execute once, when it changes from false to true. This causes you to never see it, because it appears just as you join, after you left.
The repeater command block auto changes states, not spamming output signals...
If you want to do the above:
execute avrona ~ ~ ~ <command>
And you need to set needs redstone to always active in the repeater cmd block
Secondly,
"tellraw @a[thecreator=0] /tellraw @p ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]"
Is completely wrong.
The correct command:
"tellraw @a[thecreator=0] {"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":"true"}"
Lastly keep in mind that the score for a new player isn't set to 0 automatically...
You need to use /scoreboard players set @p thecreator 0 at least once on every player.
I made multiple blogs about commands that might be useful to you.
1
Nope. Because it's conditional, it gets triggered by a positive result, but the repeat command block isn't outputting a redstone signal. Like Lexxer said, you need to set the chain block to "Always Active."
Still doesn't work.
1
avrona"Needs Redstone" means that it has to be powered for the command to run.
But doesn't it get powered by a positive result of testfor avrona?
Nope. Because it's conditional, it gets triggered by a positive result, but the repeat command block isn't outputting a redstone signal. Like Lexxer said, you need to set the chain block to "Always Active."
1
There's no quotation marks around true at the end.
1
avronaWell, do you get an error message?
Maybe no entity in your world has the right score?
There is no error message and everyone has the score of 0."Needs Redstone" means that it has to be powered for the command to run.
But doesn't it get powered by a positive result of testfor avrona?
No, if it's on 'need Redstone' it will not compute the input at all.
So you either set it to 'always active' or power it manually by setting a Redstone block
right next to it.
1
avronachain, conditional, needs retsone block
"Needs Redstone" means that it has to be powered for the command to run.
1
Well, do you get an error message?
Maybe no entity in your world has the right score?
Maybe no entity in your world has the right score?
1
There is no error message and everyone has the score of 0.
But doesn't it get powered by a positive result of testfor avrona?
"Needs Redstone" means that it has to be powered for the command to run.
But doesn't it get powered by a positive result of testfor avrona?
1
What is thecreator?
I guess it's a score objective?
If so you need
CODE: SELECT ALL
/tellraw @a[score_thecreator=0,score_thecreator_min=0] <JSON>
Doesn't work.
1
What is thecreator?
I guess it's a score objective?
If so you need
If it's not, then could you tell us what it exactly is?
I guess it's a score objective?
If so you need
/tellraw @a[score_thecreator=0,score_thecreator_min=0] <JSON>
If it's not, then could you tell us what it exactly is?
1
How is that suppose to work? Where is the [thecreator=0]?
1
tellraw @p ["text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":"true"]
Try that instead of the "/tellraw @p ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]"
Try that instead of the "/tellraw @p ["",{"text":"--YOU GOT THE ACHIEVEMENT: THE CREATOR!--","color":"dark_green","bold":true}]"