Erfurt Posted August 29, 2015 Posted August 29, 2015 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 Quote
Thornack Posted August 29, 2015 Posted August 29, 2015 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 Quote
Erfurt Posted August 30, 2015 Author Posted August 30, 2015 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 Quote
ItsAMysteriousYT Posted August 30, 2015 Posted August 30, 2015 Have a look at Minecrafts EntityAI package - in there you should find all the required information. Quote
Erfurt Posted August 30, 2015 Author Posted August 30, 2015 Have a look at Minecrafts EntityAI package - in there you should find all the required information. Thanks I will look at it Quote
Draco18s Posted August 30, 2015 Posted August 30, 2015 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). Quote 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.
Recommended Posts
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.