Jump to content

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


TheyCallMeDanger

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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.