Minecraft Data Packs / Game Mechanic

Attrition: death reduces max health

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • 52,412 views, 52 today
  • 6,911 downloads, 11 today
MacchuPicchu's Avatar MacchuPicchu
Level 51 : Grandmaster Pokémon
70
  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 can 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 reduces 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 reduces 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.


#️⃣ 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 Discord at MacchuPicchu#8655.

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.21
Tags

29 Update Logs

Attrition 2.7.2 : by MacchuPicchu 07/17/2024 11:53:45 pmJul 17th

A few very small changes as a follow-up to last weekend's release of Attrition 2.7.1.

CHANGES
  • Added some checks for Contrition flavor text in the health loss section
  • Removed some unused lines of code
FIXES
  • The info tooltip for the Customize Health Gain Chance option (advanced options menu) now correctly states that the option's effects can be either global or individual depending on usage
LOAD MORE LOGS

Create an account or sign in to comment.

qu33t
06/30/2024 3:10 pm
Level 1 : New Miner
qu33t's Avatar
Would you be up for making an add on pack that adds a recipe for the enchanted gapple? Something difficult that you can’t farm or get early game, but something that is still slightly more doable than straight rng
1
MacchuPicchu
07/01/2024 12:34 am
Level 51 : Grandmaster Pokémon
history
MacchuPicchu's Avatar
You can do it yourself, it won't take more than half an hour to figure out, I promise. First go to https://misode.github.io/recipe/ to create the recipe file exactly how you want it. Then to add it, open my data pack and navigate to data > mp.attr. Here you'll see two folders called advancement and function, create a third folder here called recipe and put the recipe file in it. Easy as that
1
User5158601G
06/27/2024 4:00 pm
Level 1 : New Miner
history
User5158601G's Avatar
Two of my friends were convinced that when one of them died it would punish one or both of them on rare occasion. Is that a possibility? I can't have it be punishing other players when they have played extremely carefully. I need to change that if so. Like they were hyper convinced this is possible but I wasn't online to see it happen.
1
MacchuPicchu
06/28/2024 12:37 am
Level 51 : Grandmaster Pokémon
history
MacchuPicchu's Avatar
If this is true this is indeed a massive issue, you're right. Can you be a little more clear about what supposedly happened? Like what do you mean by "it would punish one or both of them" as in usually it works correctly but rarely it doesn't?

Also, are they losing hearts when the other person dies? Do they get sent any corresponding chat messages?

I also need to know if one of the players had recently switched dimensions or logged in to the world when this happened
1
User5158601G
06/29/2024 3:56 pm
Level 1 : New Miner
history
User5158601G's Avatar
For example there are 3 of us playing. When one of us dies we all lose a heart and receive the flavor text. If he recovers the heart with a enchanted apple it will work for all of us as well. And yes this seems to happen when players are going in and out of nether portal but I can't promise. He just died after me and the other person had just come through the portal. I think that's why it happens to some players but not all. It's just a vanilla game for the most part.



Mod works accordingly most of the time. But I think your hunch is correct and maybe it has something to do with the portal traveling. It makes it think we are him or something. Sorry thats all I know
1
MacchuPicchu
07/13/2024 10:43 am
Level 51 : Grandmaster Pokémon
MacchuPicchu's Avatar
Hey man, so I tried to replicate this bug while developing Attrition 2.7.1. I can't replicate it. Moreover, I have no idea how this behavior is even remotely possible.

If you want to help me figure it out, please reach out to me on Discord, and we can go from there. Otherwise I'm kind of at a loss here. Thanks
1
Noobek_XD
06/24/2024 3:14 am
Level 1 : New Miner
Noobek_XD's Avatar
Hardcore mode doesn't quite work. After death, it takes the heart, but does not restore it, only there is an observer mode. Checked at 1.21
1
MacchuPicchu
06/24/2024 9:08 am
Level 51 : Grandmaster Pokémon
MacchuPicchu's Avatar
I don't quite understand what you mean. This is not designed to work with vanilla hardcore mode
1
Noobek_XD
06/24/2024 5:21 pm
Level 1 : New Miner
Noobek_XD's Avatar
I understand, maybe that's why. When I die, there is no heart, but there is no rebirth
1
0rez
06/18/2024 7:52 pm
Level 1 : New Miner
0rez's Avatar
Is this updated for 1.21? The server I'm running is having issues pulling options menu up and hearts don't disappear correctly on death.
2

Welcome