Winged

Winged

2M Downloads

How to add compatibility with your mod

ricksouth opened this issue ยท 5 comments

commented

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 :)

commented
commented

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?

commented

I did not know that existed! I'll take a look and let you know, thanks ๐Ÿ˜„

commented

It was recently added in a collab between Technic1an and me to turn FFL from a user-library to a core Fabric API

commented

Appreciate it! Added support via boolean foundelytra = EntityElytraEvents.CUSTOM.invoker().useCustomElytra(player, false);