Setting absorption amount casts the argument to an integer before applying it as a float.
James103 opened this issue ยท 1 comments
fabric-carpet/src/main/java/carpet/script/value/EntityValue.java
Lines 1586 to 1588 in 5dca846
In the above code, even though absorption should be a float as indicated by the (float)
cast, it is retrieved as a long
using Scarpet methods. This restricts the domain to just integers and does not allow fractional absorption to be set with Scarpet alone.
You can get fractional absorption in the game by giving yourself the Absorption effect, putting on full armor, taking damage once from a cactus, then checking your AbsorptionAmount
.