How can we spawn a primed tnt which will break blocks but won't hurt other players? I tried spawning a primed tnt entity but it doesn't break blocks, it only gives knockback which i dont want..
It's hard coded so you can cancel an EntityMotionEvent if you could get the timing right https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/level/Explosion.php#L191
I've been working on a script for this. It's not the best because I did it freehand, but I think it should work.
Why not just cancel pocketmine\event\entity\EntityDamageEvent when the cause is that of an explosion?