How to add compatibility with your mod
ricksouth opened this issue ยท 5 comments
Hi!
I'd love to make your mod compatible with Easy Elytra Takeoff. How can I check if the player has wings equiped? I'd prefer it if there was an option without adding a dependency in the build.gradle.
For adding compatibility with Colytra in Forge, I check for attributes on the player, via:
Collection<AttributeInstance> atrb = player.getAttributes().getSyncableAttributes();
for (AttributeInstance ai : atrb) {
for (AttributeModifier m : ai.getModifiers()) {
String name = m.getName().toLowerCase();
Would something like this be possible? Otherwise please let me know :)
Serilum/.issue-tracker#245 for reference
I don't know if you need to know about Winged specifically but since we use EntityElytraEvents#CUSTOM I guess you could just generalize your code to use this instead?
It was recently added in a collab between Technic1an and me to turn FFL from a user-library to a core Fabric API