Experience
Experience (or XP for short) can be obtained by gathering Experience Orbs from mining, defeated mobs and players, breeding, fishing, and using Furnaces. Experience is used for Enchanting and Anvils.
Contents |
[edit] Behavior
Gathering experience points increases the player's experience level by gradually filling a bar on the bottom of the screen until a new level is achieved when the bar is full. When the player dies, they drop 7 times their level as experience orbs, up to a maximum of 100 points (enough to reach level 5). All the other experience vanishes.
Experience Orbs will not drop from a mob unless the mob is killed by a player or damaged by the player and then killed by other means; therefore ordinary mob grinders cannot be used for farming experience (although grinders can be designed to funnel monsters to a holding location, and wear them down to one-hit kills). Experience orbs will "float" or glide toward the player if they are 2-3 blocks away.
Experience can come from mining coal, lapis lazuli, redstone, emeralds, diamonds, quartz, smelting smoothstone, glass, any ore (such as iron or gold), cooking food and fishing. The experience orbs will be picked up along with the coal, redstone, emeralds, and diamonds but the experience given from smelting ores will be granted when it is taken out of the furnace. The smelted ore must be removed from the furnace on the furnace management window. Simply breaking a furnace with smelted ore will not release XP orbs. In addition, killing the Ender Dragon will drop large orbs that can hold up to 1237 XP.
Mobs will drop a random number of orbs, and the orbs can have different values. However, the total value will always remain within these values, regardless of difficulty setting.
[edit] Exp sources
| Source | Experience |
|---|---|
| Animals | |
Chicken, Cow, Horse, Mooshroom, Ocelot (Cat), Pig, Sheep, Squid, Wolf (Dog)[note A 1] |
1–3 |
Bat, all baby animals |
0 |
| Golems | |
Iron Golem, Snow Golem |
0 |
| Monsters | |
Cave Spider, Creeper, Enderman, Ghast, Silverfish, Skeleton, Spider, Witch, Wither Skeleton, Zombie, Zombie Pigman |
5 |
Large Slime and Magma Cube [note A 2] |
4 |
Small Slime and Magma Cube [note A 2] |
2 |
Tiny Slime and Magma Cube |
1 |
Spider Jockey [note A 3] |
5 + 5 |
Blaze |
10 |
| NPCs | |
Villager |
0 |
| Bosses | |
Ender Dragon |
12,000 |
Wither |
50 |
| Mining blocks | |
Coal Ore |
0–2 |
Diamond Ore, Emerald Ore |
3–7 |
Lapis Lazuli Ore, Nether Quartz Ore |
2–5 |
Redstone Ore |
1–5 |
Monster Spawner |
15–43 |
| Smelting/Cooking | |
Diamond Ore, Emerald Ore, Gold Ore |
1.0 |
Iron Ore, Redstone Ore |
0.7 |
Clay, Potato, Raw Beef, Raw Chicken, Raw Fish, Raw Porkchop |
0.35 |
Clay |
0.3 |
Cactus, Lapis Lazuli Ore, Nether Quartz Ore |
0.2 |
Wood |
0.15 |
Coal Ore, Cobblestone, Netherrack, Sand |
0.1 |
| Other | |
Bottle o' Enchanting |
3–11 |
| Breeding animals | 1–4 |
Catching Raw Fish |
1–3 |
- ↑
Excludes baby animals.
- ↑ a b
Experience is dropped when these mobs split or die. This means the larger ones may drop experience several times before being fully defeated.
- ↑
The spider jockey consists of two mobs that move as one. Each part drops experience separately when it is defeated.
[edit] Leveling Up
Since Snapshot 12w23a, the way levels are gained has changed. The first 16 levels are linear (17 XP points per level), while level 17+ require more points per level compared to the prior level. The exact algorithm for experience required to get from your current level to the next is as follows (as recovered from the 1.5.1 source code): currentLevel >= 30 ? 62 + (currentLevel - 30) * 7 : (currentLevel >= 15 ? 17 + (currentLevel - 15) * 3 : 17.
In other words, if your current level is greater than or equal to 30, then you need [(7 * currentLevel) - 148] experience to gain another level. If your current level is between (inclusive) 16 to 29, you need [(3 * currentLevel) - 28)] experience to gain another level. If your level is 15 or below then you need a static (17) experience to gain another level.
The xp (y) required for the level (x) can be calculated as follows:
for 0≤x≤16: y=17x
for 15≤x≤31: y=1.5x²-29.5x+360
for x≥30: y=3.5x²-151.5x+2220
A calculator is available using the chart data below to detail for the user how much additional experience they need to obtain to reach a particular level. [1]

| Level | Exp | Exp from last |
|---|---|---|
| 1 | 17 | 17 |
| 2 | 34 | 17 |
| 3 | 51 | 17 |
| 4 | 68 | 17 |
| 5 | 85 | 17 |
| 6 | 102 | 17 |
| 7 | 119 | 17 |
| 8 | 136 | 17 |
| 9 | 153 | 17 |
| 10 | 170 | 17 |
| Level | Exp | Exp from last |
|---|---|---|
| 11 | 187 | 17 |
| 12 | 204 | 17 |
| 13 | 221 | 17 |
| 14 | 238 | 17 |
| 15 | 255 | 17 |
| 16 | 272 | 17 |
| 17 | 292 | 20 |
| 18 | 315 | 23 |
| 19 | 341 | 26 |
| 20 | 370 | 29 |
| Level | Exp | Exp from last |
|---|---|---|
| 21 | 402 | 32 |
| 22 | 437 | 35 |
| 23 | 475 | 38 |
| 24 | 516 | 41 |
| 25 | 560 | 44 |
| 26 | 607 | 47 |
| 27 | 657 | 50 |
| 28 | 710 | 53 |
| 29 | 766 | 56 |
| 30 | 825 | 59 |
| Level | Exp | Exp from last |
|---|---|---|
| 31 | 887 | 62 |
| 32 | 956 | 69 |
| 33 | 1032 | 76 |
| 34 | 1115 | 83 |
| 35 | 1205 | 90 |
| 36 | 1302 | 97 |
| 37 | 1406 | 104 |
| 38 | 1517 | 111 |
| 39 | 1635 | 118 |
| 40 | 1760 | 125 |
[edit] Pre-Snapshot 12w23a

A chart which details the experience per level and cumulative experience more accurately is available here: Detailed Enchanting Experience Chart (last updated 7/3/12)
| Level | Exp | Exp from last |
|---|---|---|
| 1 | 7 | 7 |
| 2 | 17 | 10 |
| 3 | 31 | 14 |
| 4 | 48 | 17 |
| 5 | 69 | 21 |
| 6 | 93 | 24 |
| 7 | 121 | 28 |
| 8 | 152 | 31 |
| 9 | 187 | 35 |
| 10 | 225 | 38 |
| Level | Exp | Exp from last |
|---|---|---|
| 11 | 267 | 42 |
| 12 | 312 | 45 |
| 13 | 361 | 49 |
| 14 | 413 | 52 |
| 15 | 469 | 56 |
| 16 | 528 | 59 |
| 17 | 591 | 63 |
| 18 | 657 | 66 |
| 19 | 727 | 70 |
| 20 | 800 | 73 |
| Level | Exp | Exp from last |
|---|---|---|
| 21 | 877 | 77 |
| 22 | 957 | 80 |
| 23 | 1041 | 84 |
| 24 | 1128 | 87 |
| 25 | 1219 | 91 |
| 26 | 1313 | 94 |
| 27 | 1411 | 98 |
| 28 | 1512 | 101 |
| 29 | 1617 | 105 |
| 30 | 1725 | 108 |
| Level | Exp | Exp from last |
|---|---|---|
| 31 | 1837 | 112 |
| 32 | 1952 | 115 |
| 33 | 2071 | 119 |
| 34 | 2193 | 122 |
| 35 | 2319 | 126 |
| 36 | 2448 | 129 |
| 37 | 2581 | 133 |
| 38 | 2717 | 136 |
| 39 | 2857 | 140 |
| 40 | 3000 | 143 |
| Level | Exp | Exp from last |
|---|---|---|
| 41 | 3147 | 147 |
| 42 | 3297 | 150 |
| 43 | 3451 | 154 |
| 44 | 3608 | 157 |
| 45 | 3769 | 161 |
| 46 | 3933 | 164 |
| 47 | 4101 | 168 |
| 48 | 4272 | 171 |
| 49 | 4447 | 175 |
| 50 | 4625 | 178 |
[edit] Video
[edit] History
| Classic | ||
|---|---|---|
| Classic | A precursor to the experience system was the point system in Classic Survival Test. | |
| Beta | ||
| 1.8 | Experience was originally revealed by Jeb during an interview.[1] Jeb released a picture of the 1.8 GUI list, which shows the experience bar, among other things. | |
| Experience was added, but there was no measurable benefit to gaining Experience Orbs and levels. | ||
| 1.9pre1 | For this version only, as a test, experience was gained when jumping. However, experience still did nothing. | |
| 1.9pre2 | Change mentioned in "1.9pre1" removed. | |
| 1.9pre4 | The ability to spend experience levels for Enchanting items was added. | |
| The level number was shown, and each level was harder to get to than the previous one. | ||
| Official release | ||
| 1.2 | 12w04a | The Bottle o' Enchanting was added, but the next snapshot made it only useful for adventure maps. |
| 12w05a | Removed the need for experience when enchanting in creative mode. Experience requirements were also changed in this update. | |
| 1.3 | 12w22a | Players can get XP from mining, breaking mob spawners, and smelting in a furnace. A very large amount of experience can be collected while mining, sometimes into the hundreds of levels. Coal, lapis lazuli, redstone, diamond and emerald ore give you experience points. Iron and gold ore instead give experience when smelted. |
| The cost to gain each level was made constant, at 17 points per level. | ||
| Only level 30 is required to get the maximum level of enchanting. | ||
| 12w23a | XP levels now cost 17 XP Orbs each until level 16, after which the cost per level grows linearly, and the total XP grows quadratically (incorrectly stated "exponentially" by Mojang). However, it is easier to get to 30 levels than it was before 12w22a. | |
| 1.4 | 12w39a | Levels could be used in commands by typing, for example, @a[lm=4,l=7], choosing everyone between 4 and 7 levels inclusive. This is normally used in a command block. |
| 12w41a | Anvils were added, repairing and combining items at the cost of experience levels. | |
[edit] Issues
Issues relating to "Experience" or "Orb" are maintained on Mojira. Report issues there.
[edit] Trivia
- Signs cannot be seen through experience orbs.
- Experience orbs will drop from a mob if it dies within 5 seconds of being hit by a player. This means you can use fall damage by knocking mobs off a cliff.
- Using enchantments does not decrease your score (which is shown on death).
- When enchanting, the experience levels used will be subtracted from your current level, not your current XP total. This has important implications for leveling above 30—the levels gained will have a high XP cost, but this will not be preserved. For example, if you are enchanting anything at level 30: if you earn enough experience to get to level 31, then enchant, you will be left at level 1. If you had enchanted first, and collected the same amount of experience afterward, you would have reached level 5.
- From one large slime, the minimum experience you can get from killing it and all the slimes that split from it is 12, 4 from the largest, 2 from the 2 it splits into, and 1 from the 2 each of those split into. The maximum experience possible is if the big slime splits into 4 and each of those medium slimes split into 4, resulting in 28 total experience.
- The experience level costs were heavily revised in snapshot 12w22a and 12w23a. Before these, reaching level 50 (the maximum usable on a single enchantment) required 4625 experience, corresponding to defeating 925 hostile mobs. Afterwards, considerably less experience is needed to get into higher levels (The amount which would formerly get the player to level 30 now gets them to level 93), but higher levels cost more experience than lower ones. The announcement incorrectly stated "enchantment levels are slightly exponential again"; in fact, they are quadratic at higher levels. However, the levels are still easier to get than in 1.2.5, requiring only 825 experience to get to level 30 (the new maximum for enchantments).
- Level 22 is about halfway to level 30; level 31 is about halfway to level 40.
- One can determine how much experience has been collected to reach a level using the equations:
-
- Total Experience = 17[Level] (at levels 0-15)
-
-
-
-
- 1.5[Level]2 - 29.5[Level] + 360 (at levels 16-30)
- 3.5[Level]2 - 151.5[Level] + 2220 (at level 31+)
-
-
-
-
- Total Experience = 17[Level] (at levels 0-15)
- This equation does not include any experience that is currently filling the experience bar.
- Additionally, the amount of experience required to advance to the next level can be calculated using the equations:
- Experience Required = 17 (at levels 0-14)
-
-
-
-
-
- 3[Current Level] -28 (at levels 15-29)
- 7[Current Level] - 148 (at level 30+)
-
-
-
-
-
- Experience Required = 17 (at levels 0-14)
- Killing the Enderdragon will now give approximately 78 XP Levels (105 before 12w22a). The Enderdragon actually drops 10 orbs worth 1,000 experience points, and another worth 2,000. Taken separately, the smaller orbs could take a player from zero to level 32, while the big orb would take a player from zero to level 41.
- If you gain too many experience points (such as a trillion through server commands), the experience bar will disappear altogether as well as your level on your HUD. This appears to occur around level 32,767 (the largest value representable as a 16-bit signed integer).
- The maximum XP that you can earn from a Command Block is 1,999,999,999
- The maximum experience level is 24791
- The highest level you can gain with /xp without overflowing is 1241258, which results in 2,147,483,647 exp, which is the highest possible integer in Java



