Minecraft Data Packs / Game Mechanic

Heart_Loss - permanently lose hearts by dying

  • check_circle Advancements
  • check_circle Functions
  • check_circle Recipes
  • 4,039 views, 9 today
  • 228 downloads, 0 today
  • 10
  • 5
  • 4
Required Resource Pack
imalittlhigh's Avatar imalittlhigh
Level 61 : High Grandmaster Sweetheart
107
You need my HeartLossPack resourcepack for the best experience!


This datapack makes you loose half a heart if you die.
You cant fall below one heart through dying though.

This pack is Server compatible.

!commands in this pack alter player attributes (generic.max_health)!
How to disable the pack properly:
- in singleplayer run /function heartloss:disable
- run /datapack disable "file/Heart_Loss.zip" or just delete the .zip file from your folder
- on a server run /attribute <playername> generic.max_health base set 20 for EVERY player
- run /datapack disable "file/Heart_Loss.zip" or just delete the .zip file from your folder


How it works:
If you die you loose half a heart that cant be regenerated.
To regain the heart craft a Heart in a Bottle with 2 Regeneration II & 2 Instant Health II potions

Heart_Loss - permanently lose hearts by dying Minecraft Data Pack
Heart_Loss - permanently lose hearts by dying Minecraft Data Pack

Then drink the Heart in a Bottle like a Potion

Heart_Loss - permanently lose hearts by dying Minecraft Data Pack



If you run any other Datapacks that use the Luck potion effect you will run into some issues!

if you have any questions feel free to ask me
CompatibilityMinecraft 1.17
toMinecraft 1.18
Tags

Create an account or sign in to comment.

1
01/03/2022 1:51 pmhistory
Level 1 : New Miner
ElDown
ElDown's Avatar
it's a good plugin, but it doesn't work if a player have more than 20 of health and needs an option to disable the poison (im playing without health regen and it's really unfair with the poison) apart from that, the plugin works very well and it's such a great idea.
Sorry for bad english.
1
01/05/2022 6:47 am
Level 61 : High Grandmaster Sweetheart
imalittlhigh
imalittlhigh's Avatar
Hey! Yeah I had to hard code every health amount due to the function messing with player nbt so it sadly wont work with anything other than the vanilla health stats. And yes the poison is a bit unfair if you have no regen but the healthamount that the function edits in the player nbt only updates after the player takes damage so i had to do something. Since there is a respawn protection i had to choose poison. Sadly there is no other way i can think of to fix this.
1
01/08/2022 9:32 pm
Level 1 : New Miner
ElDown
ElDown's Avatar
Oh i see, i will blame the mc limitations, anyways, great job with the dp. (i said plugin before, im just stupid)
2
12/11/2021 7:57 pm
Level 1 : New Miner
User3942145G
User3942145G's Avatar
Great datapack! Added some spice to my SMP after hard mode got a bit boring. Thanks!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome