Jump to content

Quick Block of Code that allows an EntityFlying to Wander around?


ScottehBoeh

Recommended Posts

At its most fundamental, all you need to do is choose a random location, move there, and then choose another random location and move there, on and on forever. Ghasts do this when they don't have a target, so what does your helicopter do when using that same code?

 

What have you tried, and what about it is not working?

Link to comment
Share on other sites

There is an AI function already made for random flying. I use it in my flying skull mobs

That was my point - that AI is copied directly from the 1.8 version of the Ghast (why they didn't make the AI public, who knows), which, in combination with the new GhastMoveHelper, is just an encapsulated version of the same code they had used in the #updateEntityActionState in 1.7.10.

 

The OP claims to have already looked at that code and found it wanting, which brings us back to square one. OP, what have you tried, and what about it isn't doing what you expect?

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