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

Need some help plz

Comments in 'Plugin Development' started by Flabe, Jan 19, 2016.

  1. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    Hello , i want to make the bow that can do setBlock by shooting in some place....

    So , is it possible to make this bow to set
    Dirt to Air by shooting at it??

    Please help if you know how to do that.
  2. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    Use ProjectileHitEvent
    Omar2s2 likes this.
  3. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    Please, when you want help, please use a suitable title. nothing at all related to "need some help". use something like, "what is the bow hit target event?" its just so the staff (and helpful users) can kmow if its the sort of thing they kniw
    PEMapModder, applqpak and Vaivez66 like this.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    TheDeibo likes this.
  5. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    so, i see only projectile i don't see hoe to get the block that was hit by projectile
    namespace pocketmine\event\entity;
    use pocketmine\entity\Projectile;
    class ProjectileHitEvent extends EntityEvent{
    public static $handlerList = null;
    /**
    * @param Projectile $entity
    */
    public function __construct(Projectile $entity){
    $this->entity = $entity;
    }
    /**
    * @return Projectile
    */
    public function getEntity(){
    return $this->entity;
    }
    }
  6. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    That means the issue has not been resolved yet.
    Is that clear enough?
  8. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    so what can i do now? Just wait ?

Share This Page

Advertisement