Levels are not XP points
Your XP bar fills with points; each level-up requires more points than the last. The anvil charges in levels, so the points you actually spend depend on your current level. Spending 3 levels at level 40 costs far more points than 3 levels at level 10.
The level-to-points formula
- Levels 0-15: going from level L to L+1 costs (2*L + 7) points.
- Levels 16-30: going from level L to L+1 costs (5*L - 38) points.
- Levels 31+: going from level L to L+1 costs (9*L - 158) points.
- Total points to reach level L: (L^2 + 6*L) up to level 16, (2.5*L^2 - 40.5*L + 360) up to level 31, then (4.5*L^2 - 162.5*L + 2220).
Why this matters for god gear
A god-sword recipe might cost 30-39 anvil levels. Because each level costs more points than the last, reaching level 45 takes about 4,000 cumulative XP points, while level 30 takes about 1,395. This is exactly why the optimal anvil order matters: every level saved is points you don't have to farm. The calculator shows both the level cost and the minimum XP points for the whole recipe.
Practical XP farming for enchanting
- Enderman or hostile-mob farms: thousands of points per hour.
- Blaze rods + bottle o' enchanting: instant, trade-friendly XP.
- Mining quartz/ancient debris: XP while gathering resources.
- Breeding animals (pre-farm): cheap early-game XP.