Jump to content

[SOLVED] Custom Boat Can't Be Controlled


Recommended Posts

Posted (edited)

I've created a custom boat, but you are unable to control it because updateInputs isn't called. The only solution I've been able to find online is to set shouldRiderSit to return true, but this hasn't changed anything.

How could I solve this?

 

EntityLongboat.java

  Reveal hidden contents

 

Edited by Guest
Posted
  On 1/4/2019 at 9:38 AM, diesieben07 said:

Copy-pasting EntityBoat's code into your class does not mean Minecraft will recognize it as a boat. Java does not support duck typing.

updateInputs is a method of EntityBoat, so you have to extend EntityBoat if you want it to be called.

Expand  

Thank you! This worked.

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.