1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

All blocks in a radius

Discussion in 'Development' started by Hipster, Jan 28, 2017.

  1. Hipster

    Hipster Zombie

    Messages:
    214
    how to select and break all the blocks in a radius from BlockBreakEvent? the center to be the block which the player breaks.
     
  2. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Hipster likes this.
  3. Hipster

    Hipster Zombie

    Messages:
    214
    so setblock air instead of stone right?
     
  4. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Yup, or setBlockIdAt and use air.
     
    Hipster likes this.
  5. Hipster

    Hipster Zombie

    Messages:
    214
    how to make the block from getBlock() in Vector3?
     
    Last edited: Jan 28, 2017
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.