(Based on this thread)
Using external programs, it is possible to create an effect which actually decreases a players maximum health. This is achieved by using the health boost effect with a negative level, and is not possible without use of an external program.
However (with the use of an external program), I can only create the effect once. Is there any way I can summon the effect over and over?
I have a few theories on how this could be done, but none of them have worked.
- Create a "negative" potion, and place it in a chest. Summon the item in the chest as a splash potion directly next to a player.
- Remove the physics from a negative splash potion, leaving it suspended in mid-air. Copy and paste the entity on the ground nearby a player.
Normally, my strategy to solving this problem would be something along the lines of:
- Clone a dispenser containing the potion above all players.
- Activate the dispenser.
- Break the dispenser, and the block activating it.` However, this will not always work, since players might be completely surrounded in blocks, or suffocating in a wall.