Behavior
Most experience comes in the form of experience orbs, small green and yellow spheres that move toward the player and will automatically be added to their total when collected. Experience orbs cannot be added to the player`s inventory.
Gathering experience points from experience orbs 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 experience orbs worth 7 * current level experience points, up to a maximum of 100 points (enough to reach level 5). All the other experience vanishes.
Experience can be gained from several different sources:
- From killing monsters, which drop experience orbs along with any other items.
- A mob will not drop experience unless it dies within five seconds (100 game ticks) of an attack registered as a player hit (including tamed wolves and TNT). This allows gaining experience from, say, knocking a monster off a cliff (fetching the orbs might be another question). You can also try to "claim" a burning monster by hitting or shooting it once⃢₀ₔeven if the blow doesn`t kill it, if the fire does within 5 seconds, it will drop XP. (5 seconds of fire only does 5 () damage, but of course you can keep trying.)
- Mobs killed by TNT TNT Transparency Partial (cannot attach other blocks) Luminance No Blast resistance 0 Tool Any tool Renewable No Stackable Yes (64) Flammable Yes Drops Itself Data value dec: 46 hex: 2E bin: 101110 Name tnt TNT is a block
activated by a player using flint and steel Flint and Steel Type Tools Durability 65 Renewable No Stackable No Data value dec: 259 hex: 103 bin: 100000011 Name flint_and_steel The flint and steel is a tool used to light fires. Contents 1 Obtaining 1.1 Crafting 1.2
will drop XP as usual; however mobs killed by TNT that was activated by fire, redstone, or an explosion that wasn`t player activated don`t drop any experience.
- Mobs will drop a random number of orbs, and the orbs can have different values. Be that as it may, the total value will always remain within the values given below, regardless of difficulty setting.
- Hostile mobs give more experience than passive ones. Baby animals, bats, golems, and villagers give no experience at all. The ender dragon Ender Dragon Health points 200 ( × 100) Attack strength Peaceful: 0 () Easy: 6 () Normal: 10 () Hard: 15 () Breath attack: 6 () after a half-second Exploding fireball attack: 12 () after
gives orbs totalling 12,000 XP, over 200 times more than anything else in the game.
- Some hostile mobs spawn with weapons, or can spawn with weapons and/or armor. These mobs give an extra 1⃢₀ₓ3 points (randomly) per piece of equipment that they spawned with. Equipment picked up after spawning doesn`t count.
- Mining (destroying) a spawner Monster Spawner Type Solid Block Requirements None Physics No Transparency Partial (doesn t block light) Luminance No (Small amount of light for Pocket Edition) Blast resistance 25 Hardness 5 Tool Renewable No Stackable Yes (64) Flammable
block gives 15⃢₀ₓ43 points of experience as orbs.
- From mining "Punch" redirects here. For the enchantment, see Enchanting#Punch. The Player punches trees and gets wood (click to view animation). Breaking, digging, punching, or mining is one of the most fundamental activities in Minecraft, performed (by
any ore, except iron and gold. The orbs are produced along with the mineral item(s). If a Silk Touch "Flame" redirects here. For the non-solid damage-dealing block, see Fire. “ How does enchanting work in Minecraft? Well, you open a magical book and pick a random spell, not quite sure knowing what it will
pick is used to mine the ore block, the experience is not dropped, but the block can later be placed and mined normally to releaseAnnounce the mineral and the experience.
- The ore will still produce orbs if destroyed by an explosion, whether or not it was caused by player activated TNT.
- From smelting The furnace interface. Smelting is a method of producing refined goods in Minecraft, also known as melting, baking, cooking, burning, drying, or producing. It has the same idea as crafting; one must put in acceptable any of various items.
- Smelting any ore yields some experience, but normally only iron and gold are worthwhile. For all other ores, mining them is better.
- Moderate amounts are gained by smelting/cooking other materials: food, clay balls or blocks, cactus, wood logs, sand, or cobblestone.
- The experience given from smelting does not appear as orbs, but is granted immediately to the player who removes the product from the furnace.
- The smelted material must be taken from the furnace through its GUI window. Using a hopper to unload the furnace forfeits the experience, as does dumping the contents by breaking the furnace.
- From breeding Two villagers in "love mode", breeding “ If you hold food in your hand, they follow you around. If you feed them, they enter "love mode". Two animals in love mode = babies. „ —Notch
animals, which produces orbs where the parents are, along with the baby animal. Breaking eggs Egg Type Food Durability N/A Renewable Yes Stackable Yes (16) Internal ID PC: 7 PE: 82 Network ID PC: 62 Entity ID egg First appearances See History Data value dec: 344 hex: 158 bin: 101011000 Name egg This
does not give experience.
- From fishing Fishing is the process of obtaining fish using fishing rods. Contents 1 Catching fish 2 Junk and treasures 3 Fishing rod durability 4 History 5 Issues 6 Trivia Catching fish edit | edit source] A
. The experience is awarded immediately upon reeling in the fish, even if the fish itself is not picked up.
- A bottle o` enchanting Bottle o Enchanting Type Items Durability N/A Renewable Yes Stackable Yes (64) Internal ID PC: 17 PE: 68 Network ID PC: 75 Entity ID xp_bottle Experience Thrown: 3-11 First appearances See history Data value dec: 384
releases orbs when broken.
Trivia
- In Beta 1.8 Pre-release 1, when the player died, they dropped all of their experience orbs individually. This created a problem with the retrieval of drops if the player had accumulated a large sum of experience due to the extremely large amount of orb items created at the specific point. On SMP servers, this could be enough to even crash a server.
- In Beta 1.9 Pre-release, the player gained Experience from jumping. This was part of the code left in by Jeb for testing Experience.
- Sometimes, in Multiplayer, the Experience Orbs will orbit the player.
- At their death, Withers and the Ender Dragon will drop noticeably large orbs, along with dozens of regular ones as they are bosses. Withers will drop fewer experience points than the Ender Dragon does.
- Single-player maps brought into Multiplayer will cause a bug where the Player will have their experience reset.
- Experience points are abbreviated to XP.
- The maximum level of Experience is 2,147,483,647 (2^31) levels.
- The colors of the experience orbs are either green or yellow.
- In Minecraft: Pocket Edition, the max level a player can reach is 24,791. However, achieving this level is impossible unless a player uses the /xp command.
- Unlike some other games in multiplayer mode both players do not both benefit from the same XP orb.
Info
First appearances | See History |
---|---|
Internal ID | PC: 2 |
Network ID | PC: none |
Entity ID | xp_orb |
Experience (EXP or XP for short) can be obtained by gathering experience orbs from mining, defeated mobs "Monster" redirects here. For the mob called "monster" in the code, see Human. Mobs are living, moving game entities. The term "mob" is short for "mobile". 1] Contents 1 Spawning 2 Behavior 3 List of and players, breeding Two villagers in "love mode", breeding “ If you hold food in your hand, they follow you around. If you feed them, they enter "love mode". Two animals in love mode = babies. „ —Notch
, fishing Fishing is the process of obtaining fish using fishing rods. Contents 1 Catching fish 2 Junk and treasures 3 Fishing rod durability 4 History 5 Issues 6 Trivia Catching fish edit | edit source] A
, and using furnaces Furnace Type Solid Block Requirements None Physics No Transparency Partial (when active) Luminance Yes, 13 (when active) Blast resistance 17.5 Hardness 3.5 Tool Renewable Yes Stackable Yes (64) Flammable No First appearances See History Drops
. As tradition, experience points accumulate into experience levels. Be that as it may, unlike many games, experience levels do not directly increase the character`s abilities. Instead, experience is used for enchanting "Flame" redirects here. For the non-solid damage-dealing block, see Fire. “ How does enchanting work in Minecraft? Well, you open a magical book and pick a random spell, not quite sure knowing what it will
and anvils Anvil Transparency Yes Luminance No Blast resistance 6,000 Tool Renewable Yes Stackable Yes (64), same damage state only Flammable No Drops Itself Data value dec: 145 hex: 91 bin: 10010001 Name anvil See the item
, to produce weapons, armor, and tools with various useful abilities.
Videos
Trivia
- Using enchantments does not decrease your score (which is shown on death).
- If you gain too many experience points (such as a trillion through commands), the experience bar will disappear altogether as well as your level on your HUD. This appears to occur around level 32,767 (which is equal to (2^15)-1; the largest value representable as a 16-bit signed integer).
- The maximum XP that you can earn from the
/xp
command is 2,147,483,647 levels (which is equal to (2^31)-1; the largest value representable as a 32-bit signed integer). - The maximum experience level is 24791 (With just
/xp
). - The maximum glitchless experience level is 32767 (With just
/xp #L
)(Where # is the level and the L increases the person`s level by that many levels) - The highest level you can gain with
/xp
without overflowing is 1241258, which results in 2,147,483,647 exp, which is the maximum value for the int data type, in Java, which is what is used to store the exp value. - Large XP orbs dropped from the ender dragon give the player more XP.
Experience orbs
Experience orbs fade between a green and yellow color and will "float" or glide toward the player up to a distance of 6 blocks, speeding up as they get nearer to the player. Experience orbs pulled towards a player are slowed by spider webs. Experience orbs can also be pulled around or away from the player by running water currents.
When collected, experience orbs make a Christmas bell-like sound for a split second. Unlike resources, experience points are picked up gradually: no matter how many orbs are in range of the player, they will be added to the player`s experience one at a time. In extreme cases, this can result in the player being followed by a swarm of orbs for many seconds. If an experience orb isn`t collected within 5 minutes of its appearance, it will disappear.
Experience orbs vary in value, but naturally spawned orbs will always have an integer value of 1–11, 17, 37, 73, 149, 307, 617, 1237, or theoretically 2477 (although currently no orbs with this value will spawn). Fishing, breeding, and trading drop a single orb with a random value in the appropriate range. Breaking blocks, killing mobs and players, smelting items, and bottles o` enchanting calculate their total experience amount and then split it into values of 1, 3, 7, 17, 37, 73, 149, 307, 617, 1237, and 2477. Higher values are chosen first, so for example a total value of 1000 would be dropped as orbs with values 617, 307, 73, and three 1s. Note that while the first Ender Dragon in a world drops 12,000 experience, it is dropped in 10 waves of 1000 and one of 2000, so no orbs of value 2477 are dropped.
The general worth of an orb is reflected by its size, with eleven possible sizes corresponding to values 1–2, 3–6, 7–16, 17–36, 37–72, 73–148, 149–306, 307–616, 617–1236, 1237–2476, and 2477 and up.
Experience orbs can be destroyed by fire, lava, explosions and cacti, and can trigger pressure plates and tripwires. Although mob drops See the items that drop from entities and blocks. For drops as in falls, see Fall Damage. Typical drops from a skeleton: experience orbs, an arrow, and bones. Drops are items that spawn the instant the final blow is dealt to the mob, experience orbs do not until the mob entity disappears and the smoke appears. When a player picks up an experience orb from a bottle o` enchanting while riding on a minecart, the minecart will stop instantly.
Experience amounts by source
- ↑ 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.
- ↑ a b Jockeys consists of two mobs that move as one. Each part drops experience separately when it is defeated.
Leveling up
Level | Exp | Exp from last |
---|---|---|
1 | 7 | 7 |
2 | 16 | 9 |
3 | 27 | 11 |
4 | 40 | 13 |
5 | 55 | 15 |
6 | 72 | 17 |
7 | 91 | 19 |
8 | 112 | 21 |
9 | 135 | 23 |
10 | 160 | 25 |
Level | Exp | Exp from last |
---|---|---|
11 | 187 | 27 |
12 | 216 | 29 |
13 | 247 | 31 |
14 | 280 | 33 |
15 | 315 | 35 |
16 | 352 | 37 |
17 | 394 | 42 |
18 | 441 | 47 |
19 | 493 | 52 |
20 | 550 | 57 |
Level | Exp | Exp from last |
---|---|---|
21 | 612 | 62 |
22 | 679 | 67 |
23 | 751 | 72 |
24 | 828 | 77 |
25 | 910 | 82 |
26 | 997 | 87 |
27 | 1089 | 92 |
28 | 1186 | 97 |
29 | 1288 | 102 |
30 | 1395 | 107 |
Level | Exp | Exp from last |
---|---|---|
31 | 1507 | 112 |
32 | 1628 | 121 |
33 | 1758 | 130 |
34 | 1897 | 139 |
35 | 2045 | 148 |
36 | 2202 | 157 |
37 | 2368 | 166 |
38 | 2543 | 175 |
39 | 2727 | 184 |
40 | 2920 | 193 |
The formulas for figuring out how many experience orbs you need to get to the next level are as follows:
-
- Experience Required = 2Current Level + 7 (for Current Level 0-15)
-
-
-
-
-
- 5Current Level - 38 (for Current Level 16-30)
- 9Current Level - 158 (for Current Level 31+)
-
-
-
-
-
- Experience Required = 2Current Level + 7 (for Current Level 0-15)
One can determine how much experience has been collected to reach a level using the equations:
-
- Total Experience = Level2 + 6Level (at levels 0-16)
-
-
-
-
- 2.5Level2 - 40.5Level + 360 (at levels 17-31)
- 4.5Level2 - 162.5Level + 2220 (at level 32+)
-
-
-
-
- Total Experience = Level2 + 6Level (at levels 0-16)
Useful numbers
- Killing one large slime and all the slimes that split from it will yield from 12 to 28 experience, with an average of 19.
- The maximum level required for enchanting is level 30, while the anvil will accept jobs up to level 39 (in creative mode the anvil limit is removed).
- Level 16 is a quarter of the way to level 30, while level 22 is about halfway there. Level 30 in turn, is halfway to level 39.
- Killing the ender dragon the first time will give approximately 68 XP levels. The ender dragon actually drops 10 waves of orbs worth a total of 1,000 experience points per wave, and another worth a total of 2,000. Taken separately, the smaller waves could take a player from zero to level 26, while the big wave would take a player from zero to level 34. The largest orb dropped will have a value of 1237 experience points, and can take a player from zero to level 28 all by itself.
- Maximum experience value can be gained by
/xp
command is 2147483648 (which is 2^31. This is likely due to experience being stored as a signed Java-standard 32-bit integer.) - Maximum value for one orb used by
/summon
is 1277951 - Maximum level of XP you can get legitimately is 21863, but you can get up to 2147483647 using commands, in this case the experience bar may disappear and reappear.
Score
Score is the number of experience the player has collected since their last death. This number is the total experience the player has collected, rather than the amount of experience they had upon death. When the player dies, the score is displayed on the death screen.
- Trivia
- Before Beta 1.9-pre2, the score read &e0.
- This was caused by a error in which, the game renders color text. ⸢⸇e0 would render the text as 0, but shaded bright yellow. From Indev 0.31 (the version in which the precursor to experience, a score system, was removed after Survival Test) to this version, a bug arose where it would display &e0 instead, a common error when formatting color text in Minecraft (except on custom servers with the plugin to override this).
Data values
- See also: Chunk format
Experience orbs have entity data associated with them that contain various properties of the entity. Their entity ID is xp_orb
.
Entity data- Tags common to all entities see Template:Nbt inherit/entity/template
Age: The number of ticks the XP orb has been "untouched". After 6000 ticks (5 minutes) the orb is destroyed. If set to -32768, the Age will not increase, thus the XP orb will not automatically despawn.
Health: The health of XP orbs. XP orbs take damage from fire, lava, falling anvils, and explosions. The orb is destroyed when its health reaches 0. Be that as it may, this value is stored as a byte in saved data, and read as a short but clipped to the range of a byte. As a result, its range is 0-255, always positive, and values exceeding 255 will overflow.
Value: The amount of experience the orb gives when picked up.
Video
History
In an image of the new lighting system, a small yellow (the orb was yellow due to a warm light from a torch) spherical shape can be seen on the left side of the screen, but a day after the photo was published Notch claimed it had an error and posted a new one, this time, without a yellow sphere. In a later tweet, Notch showed a picture of a Beta 1.7 change-list (back then the adventure update was supposed to be in beta 1.7). Although it was completely blurred out and was, at first, thought of as a joke, but then Notch stated that one of the pictures with the new lighting system and the change list had a secret in them, and people all around the web started speculating.
One place that people discussed it was on the Minecraft forums, where it was discovered that the tabs at the top of the change list that were partly covered, could be decoded based on the 2 pixel tall pattern available in the image.
After a user named “tmcaffeine” successfully decoded it, the tabs read: ExperienceOrb.java, changelist.txt, Level.java, Tile.java, HugeMushroomTile.java, HugeMushroomFeature.java, RandomLevelSource(cut)
Classic | |||||
---|---|---|---|---|---|
? | A precursor to the experience system was the score in Classic Survival Test. | ||||
Beta | |||||
1.8 | 1.8-pre1 | Experience was originally revealed by Jeb during an interview. 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. | |||||
Official release | |||||
1.0.0 | Beta 1.9-pre1 | For this version only, as a test, experience was gained when jumping. Be that as it may, experience still did nothing. | |||
Beta 1.9-pre2 | Change mentioned in 1.9pre1 removed. | ||||
Beta 1.9-pre4 | 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. | |||||
Beta Sound Update | Orbs now make a twinkling sound when collected. | ||||
? | Amount of experience orbs dropped by a player on death now limited. | ||||
Score will now appear correctly on “Game over!” screen. Each experience orb is worth one Score Point. | |||||
1.2.1 | 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.1 | 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). Be that as it may, it is easier to get to 30 levels than it was before 12w22a. | ||||
1.4.2 | 12w38a | Leveling up now makes a twinkly bell sound, similar to but longer than the XP orb sound. | |||
12w39a | Levels could be used in commands by typing, for instance, @alm=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. | ||||
The level-up sound now only plays every 5 levels, and is shortened. | |||||
1.6.1 | 13w21a | Experience levels no longer appear in Creative mode. Previously, experience would be hidden but experience levels would show. | |||
1.8 | 14w02a | Changes to the enchanting system mean that levelling up requires more experience. | |||
1.9 | 15w46a | Experience is now collected at the feet, meaning that if a large amount of experience is collected, it no longer blocks the player`s view. | |||
1.11 | 16w32a | Changed entity ID from XPOrb to xp_orb | |||
Pocket Edition Alpha | |||||
0.12.1 | build 1 | Added experience. | |||
build 8 | Experience orbs will now burn in fire or lava. | ||||
Pocket Edition | |||||
1.1 | build 1 | The entity ID is changed from xporb to xp_orb . | |||
Console Edition | |||||
TU7 | CU1 | 1.0 | Patch 1 | Added experience. Experience is collectable from smelting and/or mining ores, breeding and killing mobs. |
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 (assuming the "common" ones.) 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 39). Higher levels cost more experience than lower ones, but the levels are still easier to get than in 1.2.5. Now level 30 is the maximum for enchantments, and that cost is equivalent of 165 "common" mobs, less than 1/5 the old price.
Values of Beta 1.8 - Before 1.3.1 (12w23a)
Values of 1.3.1 - Before 1.8 (14w02a)
Issues
Issues relating to “Experience” or “Orb“ are maintained on the issue tracker. Report issues there.
Gallery
-
The Beta 1.7 “change-list” (the Adventure Update was supposed to be Beta 1.7).
Contents
showExperience Point Source Chart
Source₠
Experience
Cave Spider, Creeper, Enderman, Ghast, Silverfish, Skeleton, Spider
Wither Skeleton, Zombie, Zombie Pigman
Spider Jockey
Blaze
Sand, Coal, Netherrack, Cobblestone
1–3
History
Experience Points were added to Minecraft during the first part of the Adventure Update. They were originally revealed by Jeb during an interview. Experience can be obtained by gathering Experience Orbs from defeated mobs and players.
Benefits
During Beta 1.8, there was no measurable benefit to gaining Experience Orbs and levels. They were probably just for display.
As of Beta 1.9 Pre-release 3, experience levels are indicated by a number above the experience bar which will increase by one every time the bar is filled.
The ability to spend experience levels for the enchantment of items with an Enchantment Table was added in the Beta 1.9 Pre-release 3, but it had no actual effect until Beta 1.9 Pre-release 4.
Sounds
- This sound is played for every five levels attained.
- This sound is played when an experience orb is collected.