player.sendchunkchange(double,double,double)

Discussion in 'Plugin Development' started by Dandunse, Nov 25, 2017.

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

    Dandunse

    how to use this
    thankyou
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    Dandunse

    i really want seamless teleport. but i small want how to use it.
     
  4. Offline

    timtower Administrator Administrator Moderator

    sendBlockChange is also a nice option.
    And you do realize that the chance is great that seamless is impossible right? (looked at your other threads)
     
  5. Offline

    Dandunse

    after thinking. then i think that "for(i;;;) " sendblockchange copy block a lot. next, send chunk but wait 3second(question1:I dont know code. how to send chunk) and next, (question2:i cant check if chunk loaded)
    very thankyou if fix
     
  6. Offline

    timtower Administrator Administrator Moderator

    @Dandunse I have no idea what you are trying to say.
     
  7. Offline

    Dandunse

    according to until current moment,I decided to this method that first,using sendblock change function with java 'for method' to copy lot of blocks.During doing that,send chunk to client although 3 second will be consumed.The point is,I don't know the code to send a chunk. also I don't know the code to check if chunk is loaded in client
     
  8. Offline

    timtower Administrator Administrator Moderator

    @Dandunse There is no way to check if a chunk is loaded at the client.
     
  9. Offline

    Dandunse

    good information.so now it remain one question.
     
  10. Offline

    timtower Administrator Administrator Moderator

    @Dandunse ProtocolLib is probably the way to go for that chunk sending.
     
  11. Offline

    Dandunse

    Please Give An Example!....
     
  12. Offline

    timtower Administrator Administrator Moderator

    I won't spoonfeed.
    Have you even tried the sendBlock method already?
     
  13. Offline

    Dandunse

    please answer only an example about how to send client chunk.
    it is simple question.
     
  14. Offline

    timtower Administrator Administrator Moderator

    If I would plainly give the code then you won't learn from it.
     
  15. Offline

    Dandunse

    I think it is one line code.
    if not acceptted.
    I will stop require.
     
    Last edited: Nov 25, 2017
  16. Offline

    timtower Administrator Administrator Moderator

    An entire chunk change? With corrected blocks (which you need)?
    Way more than 1 line.
     
  17. Offline

    Dandunse

    i love you so much man...

    I just dont know method.
    I just want one line methode like p.sendchunkchange(double,double,double)
     
    Last edited: Nov 25, 2017
  18. Offline

    timtower Administrator Administrator Moderator

  19. Offline

    Dandunse

    can you explain what is byte[]?
    I couldn't find;
     
  20. Offline

    timtower Administrator Administrator Moderator

    That would be the chunk data
     
  21. Offline

    Dandunse

    chunk.getdata dont exist.
    also ((CraftChunk)chunk).getHandle().getdata dont exist!
     
  22. Offline

    timtower Administrator Administrator Moderator

    @Dandunse I also never said that it would work that way.
    There is a reason that I suggested sendBlockChange
     
  23. Offline

    Dandunse

    According to zombiestriker, during sendblockchange
    Chunk load and teleport after 3 seconds.

    I can not give up teleport.
    It also performs sendblockchange. But please tell me the code to send the chunk to the client. I couldnot not find it.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    also I'm ready to follow that anyway. I'm ready to modify client, I'm ready to make mode,
    But I rely on Google search and bucket forums.

    it is easy question for you guys.

    please just say what the code[logtop]
     
    Last edited: Nov 26, 2017
  24. Offline

    timtower Administrator Administrator Moderator

    @Dandunse How far do you need to teleport then?
     
  25. Offline

    Dandunse

    Less than 100 blocks
    Less than 50 blocks are also satisfactory.
     
  26. Offline

    timtower Administrator Administrator Moderator

    @Dandunse Then do that, doubt it that the chunk will be unloaded that fast.
     
  27. Offline

    Dandunse

    I could not even try because I did not know the command.
    I want to try
    you can just say like below
    ---------------------------------
    ((CraftPlayer)player).getHandle().connection.???.????;
    ????.????????().????????().?????(chunk);
    ---------------------------------
     
  28. This forum is a medium for learning HOW to code and to solve errors or give concepts. Not to receive the code that you're stuck on. Pseudocode is generally what you're going to get here.

    I spoonfeed to make a point though, or when I'm feeling a lil' extra salty
     
  29. Offline

    timtower Administrator Administrator Moderator

    @Dandunse No, I won't give you the code.
    What command are you talking about? What do you have already? Do you have something already?
     
Thread Status:
Not open for further replies.

Share This Page