Minecraft Data Packs / Game Mechanic

Attrition: death reduces max health

  • check_circle Advancements
  • check_circle Functions
  • 48,693 views, 89 today
  • 6,226 downloads, 20 today
MacchuPicchu's Avatar MacchuPicchu
Level 50 : Grandmaster Pokemon
63
  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 pre-release
Tags

26 Update Logs

Attrition 2.6.1 : by MacchuPicchu 05/17/2024 6:24:52 pmtoday

🎉 PMC LEVEL 50 LET'S GOOOOOOOOOOOO 🎉


Celebration time!! Please enjoy Attrition 2.6.1, which brings you a new option for customization - plus a ton of bug fixes. Well, for me, anyway.

ADDITIONS
  • Extended compatibility for Attrition to snapshot 24w20a (pack format 44)
  • Added a new customizable feature: the health floor, which is exactly what it sounds like. You can find it in the advanced options menu. It accepts arguments in health points, where the number entered becomes the lowest amount of health a player can have and still be considered alive.
  • Added new flavor texts to certain in-game events.
CHANGES
  • The confirmation messages for individual toggles (for Attrition, that's Fixed Text, Flavor Text, and Event Sounds) now briefly display above the player's action bar instead of cluttering up the chat box.
  • The health score ranges at which flavor texts for dying or for eating an enchanted golden apple can be shown have been updated to reflect the new default max health cap.
  • A number of assorted flavor texts have been updated; for example, the one that lists all the places a player can obtain enchanted golden apples now mentions the new Trial Chambers.
FIXES
  • Fixed an issue where eating enchanted golden apples past the max health cap would still affect the player's health gain chance
  • Fixed an issue where eating enchanted golden apples past the max health cap wouldn't always display the correct fixed or flavor texts
  • Fixed an issue where Attrition didn't correctly enforce the upper or lower bounds of players' health gain chance
  • Fixed an issue where the flavor texts for dying or for eating an enchanted golden apple wouldn't trigger if the player was on certain half-heart increments of health
LOAD MORE LOGS

Create an account or sign in to comment.

MacchuPicchu
05/06/2024 2:26 am
Level 50 : Grandmaster Pokemon
history
MacchuPicchu's Avatar
So . . . we need to have another talk about balancing the enchanted golden apple's functionality in Attrition. As you may know, in the upcoming Minecraft 1.21 release, Mojang will be adding a new structure, the Trial Chambers.

These structures contain special loot blocks called ominous vaults. It takes a few extra steps to be able to open one, but once you do, the chance of getting an enchanted golden apple as loot appears to be a whopping 17% (!!!) at time of writing - and, of course, there are several of these vaults in every trial chamber. The kicker is that you can buy a map to a trial chamber from a cartographer villager. In other words, all you need now is access to a village and voilà, you've got several extra hearts of max health basically for free and pretty much guaranteed.

This has completely destroyed the balancing of my data pack, and in retrospect, lowering the max health cap to 15 was a band-aid fix. Because of this, I've decided to revert that change and go back to the drawing board. My new solution is a dynamic algorithm that changes the probability that enchanted golden apples will grant max health as the player eats more and more of them. At first, that probability is 100%, and eventually, it will settle within a range of about 40 to 60%. On average, reaching the full ten hearts of extra max health should require eating 16 enchanted golden apples now, assuming no deaths.

Let me know what you think of this change!
2
Unavalible_User
05/06/2024 5:13 pm
Level 12 : Journeyman Cookie
Unavalible_User's Avatar
contrition does technically allow one to cheese this by withdrawing hea-shoot I shouldn't be revealing state secrets for free
2
MacchuPicchu
05/06/2024 6:04 pm
Level 50 : Grandmaster Pokemon
history
MacchuPicchu's Avatar
Wait, but what's the cheese? Contrition is supposed to avoid the algorithm entirely
2
Unavalible_User
05/06/2024 6:52 pm
Level 12 : Journeyman Cookie
history
Unavalible_User's Avatar
eat uber apple at 10, withdraw via lifeshare
repeat until you have 10, then drink them all
2
MacchuPicchu
05/06/2024 7:00 pm
Level 50 : Grandmaster Pokemon
history
MacchuPicchu's Avatar
Right but the algorithm isn't based off of your current health, it's based off of your history of eating enchanted golden apples. Eating an über apple at 10 hearts is only 100% guaranteed to give a heart the first time you eat one, if you keep doing it your chances will go down regardless. So unless I am the big dumb it should work out to be the same. Have you tried this cheese yourself?
2
Unavalible_User
05/06/2024 11:38 pm
Level 12 : Journeyman Cookie
Unavalible_User's Avatar
ohh okay, that wasn't clear
1
MacchuPicchu
05/06/2024 2:32 am
Level 50 : Grandmaster Pokemon
MacchuPicchu's Avatar
Oh, one more thing: Potions of Accretion (from the Contrition data pack) are not affected by this algorithm. Gaining health from Lifesteal should not be affected, either. If they somehow are for you, let me know asap
1
User5126756G
05/05/2024 5:35 am
Level 1 : New Miner
history
User5126756G's Avatar
Crafting a potion of accretion doesn't actually take away a heart from the player. Is this a bug? (version 1.20.1)
1
MacchuPicchu
05/05/2024 4:05 pm
Level 50 : Grandmaster Pokemon
MacchuPicchu's Avatar
Current version doesn't support Minecraft 1.20.1. Visit the Modrinth page and download an earlier version of Contrition and Attrition for it to work
1
ZORBZE
05/03/2024 8:06 am
Level 1 : New Miner
ZORBZE's Avatar
when are you going to update it to 1.20.5?
1
MacchuPicchu
05/03/2024 11:39 am
Level 50 : Grandmaster Pokemon
history
MacchuPicchu's Avatar
Today I ran into more problems while testing today, I will get it out this weekend I promise
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome