How to generate structures?

Discussion in 'Plugin Development' started by Geekhellmc, Jul 22, 2014.

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

    Geekhellmc

    How do I generate structures like maybe forming a cube?
     
  2. Geekhellmc
    Use a loop to create a cube, then use World#getBlockAt(), then set its type to some Material.
     
  3. Offline

    _Filip

    Try making the code, and if you can't figure it out I will help you.
     
  4. Offline

    Geekhellmc

    Ok I will try

    Something like:
    Code:
     public String layers(int y, int layloc){
    String[] layer1 = {
    "STONE", "AIR", "STONE",
    "AIR", "STONE", "AIR",
    "STONE", "AIR", "STONE"
    };
     
    String[] layer2 = {
    "AIR", "AIR", "AIR",
    "AIR", "STONE", "AIR",
    "AIR", "AIR", "AIR"
    };
     
    String[] layer3 = {
    "STONE", "STONE", "STONE",
    "STONE", "AIR", "STONE",
    "STONE", "SYONE", "STONE"
    };
    if (y == 0){return layer1[layloc];}
    if (y == 1){return layer2[layloc];}
    if (y == 2){return layer3[layloc];}
    return null;
    }
    Is it possible to use particles and not blocks?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  5. It won't be laggy?
     
  6. Offline

    Geekhellmc

    just like 1 particle per block, no beggy
     
  7. Offline

    fireblast709

  8. Offline

    Necrodoom

    Generate structures out of particles?
     
  9. Offline

    Geekhellmc

Thread Status:
Not open for further replies.

Share This Page