1

Commands

zombie523 7/30/14 6:58 pm
445
8/2/2014 3:25 pm
Hello, is there a command in snapshot 14w30c that can detect when a player has certain hearts? Thank you.
Posted by
zombie523
Level 14 : Journeyman Warrior
4

  Have something to say?

JoinSign in

8

zombie523
08/02/2014 3:25 pm
Level 14 : Journeyman Warrior
Ok I am in Snapshot 14w30c
1
zombie523
08/02/2014 3:13 pm
Level 14 : Journeyman Warrior
It just says Unknown Command I copied and pasted the command into a command block and also tried typing it but it doesn't work.
1
Skylinerw
08/02/2014 3:21 pm
Level 16 : Journeyman System
What version are you using? If I recall, prior to 1.8 the output of a /testfor wouldn't display/update if no players were found (and would also say "unknown command" if you power the command block without any commands in it). If you've copy/pasted the command (and also created the objective), then you'll have to make sure there is at least one player that has exactly 10 health with the command you've used.
1
zombie523
08/02/2014 11:35 am
Level 14 : Journeyman Warrior
It says that the command/ testfor @a[score_HP_min=10,score_HP=10] doesn't exist. Please help!
1
RageLokiCat
08/02/2014 11:47 am
Level 21 : Expert Pony
Sorry, could you post exactly what it says is the issue? Make sure everything is spelled right and that you re-triggered the command block.
1
zombie523
07/31/2014 11:53 am
Level 14 : Journeyman Warrior
Thank you this is exactly what I was looking for!
1
Skylinerw
07/31/2014 12:43 am
Level 16 : Journeyman System
zombie523Hello, is there a command in snapshot 14w30c that can detect when a player has certain hearts? Thank you.

You'll be looking for the 'health' objective-type:

/scoreboard objectives add HP health

For example, detecting a player that has exactly 10 health (5 hearts):

/testfor @a[score_HP_min=10,score_HP=10]
1
Nouveau Network
07/30/2014 7:01 pm
Level 2 : Apprentice Network
Not that I know of, I'm not that good with that sorta stuff though.. You can make it so when you press tab you see somebody's health so the OP can do a command on them, but I don't think you can do it automatic, I might be wrong.
1

Welcome