Solved Shrink worldborder (using packets?)

Discussion in 'Plugin Development' started by CubePhoenix, Aug 16, 2017.

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

    CubePhoenix

    Im currently working on an UHC plugin, and i need to shrink the worldborder over time. I know i could just set it to a smaller size over and over using only Bukkit. But in vanilla there is a command to shrink the worldborder over time which looks way better. My question is : Is this possible without using "Server.dispatchCommand()" ? Maybe using packets?

    There is this "PacketPlayOutWorldBorder.EnumWorldBorderAction.LERP_SIZE" which im not quite sure what it does.
     
  2. This may help, have a look at the WorldBorder part. Use a Repeating Task to keep on decreasing it over a period of time (I think)
     
  3. Offline

    CubePhoenix

    Thats what im currently doing, it causes a blue flickering worldborder slowly teleperting towards you. I was hoping for the same effect the command "worldborder set <distance> [time]" could do using the time argument.

    Thanks for your reply anyways :p
     
  4. upload_2017-8-16_12-58-55.png

    Is that not what you want?
     
  5. Offline

    CubePhoenix

    Thanks a lot!
    I seem to have missed that.
     
  6. No worries. Always happy to help :)
     
Thread Status:
Not open for further replies.

Share This Page