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