Closed Jackiecrazy closed 3 years ago
Thanks so much for the PR! I really appreciate you taking the time to do this. I do have two quick questions before merging as I am not (too) experienced with Mixins or Attributes.
Thank you so much again!
Thanks so much for explaining this! This seems to be a much better method of implementation than creating a bunch of Capabilities like I usually do.
I'll do some extensive testing tomorrow and then I'll merge! Thank you so much for contributing I really appreciate it, if there's anything I can do to help/thank you please let me know :)
I found the new forge way of doing it. Listening to EntityAttributeModificationEvent will allow you to add to the attribute lists of any entity. It's a fairly recent addition, so it might not be backwards compatible, but it provides an "official" way of going around things. Caelus still does mixins, for one.
Thanks for finding that! I'll have a little play around with it and see which I prefer.
I've always been a little cautious with using Mixins, mainly because I haven't learned how to best use them yet but also because they may cause unpredictable issues with Forge updates. EDIT: Currently Researching this properly, it seems pretty reliable in Elenai Dodge 2's case as it doesn't do anything too risky with Mixins.
Your implementation of attributes is very nice though so I think I'll use it, thanks so much again for that.
The formula should be correct.