yea PHP: public function onHit(ProjectileHitBlockEvent $event){ $en = $event->getEntity(); $block = $event->getBlockHit(); if($en instanceof Snowball){ $x = $block->getX(); $y = $block->getY(); $z = $block->getZ(); $en->getLevel()->setBlock(new Vector3($x,$y,$z),Block::get(0)); } }
i dont know what do you mean by Wheres the diffrence, really you dont know diffrence between breaking blocks, set block in minecraft!? dont replay for these mockery sentences.