Jump to content

Verticially controllable ridable entity


Vakror

Recommended Posts

39 minutes ago, Vakror said:

I am currently adding a flying broom to my mod, but I am having trouble with making it verticially controlable. Is that possible, if so how?

You can make it so that the entity will move in the direction that the player faces (so when facing down, it moves down); borrow some code from the EnderDragon class.

But if you want to make it controllable via keys, you can look at the Horse class to look at upwards control. IDK about downwards control though because to go down you hold shift but that's the same key as dismounting.

I'm not good at modding, but at least I can read a crash report (well enough). That's something, right?

Link to comment
Share on other sites

9 minutes ago, Hipposgrumm said:

You can make it so that the entity will move in the direction that the player faces (so when facing down, it moves down); borrow some code from the EnderDragon class.

Thank you. I have been searching for so long lol

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.



×
×
  • Create New...

Important Information

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