1.12 teleport problem...

Discussion in 'Plugin Development' started by Dandunse, Oct 20, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Dandunse

    I want to teleport without seeing empty space.
    Do you have any tricks?
     
  2. Offline

    MightyOne

    Please be more detailed about what you mean with empty space? When does it happen? Where? What did you try to code?
     
    catman2014_ likes this.
  3. Offline

    Dandunse

    1.It blinks for about 0.1 second when teleporting.
    2.every time
    3.every where
    4.I could not try any code
     
  4. Offline

    Horsey

    I believe World#refreshChunk() should help, if not it's probably client-sided (the client needs to load the chunks)
     
  5. Offline

    Dandunse

    How does the client load the chunk? please? I am ready to follow
     
  6. Online

    timtower Administrator Administrator Moderator

    @Dandunse Client teleports, finds out that it has no data of the chunk, requests a chunk update.
    Server then loads the chunks.

    Load the chunks before you teleport them.
     
  7. Offline

    Dandunse

    Can you tell me how many seconds difference is there?
     
  8. Online

    timtower Administrator Administrator Moderator

  9. Offline

    Dandunse

    ((I'm wating another trick to load chunk at cient side. Unsolved...
    (I want to make infinity hallway... this needed (smooth teleport) and (fake Player))
    I am out of the subject but fix my fake player code too. (It's too many lag)
    here is my all code:
    https://pastebin.com/qcMw3f1B))

    Edit:you can ignore above. So is it at least 10 seconds or more? ==
     
    Last edited: Oct 20, 2017
  10. Online

    timtower Administrator Administrator Moderator

    @Dandunse Generally less. Depends on how you load and what you load.
     
  11. Offline

    Horsey

    @Dandunse at an okay latency of 150ms, 3-5 seconds at most.
     
  12. Offline

    Dandunse

    3-5 second is bad...
    I will try to thank this information.

    Edit:any idea for direct smooth teleport? I think that screen lock trick.
     
  13. Offline

    MightyOne

    I dont think that its possible to get the clients screen and freeze it
     
Thread Status:
Not open for further replies.

Share This Page