Jump to content

Recommended Posts

Posted

Hey everyone,

 

I've checked everywhere, but I can't find a single thing that could be causing my issue. I'm trying to implement a basic 'fireball' using snowball as a basis but I'm not having any luck.

 

The specific problem is that while the projectile fires and impacts, it doesn't render at all.

 

I have added break points into the RenderKBFireball class but they do not fire.

 

My four classes are:

KBFireball - contains the item, it's onItemRightClick event, it's presence in creative mode, icon etc.

KBEntityFireBall - inheriting from EntityThrowable controls the onImpact

RenderKBFireball - the render class, pretty much a direct copy of RenderSnowball

KBClasses - the main mod file containing the definition and the registry etc.

 

A few things worth noting:

In KBFireball, I'm alternating between firing an actual snowball and my Fireball itself. The fact that the snowball shows is telling me this class is fine.

 

I suspect if anything, it has something to do with my registering of items, but I've tried a lot of variations and had no luck.

 

All of this compiles and runs as well, so no code errors.

 

Thanks in advance

Primalfreeze

 

KBFireball

 

  Reveal hidden contents

 

 

KBEntityFireball

 

  Reveal hidden contents

 

 

RenderKBFireball

 

  Reveal hidden contents

 

 

KBClasses

 

  Reveal hidden contents

 

Posted

@Eternaldoom - that was enough for me to figure it all out. I somehow glossed over the registering of an entity in all the examples I found. I suspect because I was looking for other problems, not chunks that were missing.

 

So thanks heaps.

 

For recordkeeping purposes, here is the added code (added in KBClasses.preInit)

 

  Reveal hidden contents

 

 

This topic is now solved but I can't see anything letting me mark it as such.

 

Primalfreeze

 

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.