Data Packs Weapons and Armor

Useful Armor - Absorption Addon

  • 4k views 0 today
  • save_alt 301 downloads
Compatibility
Minecraft 1.16
to version
Minecraft 1.18
Changes include
  • Functions
  • 5
  • 8
  • 5
Antinous
Lvl 38Artisan Architect
15
Useful Armor - Absorption Addon

This is an alternative method of fortifying Minecraft's armor. Rather than having to heal yourself to make armor more helpful, you are granted with a variable Absorption effect every 20 seconds, depending on the Chestplate you wear. But due to Datapack limitations, I'm unable to stack these Absorption values, unlike the generic.MaxHealth attribute used in Useful Armor. Because of this, the Absorption is only bound to Chestplates. (And yes, this is compatible with the original Datapack.)

To encourage the use of Golden Chestplates, they bear the most Absorption.

The list:

Golden Chestplate: Absorption 10 (20 Hearts)
Netherite Chestplate: Absorption 9 (18 Hearts)
Diamond Chestplate: Absorption 8 (16 Hearts)
Iron Chestplate: Absorption 7 (14 Hearts)
Chainmail Chestplate: Absorption 6 (12 Hearts)
Leather Chestplate: Absorption 5 (10 Hearts)

More like this

  Have something to say?

h_h_h
11/25/2021 3:48 am
Level 38 : Artisan Blob
I think you can stack the absorption just by checking how much armor the player is wearing? Eg "execute if (command to check what armor player is wearing) run effect give (the effect)." If the player is wearing leggings and chestplate then give a higher absorption effect than if the player wears either armor piece alone.
1
Antinous
11/25/2021 5:52 pm
Level 38 : Artisan Architect
Hm, yeah, that's a great idea. I'll consider doing it when I get back into developing Datapacks.
1
eeiiu
10/11/2021 6:51 am
Level 31 : Artisan Crafter
one of the best datapack ive seen so far 😁 great work keep it up!!
2
zai4z
10/08/2021 3:16 pm
Level 25 : Expert Sus
Does absorbtion stack with golden apples / golden enchanted apples?
1
Antinous
10/08/2021 5:03 pm
Level 38 : Artisan Architect
Unfortunately not. Absorption, as it stands now, is not an Attribute, therefore cannot stack. It must be a potion effect, and because of this, I had to apply the Absorption to Chestplates only.

The effect, however doesn't interfere with itself when different levels and times are applied. You will notice this when eating a Golden Apple and letting the Armor Absorption wear off.
1

Welcome