Advanced teleportation

Started by Mac Alkemicraft on Fri, 02/27/2015 - 20:21

Topic category: Advanced modding

Last seen on 18:36, 16. Jul 2016
Joined Feb 2015
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Advanced teleportation
Fri, 02/27/2015 - 20:21

So i have this in my mod   http://i.imgur.com/2Y4AsRW.png         it is a magic mirror and i have big plans for it!

I want to make it so that when i right click on another mirror it saves those coordinates so that you can then teleport back to that mirror by walking through 

the first mirror

this sound simple... but saving coordinates is not actually a thing atm and teleporting back is also a challenge

if anyone has any idea of how to code for this i would be thankfull for knowing.

Thanks!

0Upvote this forum topic
Last seen on 20:39, 17. Mar 2017
Joined Feb 2015
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Link to the past :D
Thu, 03/05/2015 - 15:44

Link to the past :D

I'm sorry I have no idea. I'm in the basics of Java but I would very much like to know this as well!

0Upvote this forum topic
Last seen on 22:54, 5. Sep 2016
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
hmm. I would make three
Fri, 03/06/2015 - 18:31

hmm. I would make three variables Tpx, tpy, and tpz. then I would use
Right click event to set Tpx to i and tpy to j and tpz to k.
then when you collide into next mirror use colide event to teleport using teleport event, except on teleport event set i to tpx, j to tpy, and k to tpz.
I hope i make sense.

0Upvote this forum topic
Last seen on 18:36, 16. Jul 2016
Joined Feb 2015
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
RE:hmm. I would make three
Fri, 03/06/2015 - 20:30

Yeah I already tried that, I couldn't get it set a variable to the I,j and k coordinated

0Upvote this forum topic
Last seen on 22:54, 5. Sep 2016
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
I tried it works for me use
Fri, 03/06/2015 - 20:47

I tried it works for me use variable set on right click

0Upvote this forum topic
Last seen on 18:36, 16. Jul 2016
Joined Feb 2015
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
If any coders read this think
Fri, 03/06/2015 - 21:45

If any coders read this think of it as a challenge!
The reward being that your awesome!!! So if you manage saving coordinates for teleporting I'd love to know how, or maybe taleport back to spawnpoint.

0Upvote this forum topic
Last seen on 18:36, 16. Jul 2016
Joined Feb 2015
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
RE:I tried it works for me use
Fri, 03/06/2015 - 21:46

Yeah but plugging them back into a to command is not easy, and also, how did you set it to a coordinate?

0Upvote this forum topic
Last seen on 22:54, 5. Sep 2016
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
I use a core. They right
Sat, 03/07/2015 - 03:37

I use a core. They right click the core to set coordinates. Then they can collide with the other block to teleport to the core.

0Upvote this forum topic
Last seen on 18:36, 16. Jul 2016
Joined Feb 2015
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Interesting, is this in your
Sat, 03/07/2015 - 12:19

Interesting, is this in your mod? I will try this when I get home for alkemicraft v1.5.5 but if you have images I would like to see them. Thanks

0Upvote this forum topic