how to get the block the player is looking at spigot api code example Example: Spigot how to get block player is looking at player.getTargetBlock(null, 200);