Fake blocks/Chunks - Visual response to player selecting his cuboid

Discussion in 'Plugin Development' started by Ribesg, Dec 10, 2012.

Thread Status:
Not open for further replies.
  1. Hi !
    What I want is simple, I want my users to be able to "see" a cuboid by sending them fake blocks change. I want to send fake blocks for the edges of the rectangular parallelepiped. I didn't tried yet, but I'm pretty sure that sendBlockChange() would be heavy.
    Is there a faster way of doing this ?
    I red something about sendChunkChange but was not able to find resources about how to set this damn byte[] array.
    Thanks for help ! :)
     
  2. Offline

    Comphenix

    Well, it may not require that many blocks though. Especially if you just send the "wire-frame" version of the parallelepiped. The sendBlockChange() method might not be as bad as you think.

    In any case, yes, you can send complete chunks, more or less how Orebfuscator is doing it:
    http://forums.bukkit.org/threads/sending-a-player-a-false-chunk.109263/#post-1405585

    You can't just use BlockPatcher, though. You'll have to modify it to suit your needs.
     
Thread Status:
Not open for further replies.

Share This Page