Hello! I came here to ask if it is possible to edit the reach distance of a player when attacking. For example, when a player attacks, their reach is longer than the default Minecraft reach distance.
You could repeatedly shoot a raycast, measure the distance and perform attack. If I recall correctly, then the left mouse button spammed Interaction packets, so you should handle that case if I'm right. Internal Handling: https://github.com/pmmp/PocketMine-...8bcd0642ef3fc/src/pocketmine/Player.php#L2648 RayTrace: https://github.com/pmmp/Math/blob/stable/src/VoxelRayTrace.php ^ returns Vector3[] of voxels it passed through tho. Might be helpful as well: https://github.com/pmmp/PocketMine-...ne/entity/projectile/Projectile.php#L189-L199 I think you'll figure it out. cheers!