Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Creature BabySpawn hook


Recommended Posts

EntityPig ep = new EntityPig(world);
ep.setGrowingAge(-200)

 

will make the pig be a baby for 200 ticks, according to the javadocs

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Link to post
Share on other sites
  • 1 month later...

An entity AI wont make my custom entity have a spawning chance of  30% Cow, 30% Pig or 40% Chicken

 

if you know what I mean.

Actually it can, you can define various parameters and complete design of how it should work by making your own AI task and injecting it in.

I actually do that myself, so I know it works and is quite simple.

Link to post
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.

Guest
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 Privacy Policy.