Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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 :)

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

  • Author

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

  • Author

Have a look at Minecrafts EntityAI package - in there you should find all the required information.

Thanks I will look at it :)

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.