DragonLoot

DragonLoot

16M Downloads

Consider using FallFlyingLib?

NotJustAnna opened this issue ยท 2 comments

commented

Hi, I'm a fellow Fabric mod developer and author of https://github.com/CafeteriaGuild/FallFlyingLib

Would you consider using FallFlyingLib instead of Mixin-ing into the entities?

FallFlyingLib exists to make sure mods don't clash by mixin-ing into the tiny LivingEntity#initAi method. (Been there, done that)
I tried to make it flexible yet simple enough for everyone.

Someone asked in my guild for compatibility between FallFlyingLib-based mods and DragonLoot, so I figured I might as well ask!

commented

hey adriantodt,
I actually tried to use fallflyinglib when I initially started this mod but I couldn't figure out how I can use it xD so I just made my own mixins for the elytra and all are @Injections so it should be compatible with other mods like fallflyinglib?

commented

I don't blame you, I updated the FallFlyingLib rather recently to be a better library, API wise.

Sadly, the amount of hooks in FallFlyingLib made me use a @reDIrect in the initAi because I'd have to hook basically between each method. (and override some of them as well)

The new API is simpler, and is based on PlayerAbilityLib. You can see an example implementation here:

https://github.com/CafeteriaGuild/FallFlyingLib/blob/master/src/main/java/net/adriantodt/fallflyinglib/impl/support/VanillaSupport.java