There are 85 Gold bricks overall, they're are awarded for:
- Completing a level in story mode.
- Achieving true pirate on a level (see "There's the Jack I know").
- Collecting all minikits on a level (see "Hoist the colours").
- Filling the compass on a level.
- 4 more bricks will be located on the piers of the dock area of the hub (all the way to the right), one for each film. They'll appear after you've collected all the minikits for the respective film.
- After you've collected those 84 gold bricks you'll be able to build an object in the left part of the hub. Doing that will open up the golden gate near the pub. Inside is a bonus level that you have to complete for the final gold brick.