1
Need /testfor help!!!!!!
Hello minecrafters! I need your help figuring out why this won't activate a redstone comparator, here is the command placed in the command block:
/testfor @p [score_ZKills=1,score_ZKills_min=1,{Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]}
/testfor @p [score_ZKills=1,score_ZKills_min=1,{Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]}
Create an account or sign in to comment.
8
1
XxcrazykieranxX
CODE: SELECT ALL
/scoreboard players add @p[score_ZKills=1,score_ZKills_min=0] {Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]} Points 60
This command in a command block sais this:
/scoreboard players add <player> <objective> <count>
I do not know how to fix this, do any of you guys know?
Have a testfor command block seeing if the player has the corect item, then a comparator facing into the other command block that adds the score to the objective for that player
1
/scoreboard players add @p[score_ZKills=1,score_ZKills_min=0] {Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]} Points 60
This command in a command block sais this:
/scoreboard players add <player> <objective> <count>
I do not know how to fix this, do any of you guys know?
1
Hey, what i said before is no longer true, your command should work if you use the newest snapshot, which is 14w10a. In this snapshot they added the ability to use datatags in /scoreboard.
1
pressed edit instead of quote , anyways, read the quote
1
One more thing, how do you add dummy points on the scoreboard that includes
' {Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]} ' ???
' {Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]} ' ???
1
/testfor @p {Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]}
Comperator Output Has A Commandblock With:
/scoreboard players set @p <objective> <score>
If this is not what you needed, my Apologies, Please state more information on what you need to be done.
~TedTheTechie
1
Thanks redstone pro, this has really helped, you got yourself another sub!!!!
1
I see two things that could cause your problem:
You wrote
See this:
it starts with a square bracked but ends with a curly one.
Another thing that could cause the problem is this:
As far as i know it should be:
To fix both problems you have to do two things: Remove the blank bewteen "@p [" and replace "ZKills_min=1,{Inventory" with "ZKills_min=1] {Inventory"
So the fixed command should look like this:
You wrote
/testfor @p [score_ZKills=1,score_ZKills_min=1,{Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]}
See this:
[score_ZKills=1,score_ZKills_min=1,{Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]}
it starts with a square bracked but ends with a curly one.
Another thing that could cause the problem is this:
@p [score_ZKills=1,score_ZKills_min=1,{Inventory:....
As far as i know it should be:
@p[score_ZKills=1,score_ZKills_min=1] {Inventory:....
To fix both problems you have to do two things: Remove the blank bewteen "@p [" and replace "ZKills_min=1,{Inventory" with "ZKills_min=1] {Inventory"
So the fixed command should look like this:
/testfor @p[score_ZKills=1,score_ZKills_min=1] {Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]}