Jump to content

[1.7.10]new mob, old mob


Jigokusaru

Recommended Posts

Is there a way to grab a vanilla mob and make a new mob with it but change the skin, drop items and behaviors of the new mob and make the new one not spawn natually, i have the skin and items and things i need like ideas of behaviors but wanna make it easier on myself, im have way lazy but eger to do this.

Link to comment
Share on other sites

Extend the entity class and modify it to your hearts content by overriding what you don't want.

Um is there a way to also make this tamable? I want to set it so once its spawned the person that sets the last block on the spawn pad to get the chicken (yes its a chicken) to be there pet. Coz if i extends the EntityChicken I cant extend the EntityTameable Class

Link to comment
Share on other sites

EntityTameable is an Animal, while Mobs are NOT. You would have to go on lowest possible level to create such hybrid and it couldn't fit the inheritance hierarchy chain (instanceof would become less informative).

 

If this is supposed to be a Mob then you will need to extend mob and implement IEntityOwnable and make changes (copy) from EntityTameable. Since mobs are aggresive there will be quite some problems. You can always make you mob an animal (like wolf), look at its code.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

EntityTameable is an Animal, while Mobs are NOT. You would have to go on lowest possible level to create such hybrid and it couldn't fit the inheritance hierarchy chain (instanceof would become less informative).

 

If this is supposed to be a Mob then you will need to extend mob and implement IEntityOwnable and make changes (copy) from EntityTameable. Since mobs are aggresive there will be quite some problems. You can always make you mob an animal (like wolf), look at its code.

 

Im using the basis of the EntityChicken Class since i want my Entity to work like the chicken with the added benefit of being tamed when spawned since its spawned a different way.(by a structure made by the player)

 

Oh and 'Mobs are living, moving game entities. The term "mob" is short for "mobile"' :MineCraft Wiki

Link to comment
Share on other sites

public MyTamableChicken extends EntityChicken implements IEntityOwnable

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.

Link to comment
Share on other sites

You can't code (mod) anything remotely cool without having Java experience.

 

Don't even start touching this before reading tutorials on Java. Go to official oracle tutorials on basic stuff.

 

No, you don't leave it like this, you implement its methods and modify code to actually use interface (saving/loading/syncing owner) like it happens in EntityTameable.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Modder Support

 

This is the support section for those modding with Forge. Help with modding goes in here, however, please keep in mind that this is not a Java school. You are expected to have basic knowledge of Java before posting here.

 

Implementing an interface is not exactly basic Java, but absolutely required in order to mod.

 

The problem is we can't give you an example.  Interfaces are incomplete objects that require you to implement (write, code, program) their methods because the interface doesn't.

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.

Link to comment
Share on other sites

Modder Support

 

This is the support section for those modding with Forge. Help with modding goes in here, however, please keep in mind that this is not a Java school. You are expected to have basic knowledge of Java before posting here.

 

Implementing an interface is not exactly basic Java, but absolutely required in order to mod.

 

The problem is we can't give you an example.  Interfaces are incomplete objects that require you to implement (write, code, program) their methods because the interface doesn't.

 

So basicly i need to make a whole new "EntityTameable class" Within my class, Im just use to extending EntityTameble, I havent touched implements since i was taking coding classes for java.

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.