Think on Math (::: Get Blocks

Discussion in 'Plugin Development' started by Plugers11, Aug 8, 2014.

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

    Plugers11

  2. Offline

    mrgreen33gamer

    Plugers11 I think you need to be a little more specific. Are you trying to get the blocks within a certain area like a Cuboid?
     
  3. Offline

    Plugers11

    mrgreen33gamer
    I want to get all blocks where is air for example in circle and 1 width for example
     
  4. Offline

    Marten Mooij

    Your paint drawing was no help at all understanding what you mean.
    Do you mean something like this?:
    Code:java
    1. @EventHandler
    2. public void onBlockBreak(BlockBreakEvent event){
    3. event.getBlock().getRelative(BlockFace.NORTH).breakNaturally();
    4. event.getBlock().getRelative(BlockFace.NORTH_EAST).breakNaturally();
    5. event.getBlock().getRelative(BlockFace.EAST).breakNaturally();
    6. event.getBlock().getRelative(BlockFace.SOUTH_EAST).breakNaturally();
    7. event.getBlock().getRelative(BlockFace.SOUTH).breakNaturally();
    8. event.getBlock().getRelative(BlockFace.SOUTH_WEST).breakNaturally();
    9. event.getBlock().getRelative(BlockFace.WEST).breakNaturally();
    10. event.getBlock().getRelative(BlockFace.NORTH_WEST).breakNaturally();
     
  5. Offline

    mrgreen33gamer

    Plugers11 So, you're wanting to detect air?
     
  6. Offline

    Plugers11

    Marten Mooij
    Could be but this is only for some blocks
    I want to make getting blocks like plugin : CreativeGates
     
  7. Offline

    Marten Mooij

    Plugers11 I can't help you until you start making sence.
     
  8. Offline

    Plugers11

    Ok maybe other
    You want to make portal yes?

    Our materials :
    A - Air
    B - Block
    for example

    B B B B
    B A A B
    B A A B
    B B B B

    And now
    I want to get all this Air blocks

    OFFTOPIC : I must go, I will be tomorrow If u can help than i will be happy :D
     
Thread Status:
Not open for further replies.

Share This Page