Minecraft Data Packs / Challenge

Attrition: death removes max health

  • check_circle Advancements
  • check_circle Functions
  • check_circle Loot Tables
  • 23,835 views, 24 today
  • 2,572 downloads, 3 today
  • 138
  • 113
  • 89
Required Resource Pack
MacchuPicchu avatar MacchuPicchu
Level 37 : Artisan Pokemon

  Attrition is a simple, vanillalike data pack that’s designed for players who want something harder than regular survival, but not quite as harsh as hardcore mode. Here’s how it works:

  • You lose one heart of max health each time you die
  • You gain one heart of max health each time you eat an enchanted golden apple, up to a maximum of 20 hearts
  • If you die with only one heart of max health left, you lose the game and are put into spectator mode
  Attrition plays sounds and displays custom chat messages whenever any of these three events happen, but it has no effect on any other aspect of gameplay.

  Attrition is meant to blend in well with vanilla Minecraft – almost as if it were simply an alternative gamemode. Because of this, it can be played by itself, or in conjunction with other data packs. Enjoy :D 


Are you looking for expanded features for this data pack, like lifesteal or multiplayer revive?
If so, take a look at Attrition's companion data pack, Contrition!


🔢 Options menu
  A custom options menu for Attrition is available via the /function mp.attr:display_options command (picture shown below). You can use this menu to test out the data pack, customize your experience with it, or uninstall it.

Attrition: death removes max health Minecraft Data Pack

🏞 Resource pack
  Attrition includes an optional resource pack by AmyTheMudkip that subtly retextures the player’s heads-up display, including the health bar, armor bar, and hunger bar. A side-by-side comparison can be seen below.

Attrition: death removes max health Minecraft Data Pack

ℹ️ Extra info
  Attrition is compatible with both single and multiplayer, and it should work seamlessly with any other data pack you use. However, it is not designed for Hardcore mode, so please play in a regular survival world!

  When playing Attrition, do whatever it takes to stay alive! One tip is to prepare backup gear and store it near your respawn point – that way, if you do die, you'll be less likely to die again while trying to retrieve your original items.

  In vanilla Minecraft, enchanted golden apples are a mostly useless trophy item. In Attrition, however, they are the most valuable item in the game. Explore your world regularly to find them and keep your maximum health high!

▶️ Content creation and copyright information
If you'd like to create content with my data pack on YouTube or some other platform, please include my name, the name of this data pack, and a link to this webpage somewhere in the description.

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. For more information on using and distributing this data pack, follow the link provided.

↔️ Version compatibility
Minecraft version  
Data pack
Resource pack
Download (Attrition 2.3.2)
Download (Attrition 2.3.2)
Download (Attrition 2.3.2)
Download (Attrition 2.3.2)

#️⃣ Contact me
If you have a question, suggestion, comment, or concern about Attrition, please do let me know!

Leave a comment below, message me on PMC, or message me on Twitter.

Alternatively, you can always leave a comment on the Attrition video showcase on YouTube!

CreditArt & resource pack by AmyTheMudkip; technical advice by rx97 et al.
CompatibilityMinecraft 1.16
toMinecraft 1.19

14 Update Logs

Attrition 2.3.2 : by MacchuPicchu 06/10/2022 3:09:40 pmJun 10th

This update brings you compatibility with Minecraft 1.19 along with some small tweaks.
  • Updated the data pack's pack_format number to 10
  • Updated the texture pack's pack_format number to 9
  • Renamed some internal files for clarity
  • Updated the flavor texts in 1.19 to include a reference to the fact that enchanted golden apples can now be found in Ancient Cities

Create an account or sign in to comment.

08/09/2022 8:59 pm
Level 1 : New Miner
Zenkuzo avatar
How do i re-include players?
08/10/2022 2:51 amhistory
Level 37 : Artisan Pokemon
MacchuPicchu avatar
You're not supposed to, but if you really want to know, here's the two commands you have to type:

/tag <player_name> remove mp.attr.exclude_player

/scoreboard players set <player_name> mp.attr.known 1
08/07/2022 12:35 am
Level 1 : New Miner
Reisert avatar
Hi Bro nice datapack is very good, i have a question if i wanna chance the maximun hearts to 15 how do i do it?
08/07/2022 1:55 am
Level 37 : Artisan Pokemon
MacchuPicchu avatar
Hey, thanks!! I haven't tried this myself, but if you type

/scoreboard players set $mp.attr.fakeplayer mp.attr.cap 30,

you should get the heart maximum that you want
08/07/2022 10:31 pm
Level 1 : New Miner
Reisert avatar
thanks its so good, i wanna create a server semi vanila hardcore but i wanna 15 max hearts and i dont know much about datapacks, I appreciate it a lot.
07/18/2022 12:58 pm
Level 1 : New Miner
vNerves avatar
How do i make it so that when i kill a player i gain a heart?
08/04/2022 11:25 am
Level 7 : Apprentice Miner
CountPractical avatar
you can also combine contrition and attirtion for a full lifesteal! :)
07/18/2022 1:10 pm
Level 37 : Artisan Pokemon
MacchuPicchu avatar
That feature is part of my second data pack, Contrition. Try it out and let me know if you like it!
07/18/2022 10:08 am
Level 1 : New Miner
Shenki avatar
The date pack is very interesting! But it would be even more interesting if, with the help of some altor, another (surviving player with more than 3 hp) could transfer his soul (2 hp) to a dead player in order to revive him with one heart! Thanks
07/18/2022 10:49 am
Level 37 : Artisan Pokemon
MacchuPicchu avatar
That is a very good idea, I might add that... there is already a way to revive dead players with my Contrition data pack, though, if you want to try that out!
Planet Minecraft


© 2010 - 2022