Jump to content

Recommended Posts

Posted

Hello

 

After updating to 1.3.2 my explosive didnt render, when I right click it to activate it it just becomes invisible. My classes:

 

ClientProxy:

 

 

  Reveal hidden contents

 

 

Block file

 

  Reveal hidden contents

 

 

Entity File:

 

  Reveal hidden contents

 

 

Render File:

 

  Reveal hidden contents

 

 

 

Please help :)

Posted
  On 8/24/2012 at 8:55 PM, LexManos said:

I see nowhere where you register your entity.

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

  • 2 weeks later...
Posted

Ok look. I have this code now:

 

Init

 

EntityRegistry.registerModEntity(ThorMod_EntityEmeraldPrimed.class, "EmBomb", ModLoader.getUniqueEntityId(), this, 250, 5, false);

EntityRegistry.registerGlobalEntityID(ThorMod_EntityEmeraldPrimed.class, "EmBomb",  ModLoader.getUniqueEntityId());

 

ClientProxy:

 

RenderingRegistry.registerEntityRenderingHandler(ThorMod_EntityEmeraldPrimed.class, new ThorMod_RenderEmeraldBomb());

 

still invisobitch

Posted
  On 9/4/2012 at 11:29 AM, Thor597 said:

Ok look. I have this code now:

 

Init

 

EntityRegistry.registerModEntity(ThorMod_EntityEmeraldPrimed.class, "EmBomb", ModLoader.getUniqueEntityId(), this, 250, 5, false);

EntityRegistry.registerGlobalEntityID(ThorMod_EntityEmeraldPrimed.class, "EmBomb",  ModLoader.getUniqueEntityId());

 

ClientProxy:

 

RenderingRegistry.registerEntityRenderingHandler(ThorMod_EntityEmeraldPrimed.class, new ThorMod_RenderEmeraldBomb());

 

still invisobitch

 

Your init is somehow wrong. first you have to call registerGlobalEntityID, then registerModEntity. Also, for registerGlobalEntityID, don't use ModLoader.getUniqueEntityId(), instead use EntityRegistry.findGlobalUniqueEntityId(). And for registerModEntity, use an actual number instead of ModLoader.getUniqueEntityId(), like 0 for your first entity, 1 for your second one, 3 for your third one and so on.

 

like this:

EntityRegistry.registerGlobalEntityID(ThorMod_EntityEmeraldPrimed.class, "EmBomb",  EntityRegistry.findGlobalUniqueEntityId());
EntityRegistry.registerModEntity(ThorMod_EntityEmeraldPrimed.class, "EmBomb", 0, this, 250, 5, false);

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Do you even call your registerRenderInformation() from your proxy in your load method?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Try to shove it into your load method then, works for me.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

I am having the same issue. I've done everything correctly just like you, and my living entities render correctly along with my EntityThrowable. My meteors don't want to render. (Author of the Falling Meteors mod = me) They are alive and working because they cause the explosion, but they are not rendering at all.

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.