Fast block manipulation

Discussion in 'Plugin Development' started by WolfMage1, Oct 24, 2016.

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

    WolfMage1

  2. Offline

    Whoneedspacee

    Tell me if you figure anything like that out, only way I could think of doing it is having a scheduler timer run through the blocks so it doesn't overload the server, but it wouldn't place instantly.
     
  3. Offline

    WolfMage1

  4. Offline

    mythbusterma

    @WolfMage1

    I've actually used that before, and it works well. I don't think it would be too hard to fix that up for newer versions. The idea is that every time you do a block update the normal way, it sends a notification to all nearby players, changing many blocks at once causes a lot of updates to go out.

    Changing the blocks in memory (which amounts to updating an array) and sending the changes out to players in a chunk download is much, much faster and allows you to update millions at once without issue.
     
    Last edited: Oct 25, 2016
  5. Offline

    WolfMage1

    Only methods I don't know what the replacements are is

    Code:
    if (j >= that.b[i1] - 1) {
    that.b[i1] = -999;
    }
    
    Code:
    block1.f(that.world, l1, j, i2, k1);
    
    Code:
    !that.world.worldProvider.g);
    
     
    Last edited: Oct 25, 2016
Thread Status:
Not open for further replies.

Share This Page