Jump to content

[1.7.10] Cross-dimension teleport, again


target.san

Recommended Posts

Hi!

 

I'm worling on a tiny mod which is around more convenient (than vanilla) and less cheaty (than Mystcraft etc.) portals. As of now, I'm still having one problem - it's with riders and ridden entities. Single entities work just well.

1. When non-player entity rides a minecart, one can observe a slightly mislocated position of a rider. Like sheep would be not exactly at the center of the cart.

2. When a player rides smth like a minecart, one can experience p.1 or a warped move. Like, we're having a curved track out of portal, and a minecart with a rider moves directly to the endpoint after curve, where it should stop.

 

The similarity with these two mini-bugs is that they disappear if player re-logs server (or, in my case, restarts a game). That's why I think I need to enforce server-to-client synchronization somehow. Like send packet to client "This entity isn't where you think it is! Relocate it unconditionally to position XYZ!"

 

Teleporter code (Scala): https://github.com/target-san/Gateway/blob/master/src/targetsan/mcmods/gateway/Teleport.scala

 

Thanks!

 

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.