Jump to content

Recommended Posts

Posted

Hi guys

 

I am having a rather tough time figuring out what my problem is.

 

Basically, I would like a helmet that renders a "pumpkinblur" type overlay and then adds an Overlay HUD (bit like the one in one of the tutorials) - that shows things like Armor Usage, Tool Usage, Potion Effects, etc, etc...

 

1 - Even though my coding seems fine, it simply will not render

 

2 - how do I even go about adding a HUD with armor values and things (only while this item is equipped) ?

 

 

MOD CODE:

 

 

  Reveal hidden contents

 

 

OVERLAY CODE:

 

 

  Reveal hidden contents

 

Posted

You don't have the @ForgeSubscribe annotation anywhere, so even if you register your overlay class with Forge, it's not going to find any methods that it needs to call back.

 

@ForgeSubscribe(priority=EventPriority.NORMAL)

 

Also, I believe that you should be extending Gui, not GuiIngameForge.

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.