Up-Mods / Icarus

Minecraft mod that adds a bunch of colourful and unique wings
https://curseforge.com/projects/428151
Other
12 stars 15 forks source link

More Origins Compatability #4

Closed NixityNull closed 1 year ago

NixityNull commented 3 years ago

Is it possible to maybe add the ability to add specific kinds of permawings to specific origins via datapack, similar to the mermod?

CammiePone commented 3 years ago

Yes it is doable, but I'm probably not going to do it. I'll keep it in the back pocket tho

seylerius commented 2 years ago

Is there a way to manually swap it through command abuse?

seylerius commented 2 years ago

Better question, are you open to a three sentence write-up of how you'd do it if you did, and would you accept a pull request?

CammiePone commented 2 years ago

I would just make it a cosmetic power where you put the item id of the wings you want

seylerius commented 2 years ago

That makes sense. Thank you!

On Mon, Dec 6, 2021, 14:48 Cammie @.***> wrote:

I would just make it a cosmetic power where you put the item id of the wings you want

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CammiePone/Icarus/issues/4#issuecomment-987328631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIXY7LSFJCXZFXPD6I3523UPU4VDANCNFSM5HFM2IAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

suuty commented 2 years ago

could u make it so that we can chose what armour slows u down when flying

Merith-TK commented 2 years ago

I definately would like to have a "origins power" based, config for which set of wings it has by default,

NixityNull commented 2 years ago

It's me again, just wondering what code you used to add the wings to the icarae origin, because the .json file for the wings power has literally only one line of code.

CammiePone commented 2 years ago

It's me again, just wondering what code you used to add the wings to the icarae origin, because the .json file for the wings power has literally only one line of code.

Java. The power json is just a dummy json.

could u make it so that we can chose what armour slows u down when flying

no

CammiePone commented 2 years ago

I should also probably update y'all and let you know that it will be happening eventually, just not right now.

BioTechproject27 commented 2 years ago

It's me again, just wondering what code you used to add the wings to the icarae origin, because the .json file for the wings power has literally only one line of code.

Ay, kinda new here and want to add icarus wings to my origin. Does the origin you're talking about have those and if so could you please post a link to it? I'm having such a hard time adding those. Since /item replace doesn't work as trinkets isn't a new inventory slot like the others so it doesn't get recognized, I also can't use /data command as one can't modify player data like this. It's just such a pain and I need help.

NixityNull commented 2 years ago

It's me again, just wondering what code you used to add the wings to the icarae origin, because the .json file for the wings power has literally only one line of code.

Ay, kinda new here and want to add icarus wings to my origin. Does the origin you're talking about have those and if so could you please post a link to it? I'm having such a hard time adding those. Since /item replace doesn't work as trinkets isn't a new inventory slot like the others so it doesn't get recognized, I also can't use /data command as one can't modify player data like this. It's just such a pain and I need help.

I'm trying to figure it out myself still lol

tylerl commented 2 years ago

@NixityNull I've never written Minecraft mods before, and haven't written Java in over a decade. But after spending just 2 hours with the Fabric quick start guide and then reading the source code for this mod, the following stands out:

Origins compatibility is triggered here:

https://github.com/CammiePone/Icarus/blob/3c633051cbd0bc01892c940af91e32583d6be9c5/src/main/java/dev/cammiescorner/icarus/Icarus.java#L25

Which you then cross-reference with this:

https://github.com/CammiePone/Icarus/blob/3c633051cbd0bc01892c940af91e32583d6be9c5/src/main/java/dev/cammiescorner/icarus/core/integration/IcarusOrigins.java#L13

...which altogether means that HAS_POWERED_FLIGHT is false if the Origins mod isn't loaded. And if it is loaded then it's determined by whether your origin has the icarus:powered_flight power.

Searching for HAS_POWERED_FLIGHT through the rest of the mod shows that there's some reference in the wings rendering code too...

https://github.com/CammiePone/Icarus/blob/3c633051cbd0bc01892c940af91e32583d6be9c5/src/main/java/dev/cammiescorner/icarus/client/renderers/WingsFeatureRenderer.java#L53

Which if I'm reading the code correctly, it looks like we have the powered_flight origin and no wings equipped, then it uses the "feathered_wings" texture.

So it looks like if you want anything different to happen, then you'd need to change the code.

It sounds like CammiePone isn't super interested in implementing whatever you're thinking about at the moment, so fork the repo and implement the feature(s) however you'd like them. You can then send CammiePone a PR and maybe it'll be accepted and maybe it won't. But honestly that part doesn't so much matter. If all you're looking for is to get that feature working, then ta-da, now you have it, and you can play it.

CammiePone commented 2 years ago

Just remember you cant distribute it if you do that. I plan to eventually have it be datapackable, but for now it wont be.

I want to focus on Arcanus 2 right now, and that on its own is going to take a long time to do.

CammiePone commented 1 year ago

only took me a year, but it's done!

Merith-TK commented 1 year ago

Eyyy! Will give it an test "flight"!

On Wed, Mar 8, 2023, 6:14 PM Cammie @.***> wrote:

only took me a year, but it's done!

— Reply to this email directly, view it on GitHub https://github.com/CammiePone/Icarus/issues/4#issuecomment-1461164614, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPQOXTMUPJJSS6M2JUE6TTW3E4J3ANCNFSM5HFM2IAA . You are receiving this because you commented.Message ID: @.***>

Merith-TK commented 1 year ago

wait.... a year to the DAY!

CammiePone commented 1 year ago

lmao you're right x3