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.

Trouble with mountable entities - turns, but won't move! Help???

Featured Replies

Posted

I've got a mountable, rideable, entity (actually a few) that used to work in 1.5.2 that now no longer function.

I originally copied and modified EntityBoat, and it worked well.

I did that again, but to no avail. It won't move. It mounts and unmounts.

It even turns. It just won't go.

The boat uses the entityRiddenBy.moveForward field.

When I do, it's always zero.

I printed it out, and on the client it is non-zero...

But the control side is on the server, and there, it never gets set.

I've tried every server motion variable from both the riding and mounted entities, and get nothing.

I even tried setting a datawatcher in the client and reading it in the server.

Unfortunately, it appears datawatchers only go one way, server to client.

 

Anyone find a way to get mounted entities to work????

Is there a 1.6.2 example out there (besides the boat) that I can look at?

How do I get player motion in the server from the client?

 

Help? Clues? Hints?

 

 

Odds are good I've been programming since before you were born. Yeah. I'm OLD school.

Hmm... Let me think of an entity that is mountable, rideable, and is in Vanilla. I know! A horse!

 

 

Have you tried the horse entity file? If no I'd give it a good go xD

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

  • Author

Nevermind.

It appears that a critical flag is now only getting set for EntityBoat, not just any old entity.

See NetClientHandler.handleAttachEntity()

I think I can find a workaround...

:)

 

Odds are good I've been programming since before you were born. Yeah. I'm OLD school.

  • Author

Hmm... Let me think of an entity that is mountable, rideable, and is in Vanilla. I know! A horse!

 

 

Have you tried the horse entity file? If no I'd give it a good go xD

 

Horse? Feh.

I've got FLY-able Hoverboards, a Dragon, and a Cephadrome!

We don't need no stinking ground-bound horses! Lol!

We be airborne, baby!

:)

 

Thanks anyway!

 

 

Odds are good I've been programming since before you were born. Yeah. I'm OLD school.

Hmm... Let me think of an entity that is mountable, rideable, and is in Vanilla. I know! A horse!

 

 

Have you tried the horse entity file? If no I'd give it a good go xD

 

Horse? Feh.

I've got FLY-able Hoverboards, a Dragon, and a Cephadrome!

We don't need no stinking ground-bound horses! Lol!

We be airborne, baby!

:)

 

Thanks anyway!

 

Sounds epic dude! Anyway I asked if you had tried horses because you would most likely be able to find all the stuff relevant to what you need. And mounting an entity has nothing to do whether it is flying or not -_-

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Nevermind.

It appears that a critical flag is now only getting set for EntityBoat, not just any old entity.

See NetClientHandler.handleAttachEntity()

I think I can find a workaround...

:)

 

I don't think that's it. That code has been there for a few versions back. I'm having the same problem with my parachute mod. It started with version 1.6.2. The only forge version I have tried is 789. Let us know if you find a solution. I can't find any minecraft code for the boat that has changed from the previous working version.

If anyone is having trouble with mountable entities not moving.... Check that shouldRiderSit() is returning true in your entity code. That's what was causing me trouble with the parachute.

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.