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

Tap on block

Discussion in 'Development' started by FirzMob, Sep 15, 2019.

  1. FirzMob

    FirzMob Creeper

    Messages:
    3
    How do I remove blocks around a clicked block?
     
  2. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    foreach $block->getAllSides() and setblock at those position as air
     
  3. FirzMob

    FirzMob Creeper

    Messages:
    3
    and if I want to remove three blocks around the block, how do I write it?
     
  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.