Jump to content

Recommended Posts

Posted

hello guys so im having some problems with the rendering of my gun code, for example it shoots and it deals damage to the mobs but you cant actually see the bullet its invisiible so i was wondering if you guys know why is that happening and also i have a bug that when the clip runs out of ammo it looks like the image its in there but its actually not so i hope you guys can help me

Posted

Not sure how to debug your own code, but either way, the issue with not seeing the bullet is probably that you're not tracking the bullet entity properly so the client isnt being informed that that bullet exists.

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

uhmm do you want to check out EntityBullet.java?

 

 

  Reveal hidden contents

 

Posted

You've made the entity but you haven't told it what to look like. I use:

RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class, new RenderBullet());

My RenderBullet extends RenderSnowball and my EntityBullet extends EntityThrowable. Hope this helps :D

 

 

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.