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