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.
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
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; } }