Jump to content

Recommended Posts

Posted

I heard somewhere that forge has a functionality that works kinda like PlayerAPI/ModelPlayerAPI/RenderPlayerAPI

 

So what is this and how do I use it? I want to add it so that if people use my mod and im there i have a a custom cape/model or whatever without editing the base files.

 

Thanks

 

 

Posted

It doesnt have that, and traditionally we have not done anything with capes as that is Mojang's terrarory.

However, you should talk to the creator of the PlayerAPI to move to forge and use the new powerful supplies we provide him.

The way he currently has it designed to be used is.. horrible, he needs to come clean it up.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

It doesnt have that, and traditionally we have not done anything with capes as that is Mojang's terrarory.

However, you should talk to the creator of the PlayerAPI to move to forge and use the new powerful supplies we provide him.

The way he currently has it designed to be used is.. horrible, he needs to come clean it up.

 

OK, I will

 

Well it is 'possible' without base edits here, but a proper API would be far superior when based on Forge.

 

How is it possible without base edits? please do tell!

Posted

ASM, a Forge coremod, you do not want to do it unless necessary because it is pretty raw opcode manipulation.  Can do anything, but is *very* difficult.

 

You can say that again.

 

Though if you'd like to learn about ASM there's some reasonably helpful resources - http://asm.ow2.org/doc/developer-guide.html - and - http://download.forge.objectweb.org/asm/asm4-guide.pdf (The official ASM users guide) - I've been reading up on it, one method for getting your mind around it seems to be make two versions of the class, in this case the modded and the vanilla class and run them through the eclipse plugin "ASMifier" (Link - http://asm.ow2.org/eclipse/index.html) and that'll let you compare the raw bytecode differences, which should bring you one step closer to understanding how to do it, or at least what you'll have to change,

Toodle-oo

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.