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