Jump to content

How to set the flight path of the dragon?


ryan_zhou

Recommended Posts

I want the dragon to go from one point to another, and the distance between the two points is probably 1000 block, But I'm breaking it down into moves of only 20 block at a time.

I tried ```dragon.getNavigator().tryMoveToXYZ()```, it's always return false, even though it's only 20 blocks away. so i figured out EntityDragon override ```onLivingUpdate()``` completely. So PathNavigator.update() cannot be called.

 

It might about the  ```Phase```, It's a little difficult. I don't know what to do.  

I'd appreciate it if anyone could help me!!!

Link to comment
Share on other sites

Post what you've tried. 

 

But regardless, I've written a mob based off the ender dragon myself, and yes it won't do certain actions unless it meets certain conditions, which the phase manages. Without knowing what you want to do with the entity can't really help further.

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.