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

Solved Blocks around Arrow

Comments in 'Plugin Development' started by CraftYourBukkit, Nov 5, 2015.

  1. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    How do I get the Blocks around an arrow in ProjectileHitEvent?
    Cristalix and iDirtPlayzMC like this.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    $entity->getBlocksAround().
    But you will then recalculate the blocks, if you might be trying to do that. The best solution is to let PocketMine add the collided block in ProjectileHitEvent.
  3. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Well, I want to change the blocks around it to another block.

Share This Page

Advertisement