Jump to content

Recommended Posts

Posted

Hi, I'm making a mod who add gravity in minecraft. (http://www.minecraftforum.net/topic/1716678-147-forge-fallcraft-beta/)

 

For now, all falling blocks are rendered trough EntityFallingSand. But I'd like to make a mod who didn't change any vanilla original classes.

So I've made a similar Entity with his render, but the render is using the same metadata type as FallingSand.

 

But When rendering, the metadata are not available. (the System.out.println in the Render file display null)

 

Any idea of how I can do that?

For now, I know that packet exist in VehiclePacket who transfer metadata for EntityFallingSand. Do I need to register a packet too?

 

Thanks

 

Here are my files:

 

mod_xxx

 

  Reveal hidden contents

 

RenderGravity

 

  Reveal hidden contents

 

EntityGravity

 

  Reveal hidden contents

 

Posted

Ur entity must implement a custom packet system, specificly IEntityAdditionalSpawnData

think of it as of NBT Read/write... you also need the nbt read/write too though (if you want entity to carry data thru map save's and load's)

~I was here~

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.