1

Commands

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

Create an account or sign in to comment.

8

1
08/02/2014 3:25 pm
Level 14 : Journeyman Warrior
zombie523
zombie523's Avatar
Ok I am in Snapshot 14w30c
1
08/02/2014 3:13 pm
Level 14 : Journeyman Warrior
zombie523
zombie523's Avatar
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
08/02/2014 3:21 pm
Level 16 : Journeyman Engineer
Skylinerw
Skylinerw's Avatar
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
08/02/2014 11:35 am
Level 14 : Journeyman Warrior
zombie523
zombie523's Avatar
It says that the command/ testfor @a[score_HP_min=10,score_HP=10] doesn't exist. Please help!
1
08/02/2014 11:47 am
Level 21 : Expert Pony
RageLokiCat
RageLokiCat's Avatar
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
07/31/2014 11:53 am
Level 14 : Journeyman Warrior
zombie523
zombie523's Avatar
Thank you this is exactly what I was looking for!
1
07/31/2014 12:43 am
Level 16 : Journeyman Engineer
Skylinerw
Skylinerw's Avatar
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
07/30/2014 7:01 pm
Level 2 : Apprentice Network
Nouveau Network
Nouveau Network's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome