Spongeapi: Key Absorption

Created on 9 Jun 2016  路  4Comments  路  Source: SpongePowered/SpongeAPI

hi,
can you create a key to return absorption heart ?

accepted data

Most helpful comment

This is important to have, as mods can and do set absorption without applying the potion effect (see Thaumcraft's Runic Shielding).

All 4 comments

Would Keys.MAX_HEALTH work? It returns the total number of health available (in half-hearts, so it's 20 with 10 hearts).

@JBYoshi No, there should be an ABSORPTION key/data.

This is important to have, as mods can and do set absorption without applying the potion effect (see Thaumcraft's Runic Shielding).

This is pending an Attributes API as absorption is handled through Attributes last I recall.

Was this page helpful?
0 / 5 - 0 ratings