Jump to content

[1.12.2] custom entity/mob | missing spawnegg [Solved]


Recommended Posts

Posted

The only one you need to know about is the one at the top called Forge. It contains readable vanilla source code.

  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)

Okay, finally I could create a spawnegg. I have only two problems at the moment:

  • the mob does not have the custom model
  • the mob does not have the custom texture

I would be very happy if anyone would help me.

DeBugger

 

@V0idWa1k3r , @Cadiboo and @Draco18s: Thank you very much so far for your support and your patience?

Edited by DeBugger
Posted

I load Harry´s Tech Reviews ModelCentaur class and the texture for it in eclipse to test if that works. I changed from EntityZombie to EntityCow to be sure. The result is the same like my models and textures, only that now cows are spawning. Harry´s EntityCentaur works, but in my workspace wont? Whats wrong? I have mostly the same code, only my Entity-class has an other extension and some other names for variables.

PS:  I resetted my workspace to the point, that I mostly have Harrys code and copied the whole EntityInit-class. Now I have a spawnegg.

Posted

Okay, finally I now have almost my entity as I want. Thanks to all for there support and patience.

DeBugger

 

PS: The problem with the model and texture was that they wont was registered in my Main.class? Sorry for this fail.

Posted (edited)

Okay guys,

I already have written that I now have a spawnegg. Now Im wondering how to let the entity spawn naturally. I know that I need the

BiomeType.getType()

argument in my EntityInit:

EntityRegistry.addSpawn(EntityCyborg1.class, 6, 1, 5, EnumCreatureType.CREATURE, BiomeType.getType());

My problem is that I cant figure out what I have to insert in the brackets of getType. I tried the old 1.7.10 code which I used in my older mods, but that dont works. Could anybody help me?

DeBugger

 

EDIT: Got it. I used the following code:

 

EntityRegistry.addSpawn(EntityCyborg1.class, 25, 1, 5, EnumCreatureType.CREATURE, Biomes.PLAINS);

 

The spawnchances was to low. Sorry.

 

Edited by DeBugger

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.