Get Blocks of a Wall

Discussion in 'Plugin Development' started by MrGriefer_, Sep 21, 2020.

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

    MrGriefer_

    So I'm trying to create something similar to the Walls minigame which includes many blocks placed in a cross shape (like the picture below) and I would like to know the best way to store all the wall blocks in a list or maybe a map.

    Example (open)
    [​IMG]
     
  2. Offline

    Kars

    I would personally store it in a custom object with 8 locations (for the corners of the cross) and the height.
     
  3. Offline

    MrGriefer_

    8 locations? Could you give me an example?
     
  4. Offline

    Kars

  5. Offline

    MrGriefer_

    Okay so I figured it out, I tried using Set<Cuboid> and it did work fine but I'm not sure if it is the best way to achieve this.
     
  6. Offline

    Kars

    @MrGriefer_ feel free to think of an alternative. Let me know what you come up with ;)
     
Thread Status:
Not open for further replies.

Share This Page