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