Moreyball Percentage (MB%) is the percentage of a player’s shots taken either within 3 feet of the basket or behind the three point line. All shots in the exclusion zone (between the three point line and the restricted area) are, well, excluded.
Moreyball Percentage = (Attemptswithin 3FT + Attempts3PT) / AttemptsTotal

We only want shots in the restricted area, or in 3-point range. Nothing in the exclusion zone.
For reference, the league-wide MB% is still to be calculated. Note that this isn’t the league average, but is a league-wide calculation of shots outside the exclusion zone divided by total shots.