Jump to content

Recommended Posts

Posted

Hi,

So I found code online to create a new mob, and in the video as well as my other mod it worked, but for some reason, it's not in this one.

 

main class:

 

  Reveal hidden contents

 

 

Entity Class:

 

  Reveal hidden contents

 

 

Render Class:

 

  Reveal hidden contents

 

 

Client Proxy:

 

  Reveal hidden contents

 

 

Common Proxy

 

  Reveal hidden contents

 

 

Error:

 

  Reveal hidden contents

 

 

 

Dont mind the name of the mob :P

 

anyway, thanks, and any help is appreciated.

-Pandassaurus

Posted

*Update*

 

It turns out my Entity class was declared abstract, and i fixed that. It seemed to help a bit, but when i use the spawn egg, nothing happens; no errors or no mob spawning. I don't know why, but if you do, please let me know.

 

thanks,

-Pandassaurus

Posted

RenderingRegistry.registerEntityRenderingHandler(EntityPedophileMob.class, new RenderPedophileMob(new PedophileMob(), 0.3F));

 

Your missing your model, you are trying to pass an instance of your mob as the model which does nothing.

Posted

Oh sorry, I forgot to add the model class:

 

 

  Reveal hidden contents

 

Posted

Your mob should look black and purple because your pointing to a (mostly likely) non-existant texture at assets/modid/textures/mobs/PedophileMob.png instead of assets/wthmod/textures/mobs/PedophileMob.png

Posted
  On 2/20/2014 at 10:25 PM, saxon564 said:

Your mob should look black and purple because your pointing to a (mostly likely) non-existant texture at assets/modid/textures/mobs/PedophileMob.png instead of assets/wthmod/textures/mobs/PedophileMob.png

 

I do have the texture, but even if i didn't, but instead of there being a white or purple and black box, it's just invisible.

This is the class path of the picture:

 

http://24.media.tumblr.com/c2a434334eaa6e97a2efb17a2385c984/tumblr_n1bgybNCrF1sejvuqo1_250.png

 

 

  Quote

Ctrl+F shows me that you're missing

Minecraft.theWorld.spawnEntityInWorld(yourEntityObject);

Would this be correct?

 

Also, be sure you're setting a location for your entity!

 

I am missing that, but is that necessary? In my other mod that I am trying i didn't need it. If so, where would i put it?

Also, what do you mean by setting a location for my entity?

 

I'm sorry, im new to modding, so thanks for the help!

-Pandassaurus

Posted

I currently use spawnEntityinWorld, perhaps there is another method, I'm not sure, new to this as well ;)

BUT as for the location say you have your entity pandasauruss

 
EntityPandasauruss pandasauruss = new EntityPandasauruss(Minecraft.theWorld);
pandasauruss.setPositionAndUpdate(player.posX, player.posY, player.posZ);

The player.posX, etc. would change to be where your egg landed but same concept. Perhaps that will work for you.

Posted
  On 2/20/2014 at 11:25 PM, iwishiwasgood said:

I currently use spawnEntityinWorld, perhaps there is another method, I'm not sure, new to this as well ;)

BUT as for the location say you have your entity pandasauruss

 
EntityPandasauruss pandasauruss = new EntityPandasauruss(Minecraft.theWorld);
pandasauruss.setPositionAndUpdate(player.posX, player.posY, player.posZ);

The player.posX, etc. would change to be where your egg landed but same concept. Perhaps that will work for you.

 

no, that didn't work for me.

 

thanks though,

-Pandassaurus

Posted

*Update*

 

I think it has something to do with either the render class or the proxies because I moved the mob classes over to my mod that worked and it worked perfectly. I really can't find a difference, and it'd be great if someone could help.

 

thanks,

-Pandassaurus

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.