Posted April 29, 201312 yr 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. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
April 29, 201312 yr 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...
April 29, 201312 yr 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.
April 29, 201312 yr Author 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. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
April 29, 201312 yr 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 If you guys dont get it.. then well ya.. try harder...
April 29, 201312 yr Author 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. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
April 29, 201312 yr Yeah I see, If I get time and it's still relevant after work I'll try to look into it. Inn the mean time have you checked out: http://wuppy29.blogspot.nl/2012/10/forge-modding-142.html He has some tutorials on the subject, you could see how he's dealing with the problem? If you guys dont get it.. then well ya.. try harder...
April 29, 201312 yr Author His tutorials are what I use/used now. He does a great job but no, I didn't see a solution there. 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. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
April 30, 201312 yr I posted source code you need to stop this from happening. http://www.minecraftforge.net/forum/index.php/topic,7974.0.html Look for my post, I believe im third down. Applaud if I helped. If I helped, please click the 'Thank you'! .
April 30, 201312 yr Author 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. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
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.