Hello, is there a command in snapshot 14w30c that can detect when a player has certain hearts? Thank you.
8
Ok I am in Snapshot 14w30c
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.
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.
It says that the command/ testfor @a[score_HP_min=10,score_HP=10] doesn't exist. Please help!
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.
Thank you this is exactly what I was looking for!
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 healthFor example, detecting a player that has exactly 10 health (5 hearts):
/testfor @a[score_HP_min=10,score_HP=10]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.
