1.15.2 Move blocks from point A to point B

Discussion in 'Spigot Plugin Development' started by hidden1nin, Mar 1, 2020.

  1. I want to make a plane that flies overhead and drops a crate. I can handle the crate part but how can i move blocks? i know that vanilla minecraft has a command that moves blocks and keeps their nbt data, how could i do this in a plugin.
  2. for() loops for x and z.
    Code (Java):
    double x;
    for(int i = 0; i != x; i++) {
    // code
    Maybe not the best code-example
    #2 GodCipher, Mar 1, 2020
    Last edited: Mar 1, 2020
  3. You can move the blocks in the minecraft-grid or use armor-stands to make it more fluent.
  4. armor stands always seem to lag so ill probably use the minecraft grid