Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Arrow destroys a Block

Comments in 'Plugin Development' started by GmWM, Jun 2, 2015.

  1. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    Hello!

    I need some help from you, devs. When an Arrow hits a block, it will disappear (destroy). How can I do this in PHP?

    Thanks!
  2. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Use ProjectileHitEvent
    GmWM likes this.
  3. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    I knew it has something in common with this event. Anyway, thank you!
  4. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    You must get position of entity and after get position of block which you want to destroy.
  5. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    I hope I can do it . :p
    Creeperface likes this.

Share This Page

Advertisement