If I may add a question: Is there any way to specify EXACTLY how many hearts you want to damage the player by? Because ussing effect 7 and setting the amplification only increments by 4 hearts I believe.
Rollback Post to RevisionRollBack
Check out innovative redstone and command block concepts with The Redstone Scientist!
If I may add a question: Is there any way to specify EXACTLY how many hearts you want to damage the player by? Because ussing effect 7 and setting the amplification only increments by 4 hearts I believe.
Yes, using only the instant damage effect won't work. However, you can give resistance to the player and set it up so it deals the right amount of damage
Example, an instant damage effect with 0 amplifier will hurt 6 health (3 hearts)
If you apply a resistance effect with 1 amplifier, damage will be 4 health (1,5 hearts)
Thanks
If I helped you, click this magical green button ! Gives me power!
Check out innovative redstone and command block concepts with The Redstone Scientist!
Yes, using only the instant damage effect won't work. However, you can give resistance to the player and set it up so it deals the right amount of damage
Example, an instant damage effect with 0 amplifier will hurt 6 health (3 hearts)
If you apply a resistance effect with 1 amplifier, damage will be 4 health (1,5 hearts)
It would be easier to use a "execute" command.
If I helped you, click this magical green button ! Gives me power!
What command would I use if I want all players in a range of 4 to take damage (3 hearts)?
www.mind-craft-school.com https://www.youtube.com/watch?v=LQTuI5Hx58o
I would suggest using both instant damage and resistance effects.
/effect @p 7 1 and /effect @p 22 1 at the same time to the player = give player +2 hearts then the instant damage does -3 hearts = -1 heart
if you want to use only 1 command:
/effect @p 19 1 10 = amplified poison for 1 sec = pr sec -1 heart = -1 heart
hope this helps (you can combo this up so; instant damage + poison for 2 sec = -5 health!)
If you want your players to have 1 heart left you should do posion because that status effect can't kill, it'll only bring them to half a heart.