Jump to content

Rendering hooks / Item Hooks

Recommended Posts

Now, this is likely already been suggested, i've actually know where the hooks can be placed for this. not being a forge developer, it's best to just put it here for devs to read whenever.


1: Custom render passes.

  Within RenderLiving; there's an area where it calls multiple render passes, right now it's set to 4, adding a getRenderPassCount() integer there would give modders the ability to add their own level of detail without adding their own classes.


2: Custom Armour render

  By using the first method, there could be a system for armour rendering. Each piece would have a getRenderPasses(), and the getRenderPassCount() will add all these together, on rendering them, it will pass to the Item itself and call the method(by counting it's own render passes from 0), an interface containing a pass count and render script would mean each item would have it's own level of layers, colours, etc.


3: Weapon reach support

As this is suggested to weapon modders frequenty; it's not actually supported. and means of extending reach is real buggy and has issues. while decreasing is impossible. within (not sure anymore where it was) there was a script to get the players range (in creative, it's larger if not, about 4), adding a getReach() in item can be passed through this to allow flawless weapon reach support


*just chucking this out here, you may have already considered these methods.

Link to comment
Share on other sites

I don't have code off hand, but everything that you've described has been done before in various mods {before you ask no I dont have names cuz im bad with names} without base edits.

I would advise going at each part one at a time and looking into all of the related code to see where you can slide in using the mechanics that are built into Minecraft already.

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

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

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