Jump to content

Recommended Posts

Posted

Hey guys

So I'm trying to make it so animals (cows/sheeps/pigs/chickens) run away from you if you get to near to them, if you are not having their breeding food in hand. I would also like, if I could make them not run after you have given them some food. Maybe even after you have given them food 3-5 times or so. Another thing I would like to do is, to alter the chance of a child animal from breeding, from 100% to 50%.

 

And for the time being I'm pretty much stuck, if anyone could help me I would be very happy :)

I know that it's a lot of things I'm asking help for, and that most people properly can't help me with all of them at the same time, but even if you could help me with one of the things, that would be great :)

Posted

post the java code you have so far and give a more specific question. No one will do the work for you. So what does your ai look like, have you started writing one? etc etc

Posted

post the java code you have so far and give a more specific question. No one will do the work for you. So what does your ai look like, have you started writing one? etc etc

Havn't got anything yet, because I have no idea how to do this

Posted

The Entity

tasks

variable is public, so you can create an insert your own AI tasks when the entity spawns (EntitySpawnedInWorldEvent, if I am remembering the name correctly).  EntityConstructedEvent is too early (tasks is null).

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.

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.