Jump to content

[Solved]Dimension Teleportation refuses to stop.


Sypher

Recommended Posts

I now what is wrong, and how I would go about fixing it, but I don't know exactly HOW to fix it. When I jump through the portal to my new dimension it just drops the player straight into the return portal, and repeats the process, with the end result being constant teleportation between dimensions, making it impossible to move. I need to have the player spawn just in front of or behind the portal like the vanilla nether portal, any ideas on how to do this?

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Link to comment
Share on other sites

Well assuming your code knows where it will place the player (which is have to know ofcourse) you should be able to tell it to set it where it's setting him now +1 inn the x direction (or z direction depending on the orientation of the portal)?

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Or putting a delay on the teleport, like the vanilla nether portal.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

That's also a good idea. Regarding you both, a) where would I find the posX and posZ that spawns that player? In the teleported class there is a LOT of those floating around. Regarding the timer, how would I do that? I'll check some vanilla source and tell you guys if I come up with anything. I did manage to get it to play a sound upon teleportation.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Link to comment
Share on other sites

I have no idea since I haven't ever done this, even tough I planned to for a long time, my afk life gets inn the way ;)

 

But I understand logic, so post the code (pastebin w/ java syntax highlights, please) :)

And I (as well as others) can read it and try to aid you inn pointing out what is what.. I just hope not half your variables has funny names :P

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Alright, here's the teleporter code: http://pastebin.com/HsZfF0Ta

Note I'm still trying to figure this out, so it may change.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Link to comment
Share on other sites

Thanks! I actually saw that post before I even looked here, but it works non the less. By the way, I'm locking this topic due to the fact it's been solved.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

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.