Posted September 15, 20178 yr Hi, i am searching now for a time, but can't find a method to feed an animal/Entity. I have the position, the age, if it's in love, if the itemstack i am using is breeding item, but i can't find a way to feed the animal.
September 15, 20178 yr All "feeding" the animal does is call setInLove() 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.
September 15, 20178 yr Author I am using it at the moment. But this needs an EntityPlayer. If i use now minecraft.getminecraft.theplayer then the feeding is only working if the player is in the game. Looks like, i need a fakeplayer to keep it running on a server when not logged in.
September 15, 20178 yr ...pass 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.
September 15, 20178 yr Please explain further. I'm using it in my own code and it works fine. 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.
September 15, 20178 yr Author It's ok. It works with null. Was the test world, that had a problem. Sometimes i press play and not create new world after changing something. Anyway...thanks for your help.
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.