minecraft.wiki-mirror/wiki_backup/egg.txt
2024-12-20 09:11:15 -05:00

260 lines
10 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{About|chicken eggs|other uses}}
{{Infobox item entity
| image = Egg.png
| invimage = Egg
| renewable = Yes
| stackable = Yes (16)
| size = Height: 0.25 blocks<br>Width: 0.25 blocks
}}
An '''egg''' is an [[item]] that can be used to craft [[food]] items, or thrown for a chance to spawn [[chick|baby chicken]]s on impact.
== Obtaining ==
=== Mob loot ===
{{see also|Tutorials/Egg farming}}
Every adult [[chicken]] lays an egg item every 510 minutes, except for those that are or were a part of [[chicken jockey]]s. The theoretical average would be expected at 1 egg every 7.5 minutes (9000 game ticks).
A [[fox]] has a 3% chance of spawning with an egg in its mouth, which it drops upon death. Alternatively, a player dropping a food item causes the fox to drop the egg.
=== Generated loot ===
{{LootChestItem|egg}}
== Usage ==
=== Crafting ingredient ===
{{crafting usage}}
=== Combat ===
Players are able to throw eggs and deal knockback to [[mob]]s (but not other players{{only|JE|short=1}}<ref>{{bug|MC-3179|||WAI}}</ref>{{until|JE Combat Tests}}), but no damage is dealt, similar to a [[snowball]]. Likewise, throwing eggs at [[neutral mobs]] provokes them. Eggs can also be fired from [[dispenser]]s and are affected by gravity. Eggs thrown through fire or lava {{in|BE}} catch fire, and set fire to entities they hit.
=== Spawning chickens ===
When thrown by a dispenser or by pressing the {{control|use}} button, an egg has a {{fraction|1|8}} (12.5%) chance of spawning a [[chick]]. If this occurs, there is a {{fraction|1|32}} (3.125%) chance of spawning three additional chicks (on average, 1 out of every 256 eggs spawns 4 chicks). In other words, whenever an egg is thrown, there is a {{fraction|31|256}} chance of spawning 1 chick and a {{fraction|1|256}} chance of spawning four chicks.
The expected value of the number of chicks an egg produces is {{fraction|35|256}} or 13.7%. This means that on average, a chick is spawned every 7.3 eggs, a stack of 16 eggs spawns 2.188 chicks, and a full inventory including the hotbar and off-hand (37 &times; 16 = 592 eggs) is expected to spawn approximately 81 chicks.
For the purposes of establishing a new chicken farm with eggs alone, the probability ''P'' for at least 2 chicks to spawn after throwing ''n'' eggs can be calculated using the following formula:
<math>P = 1 - \left(\frac{7}{8}\right)^n - n \times \frac{1}{8} \times \frac{31}{32} \times \left(\frac{7}{8}\right)^{n-1}</math>
When throwing 16 eggs, there is a 62% chance of spawning at least two chicks. When throwing 32 eggs, the probability rises to 92%
An average of 450 seconds elapses for a chicken to lay another egg. Accounting for all probabilities, the average chicken produces 1.09 chickens per hour when all the eggs it lays are thrown.
== Sounds ==
{{Edition|Java}}:<br>
Thrown eggs use the Friendly Creatures sound category for [[Sound#Entity-dependent categories|entity-dependent sound events]].
{{SoundTable
| type = java
| {{SoundLine
| sound =Bow shoot.ogg
|subtitle=Egg flies
|source=player
|description=When an egg is thrown
|id=entity.egg.throw
|translationkey=subtitles.entity.egg.throw
|volume=0.5
|pitch={{frac|1|3}}-0.5
|distance=16}}
| {{SoundLine
|subtitle=Dispensed item
|source=block
|description=When a dispenser shoots an egg
|id=block.dispenser.launch
|translationkey=subtitles.block.dispenser.dispense
|volume=1.0
|pitch=1.2
|distance=16}}
| {{SoundLine
|sound=Chicken plop.ogg
|subtitle=Chicken plops
|source=Friendly Creatures
|description=When an egg is laid by a chicken
|id=entity.chicken.egg
|translationkey=subtitles.entity.chicken.egg
|volume=1.0
|pitch=0.8-1.2
| distance = 16
}}
}}
{{Edition|Bedrock}}:
{{SoundTable
| type = bedrock
| {{SoundLine
| sound =Bow shoot.ogg
|source=player
|description=When an egg is thrown
|id=random.bow
|volume=0.5
|pitch=0.33-0.5}}
| {{SoundLine
|source=player
|description=When a dispenser shoots an egg
|id=random.bow
|volume=1.0
|pitch=0.83-1.25}}
| {{SoundLine
|sound=Chicken plop.ogg
|source=neutral
|description=When an egg is laid by a chicken
|id=mob.chicken.plop
|volume=1.0
| pitch = 0.8-1.2
}}
}}
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Egg
|spritetype=item
|nameid=egg
|form=item
|foot=1}}
{{ID table
|edition=java
|showentitytags=y
|generatetranslationkeys=y
|displayname=Thrown Egg
|spritetype=entity
|spritename=Egg
|nameid=egg
|entitytags=impact_projectiles
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Egg
|spritetype=item
|nameid=egg
|id=390
|form=item
|foot=1}}
{{ID table
|edition=bedrock
|shownumericids=y
|generatetranslationkeys=y
|displayname=Egg
|spritetype=entity
|nameid=egg
|id=82
|foot=1}}
=== Entity data ===
Thrown eggs have entity data that define various properties of the entity.
{{el|java}}:
{{main|Entity format}}
{{/ED}}
{{el|bedrock}}:
: See [[Bedrock Edition level format/Entity format]].
== Achievements ==
{{load achievements|The Lie}}
== Advancements ==
{{Load advancements|Bullseye}}
== Video ==
<div style="text-align:center">{{yt|8rDbF8UYuTc}}</div>
== History ==
{{HistoryTable
|{{HistoryLine|java alpha}}
|{{HistoryLine||v1.0.14|[[File:Egg JE1 BE1.png|32px]] Added eggs.
|Eggs currently have no purpose.}}
|{{HistoryLine|java beta}}
|{{HistoryLine||1.0|Eggs are now throwable at the request of a fan as the result of a [[wikipedia:Twitter|Twitter]] conversation about a man eating his [[wikipedia:USB|USB]], if [[Notch]] added egg throwing.<ref>{{tweet|notch|11773078791000065}}</ref>}}
|{{HistoryLine||1.2|Eggs are now used to craft [[cake]]s.
|Eggs can now be thrown by [[dispenser]]s.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 2|[[Breeding]] has been added, making eggs easier to obtain.}}
|{{HistoryLine|||dev=RC1|Thrown eggs now hatch chicks instead of adult chickens.
|The egg's throw [[sound]] has been changed.}}
|{{HistoryLine||1.4.2|dev=12w37a|Eggs are now used to craft [[pumpkin pie]]s.}}
|{{HistoryLine||1.9|dev=15w32a|Eggs no longer [[damage]] the [[ender dragon]].}}
|{{HistoryLine|||dev=15w36b|Eggs now produce particles when thrown at an entity.}}
|{{HistoryLine|||dev=15w49a|Eggs, like all throwable projectiles, now take the thrower's motion into account when fired.}}
|{{HistoryLine||1.11|dev=16w32a|The [[entity]] ID has now been changed from <code>ThrownEgg</code> to <code>egg</code>.}}
|{{HistoryLine||1.13|dev=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 344.}}
|{{HistoryLine||1.14|dev=18w43a|[[File:Egg JE2 BE2.png|32px]] The texture of eggs has been changed.}}
|{{HistoryLine|||dev=18w50a|Eggs can now be found in [[chest]]s in [[village]] fletcher houses.
|Therefore, chickens are no longer the only source of eggs.
|Thrown egg now have an optional <code>Item</code> tag that can specify a different item stack to render.}}
|{{HistoryLine|||dev=19w07a|Added [[fox]]es, which sometimes spawn with eggs in their mouths.}}
|{{HistoryLine||1.16|dev=20w09a|Thrown eggs can now break [[chorus flower]]s.}}
|{{HistoryLine||1.16.2|dev=Pre-Release 1|Eggs are now affected by [[bubble column]]s.}}
|{{HistoryLine||1.21.2|dev=24w34a|Thrown eggs no longer go through the [[world border]] if hit.}}
|{{HistoryLine|java upcoming}}
|{{HistoryLine||Combat Tests|dev=Combat Test 5|Eggs now do [[Knockback (mechanic)|knockback]] to players.}}
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.4.0|[[File:Egg JE1 BE1.png|32px]] Added eggs. They are currently unobtainable.
|Eggs are throwable, but are unable to spawn chickens.}}
|{{HistoryLine||v0.7.0|[[Chicken]]s now occasionally lay eggs.
|Eggs can be used to craft a [[cake]].
|Thrown eggs now have a chance of spawning adult chickens.}}
|{{HistoryLine||v0.8.0|dev=build 1|Eggs are now used to craft [[pumpkin pie]]s.}}
|{{HistoryLine|||dev=build 3|Thrown eggs now have a chance of spawning chicks instead of adult chickens.}}
|{{HistoryLine|pocket}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|The [[entity]] ID has now been changed from <code>thrownegg</code> to <code>egg</code>.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.2.0|Eggs now deal knockback to [[player]]s.}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Egg.png|32px]] The texture of eggs has been changed.}}
|{{HistoryLine||1.11.0|dev=beta 1.11.0.1|Eggs can now be found in [[village]] fletcher [[chest]]s.}}
|{{HistoryLine|||dev=beta 1.11.0.4|Eggs can now be [[trading|sold]] to farmer [[villager]]s.}}
|{{HistoryLine||1.13.0|dev=beta 1.13.0.1|Added [[fox]]es, which can [[drop]] eggs.}}
|{{HistoryLine||1.16.0|dev=beta 1.16.0.57|[[Trading]] has now been changed, eggs can no longer be sold to farmer [[villager]]s.}}
|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Egg JE1 BE1.png|32px]] Added eggs.}}
|{{HistoryLine||xbox=TU7|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Thrown eggs now hatch chicks instead of adult chickens.}}
|{{HistoryLine||xbox=TU14|xbone=CU1|ps3=1.04|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Eggs are now used to craft [[pumpkin pie]]s.}}
|{{HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|Eggs, like all throwable projectiles, now take the thrower's motion into account when fired.}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Egg JE2 BE2.png|32px]] The texture of eggs has been changed.}}
|{{HistoryLine|New 3DS}}
|{{HistoryLine||0.1.0|[[File:Egg JE1 BE1.png|32px]] Added eggs.}}
}}
== Issues ==
{{issue list}}
== Trivia ==
* Eggs break mid-fall if hit by another projectile; the chance of spawning a chick is not affected.
* Throwing an egg at a [[nether portal]] breaks the egg when it hits the portal.
* A thrown egg faces toward the [[player]] in first-person view, while it appears rotated horizontally in third-person view. This is the case for all throwable [[item]]s ([[ender pearl]]s, eggs, [[snowball]]s, and all throwable [[potion]]s).
== References ==
{{Reflist}}
== Navigation ==
{{Navbox items|ingredients}}
{{Navbox entities|Other}}
[[Category:Combat]]
[[Category:Projectiles]]
[[cs:Vajíčko]]
[[de:Ei]]
[[es:Huevo]]
[[fr:Oeuf]]
[[hu:Tojás]]
[[it:Uovo]]
[[ja:卵]]
[[ko:달걀]]
[[lzh:雞卵]]
[[nl:Ei]]
[[pl:Jajko]]
[[pt:Ovo]]
[[ru:Яйцо]]
[[th:ไข่ไก่]]
[[uk:Яйце]]
[[zh:鸡蛋]]