I am making a Minecraft map and I neep help. I am using a—— /testfor @a {Health:0.0f} ——to test for a death of a player. Is there a way to have this command run all the time, and then put out a redstone signal when the player dies? specific instructions pls- I have no idea how to use a comparator.
The Meaning of Life, the Universe, and Everything.
Location:
Canada
Join Date:
12/1/2017
Posts:
56
Location:
Canada
Minecraft:
SomeTsea
Member Details
In the command block put: /testfor @a. Then it will put out a redstone signal through the comparator all the time the player is alive. Use a block with a redstone torch on it so that when the signal hits the block, the redstone torch will deactivate. When the player dies, the signal from the command block will stop, causing the redstone torch to activate and send out a redstone signal to what every you want. When the player respawns, the command block will activate and the redstone torch will deactivate. (If you are using 1.13+, then testfor commands will not work.)
Hope this helped!
ATTACHMENTS
2018-11-14_16.26.26
Rollback Post to RevisionRollBack
On a scale of one to ten, what is your favorite color of the alphabet?
If I ate myself, would I become twice as big or disappear?
Where was the American Declaration of Independence signed? -At the bottom-
What do you call a polar bear wearing earmuffs? -You can call it anything 'cause it can't hear you-
The Meaning of Life, the Universe, and Everything.
Location:
Canada
Join Date:
12/1/2017
Posts:
56
Location:
Canada
Minecraft:
SomeTsea
Member Details
You could try @p instead of @a. When you are alive, does the command block activate the comparator? It should. If it doesn't, there is something wrong with the command in the command block.
Rollback Post to RevisionRollBack
On a scale of one to ten, what is your favorite color of the alphabet?
If I ate myself, would I become twice as big or disappear?
Where was the American Declaration of Independence signed? -At the bottom-
What do you call a polar bear wearing earmuffs? -You can call it anything 'cause it can't hear you-
I am making a Minecraft map and I neep help. I am using a—— /testfor @a {Health:0.0f} ——to test for a death of a player. Is there a way to have this command run all the time, and then put out a redstone signal when the player dies? specific instructions pls- I have no idea how to use a comparator.
In the command block put: /testfor @a. Then it will put out a redstone signal through the comparator all the time the player is alive. Use a block with a redstone torch on it so that when the signal hits the block, the redstone torch will deactivate. When the player dies, the signal from the command block will stop, causing the redstone torch to activate and send out a redstone signal to what every you want. When the player respawns, the command block will activate and the redstone torch will deactivate. (If you are using 1.13+, then testfor commands will not work.)
Hope this helped!
On a scale of one to ten, what is your favorite color of the alphabet?
If I ate myself, would I become twice as big or disappear?
Where was the American Declaration of Independence signed? -At the bottom-
What do you call a polar bear wearing earmuffs? -You can call it anything 'cause it can't hear you-
This does not appear to be working— when i die, it does not put out a Redstone signal
You could try @p instead of @a. When you are alive, does the command block activate the comparator? It should. If it doesn't, there is something wrong with the command in the command block.
On a scale of one to ten, what is your favorite color of the alphabet?
If I ate myself, would I become twice as big or disappear?
Where was the American Declaration of Independence signed? -At the bottom-
What do you call a polar bear wearing earmuffs? -You can call it anything 'cause it can't hear you-
The command block does activate the comparator, but it does not put out a signal when i die. Do i have to add something to make it within a radius?
You shouldn't have to. I'm not sure why it's not working. It works when I do it. How far away are you from the command block?
On a scale of one to ten, what is your favorite color of the alphabet?
If I ate myself, would I become twice as big or disappear?
Where was the American Declaration of Independence signed? -At the bottom-
What do you call a polar bear wearing earmuffs? -You can call it anything 'cause it can't hear you-
Its working now- I just needed to make it always on. Thank you
You're welcome. No problem.
On a scale of one to ten, what is your favorite color of the alphabet?
If I ate myself, would I become twice as big or disappear?
Where was the American Declaration of Independence signed? -At the bottom-
What do you call a polar bear wearing earmuffs? -You can call it anything 'cause it can't hear you-