Jump to content

Recommended Posts

Posted

Ok, I've been working on my own dimension for a little while now. I got the dimension working, and the portal. The odd behavior starts when actually using the portal. In creative gamemode everything works fine but in survival it places the player somewhere other than the portal on the other end. To be specific, I set a movefactor the way the nether is and in survival it drops you at the over world coordinates.

 

My code is available at GitHub.com/ArcAios26/nrdhrd

Posted

Ok, so I got it working. The problem was in the code that handles player moving wrongly. I needed to set invulnerableDimensionChange to true like the game does for nether portals. I had to use reflection since it's a private variable. I haven't figured out how but twilight forest has it available as public in the EntityPlayerMP class. Any ideas? I don't really like using reflection if I can avoid it.

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.