1

Need /testfor help!!!!!!

XxcrazykieranxX's Avatar XxcrazykieranxX2/22/14 7:55 pm
1 emeralds 739 8
3/6/2014 5:53 pm
poltercreeper's Avatar poltercreeper
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"}}}]}
Posted by XxcrazykieranxX's Avatar
XxcrazykieranxX
Level 29 : Expert Pixel Painter
8

Create an account or sign in to comment.

8

1
03/05/2014 6:04 am
Level 16 : Journeyman Engineer
atomick86
atomick86's Avatar
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
03/04/2014 4:59 pm
Level 29 : Expert Pixel Painter
XxcrazykieranxX
XxcrazykieranxX's Avatar
/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
03/04/2014 5:46 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
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
03/06/2014 5:53 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
pressed edit instead of quote , anyways, read the quote
1
02/22/2014 9:21 pm
Level 29 : Expert Pixel Painter
XxcrazykieranxX
XxcrazykieranxX's Avatar
One more thing, how do you add dummy points on the scoreboard that includes
' {Inventory:[{Slot:17b,tag:{display:{Name:"You Are Player 1"}}}]} ' ???
1
02/22/2014 10:28 pm
Level 49 : Master Technomancer
TedTheTechie
TedTheTechie's Avatar
/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
02/22/2014 8:50 pm
Level 29 : Expert Pixel Painter
XxcrazykieranxX
XxcrazykieranxX's Avatar
Thanks redstone pro, this has really helped, you got yourself another sub!!!!
1
02/22/2014 8:20 pm
Level 9 : Apprentice Modder
Destian_
Destian_'s Avatar
I see two things that could cause your problem:
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"}}}]}
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome