3

I am currently working on a map. There is an intro of the map where I want to let players to get teleported half block at a time, following a route to get a preview of the map. If they try to move, they will get teleported back to the route.

How can I make the player be teleported half (or less), not whole blocks at a time?

  • 3
    What's the Exact issue here? Please be more specific. Also please try to do this yourself BEFORE you ask here. – Alex May 11 '16 at 14:13
  • 1
    @Alex - It appears the OP is asking how to teleport a player across a set path "fluently" rather than jumping 1 block at a time per teleport. – user101016 May 11 '16 at 14:55
  • 1
    Do you really need to do that? Instead, you could just make them walk. Use Barriers and they will have a set path. – Rainbow Dash May 11 '16 at 20:17
  • Why not just put them in a minecart on a track? – Robotnik Aug 28 '16 at 23:15
3

Ok, use the /tp command to tp the Player:

/tp @a ~ ~ ~+0.5

for teleporting half block in +z.

/tp @a ~ ~ ~-0.5

for -z, and so on - the first squigly line is the x coordinate, 2nd is the y coordinate and 3rd one stands for z.

For teleporting a Player into +x and +z (or any other coordinates) at once a total of 0.5 Blocks, use this (via the Pythagorean stuff):

/tp a ~+0.35355 ~ ~+0.35355

For teleporting into +x, +y, and +z at once, use the following:

/tp @a ~+0.2887 ~+0.2887 ~+0.2887

2

Place a series of armor stands with some scoreboard value, using a 20hz clock, (of repeat blocks) teleport the player to the stand that has a value of zero, the use another block to decrement all of the stands, if you want it to be repeatable, add that number back when you are done.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.