Minecraft Wiki
Advertisement

Commands/infobox H Runs a function or all functions in a tag from a datapack.‌[Java Edition only]
Runs a function from a behavior pack.‌[Bedrock Edition only]

Syntax
function <function>
Arguments
function
  • Java Edition
May be of the format namespace:path/to/function/file, or #namespace:path/to/function/tag.
The format without the # prefix, namespace:path/to/function/file, runs a single function located at [data_pack]/data/namespace/functions/path/to/function/file.mcfunction.
The format with the # prefix, #namespace:path/to/function/tag, runs all functions included in the function tag located at [data_pack]/data/namespace/tags/functions/path/to/function/tag.json.
  • Bedrock Edition
May be of the format path/to/function/file
Runs the function located at [behavior_pack]/functions/path/to/function/file.mcfunction
Result
Fails if the argument is not specified correctly.
If successful, runs a function through the command source which ran the /function command.
  • Java Edition
If /function is ran inside of another function, it always fails but still executes its command entries;[1]
Otherwise, returns the number of commands ran (not the number of commands that succeed) plus the number of embedded functions called by this function.[2]
Examples
  • Java Edition
To run a function located at data/custom/functions/example/test.mcfunction in a loaded data pack: /function custom:example/test
To run all functions in a function tag located at data/custom/tags/functions/example/test.json: /function #custom:example/test
To run a function if there is a sheep within a radius of 2 blocks: /execute if entity @e[type=sheep,distance=..2] run function custom:example/test
To run a function unless the executor is a player: /execute unless entity @s[type=player] run function custom:example/test

History

Java Edition
1.12
{{Extension DPL}}<ul><li>[[Magma Cream|Magma Cream]]<br/>{{Item
| title = Magma Cream
| image = Magma Cream.png
| renewable = Yes
| stackable = Yes (64)
}}

'''Magma cream''' is an [[item]] used in [[brewing]] to create [[potion]]s of [[Fire Resistance]], and to manually craft [[magma block]]s.

== Obtaining ==

=== Mob loot ===

==== Magma cubes ====

All but tiny-sized [[magma cube]]s drop 0–1 magma cream. The maximum amount of magma cream is increased by 1 per level of [[Looting]], for a maximum of 4 with Looting III.

=== Crafting ===

{{Crafting
|Blaze Powder
|Slimeball
|Output= Magma Cream
|type= Brewing
}}

=== Chest Loot ===
{{LootChestItem|magma-cream}}

== Usage ==

=== Brewing ingredient ===

{{brewing
  |showname=1
  |head=1
  |Magma Cream|Mundane Potion|base=Water Bottle
}}
{{brewing
  |foot=1
  |Magma Cream
  |Potion of Fire Resistance
}}

=== Crafting ingredient ===

{{crafting usage}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Magma Cream
|spritetype=item
|nameid=magma_cream
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Magma Cream
|spritetype=item
|nameid=magma_cream
|id=430
|form=item
|foot=1}}

== History ==

{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|[[File:Magma Cream JE1.png|32px]] Added magma cream.}}
{{History|||snap=Beta 1.9 Prerelease 3|Magma cream can now be [[brewing|brewed]] in a [[water bottle]] to create a mundane [[potion]], or in an awkward potion to create a potion of [[Fire Resistance]].}}
{{History||1.1|snap=release|[[Magma cube]]s now [[drops|drop]] magma cream.}}
{{History||1.3.1|snap=1.3|[[File:Magma Cream JE2 BE1.png|32px]] The texture of magma cream has been changed.}}
{{History||1.10|snap=16w20a|Magma cream can now be [[crafting|crafted]] into [[magma block]]s.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 378.}}
{{History||1.14|snap=18w43a|[[File:Magma Cream JE3 BE2.png|32px]] The texture of magma cream has been changed.}}
{{History||1.16|snap=20w07a|Magma cream has a {{frac|2|109}} (~1.83%) chance of being offered by [[piglin]]s when [[bartering]], in a stack size of 1–3.}}
{{History|||snap=20w09a|Magma cream now has a {{frac|10|226}} (~4.42%) chance of being offered by piglins when bartering, in a stack size of 1–5.}}
{{History|||snap=20w16a|Magma cream now generates in [[bastion remnant]]s chests.}}
{{History||1.16.2|snap=20w28a|Magma cream can no longer be obtained from bartering with piglins.}}
{{History|||snap=20w30a|The average yield of magma cream from bastion remnant chests has been slightly increased.}}

{{History|pocket edition alpha}}
{{History||v0.11.0|snap=build 1|[[File:Magma Cream JE2 BE1.png|32px]] Added magma cream.
|Magma cream is currently unobtainable.}}
{{History||v0.11.0|snap=build 8|[[Magma cube]]s now [[drops|drop]] magma cream.}}
{{History||v0.12.1|snap=build 1|Added magma cream to the [[Creative]] mode [[inventory]].
|Magma cream can now be [[crafting|crafted]].}}
{{History|pocket}}
{{History||1.1.3|snap=alpha 1.1.3.0|Magma cream can now be crafted into [[magma block]]s.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Magma Cream JE3 BE2.png|32px]] The texture of magma cream has been changed.}}
{{History||1.16.0|snap=beta 1.16.0.57|Magma cream can be obtained from bartering with piglins.
|Magma cream can now be found in [[bastion remnants]] chests.}}
{{History||1.16.100|snap=beta 1.16.100.54|Magma cream can no longer be obtained from [[barter]]ing with [[piglin]]s.}}

{{History|console}} 
{{History||xbox=TU7|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Magma Cream JE2 BE1.png|32px]] Added magma cream.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Magma Cream JE3 BE2.png|32px]] The texture of magma cream has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Magma Cream JE2 BE1.png|32px]] Added magma cream.}}
{{history|foot}}

== Issues ==

{{issue list}}

{{items}}

[[Category:Renewable resources]]

[[cs:Lávová pěna]]
[[de:Magmacreme]]
[[es:Crema de magma]]
[[fr:Crème de magma]]
[[hu:Magmakrém]]
[[ja:マグマクリーム]]
[[ko:마그마 크림]]
[[lzh:火漿膏]]
[[nl:Magmacrème]]
[[pl:Magmowy krem]]
[[pt:Creme de magma]]
[[ru:Лавовый крем]]
[[th:ครีมแมกม่า]]
[[uk:Магмовий крем]]
[[zh:岩浆膏]]</li><li>[[Portfolio|Portfolio]]<br/>{{exclusive|education}}
{{Item
| image = Portfolio.png
| renewable = No
| stackable = Yes (64)
}}
A '''portfolio''' is an [[item]] that can save [[photo]]s taken with a [[camera]].<ref>https://education.minecraft.net/support/knowledge-base/using-cameras-portfolios/</ref>

== Obtaining ==
Portfolios can be obtained in the creative inventory or through the {{cmd|give}} command.

== Usage ==
[[File:Portfolio Interface.png|thumb|upright=1.5|The portfolio interface]]
Once a photo has been taken using the [[camera]], it appears in the portfolio. Once equipped, right-clicking brings up a two-page book of photos the [[player]] has taken, in chronological order. Captions can be added below each picture. Pressing the "Export Portfolio" button creates a .zip file with all photos as JPGs in a specified folder. The portfolio is also used to load custom items in [[Minecraft China]].

== Data values ==
=== ID ===
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Portfolio
|spritetype=item
|nameid=portfolio
|id=456
|form=item
|foot=1}}

== History ==
{{History|pocket alpha}}
{{History||v0.16.0|snap=build 1|[[File:Portfolio BE1.png|32px]] Added portfolios.}}
{{History|||snap=build 2|Portfolios have been removed.}}
{{History|bedrock}}
{{History||1.16.100|Data-driven portfolios, allowing for add-ons to create custom portfolios. Normal Portfolios are still unobtainable.}}
{{History|education}}
{{History||1.0|[[File:Portfolio BE1.png|32px]] Added portfolios.}}
{{History|foot}}

== References ==
{{Reflist}}

{{Items}}
{{Education Edition}}

[[Category:Non-renewable resources]]
[[Category:Education Edition items]]
[[Category:Storage]]

[[de:Fotoalbum]]
[[es:Portafolio]]
[[ja:ポートフォリオ]]
[[ko:포트폴리오]]
[[pl:Portfolio]]
[[pt:Portfólio]]
[[ru:Портфолио]]
[[uk:Портфоліо]]
[[zh:公文包]]</li></ul>
pre1Added /function.
1.13
{{Extension DPL}}<ul><li>[[Beetroot Seeds|Beetroot Seeds]]<br/>{{Block
| group = Age 0
| 1-1 = Beetroots Age 0.png
| 1-2 = Beetroots Age 0 BE.png
| group2 = Age 1
| 2-1 = Beetroots Age 1.png
| 2-2 = Beetroots Age 1 BE.png
| group3 = Age 2
| 3-1 = Beetroots Age 2.png
| 3-2 = Beetroots Age 2 BE.png
| group4 = Age 3
| 4-1 = Beetroots Age 3.png
| 4-2 = Beetroots Age 3 BE.png
|image=Beetroot Seeds JE2 BE2.png
|transparent=Yes
|light=No
|tool=Any
|renewable=Yes
|stackable=Yes (64)
|flammable=No
|lavasusceptible=No
}}
'''Beetroot seeds''' are items that can be used to plant beetroot crops.

'''Beetroot crops''' are planted in [[farmland]] and used to grow [[beetroot]] and beetroot seeds.

== Obtaining ==

=== Natural generation ===
[[Village]] farms have a chance of growing beetroot. The exact chance depends on the village:

{| class="wikitable"
! Village style !! Chance
|-
| {{EnvSprite|desert-village}} Desert || 20%
|-
| {{EnvSprite|plains-village}} Plains || 5%
|}

=== Breaking ===
Harvesting fully-grown beetroot yields from 1 to 4 seeds per crop harvested ({{frac|2|5|7}} seeds per crop harvested on average). The [[Fortune]] enchantment can be used to improve the drop rate.

=== Chest loot ===
{{LootChestItem|beetroot-seeds}}

=== Trading ===

Beetroot seeds are sold by [[wandering trader]]s for one [[emerald]].

== Usage ==

=== Farming ===
Beetroot seeds can be placed on [[farmland]]. After being placed, it goes through four stages of growth. When fully grown it can be broken to produce beetroot seeds and beetroots.

<!-- Java Edition only? -->While beetroot crops have only four growth stages compared to eight for [[wheat]], [[carrot]]s, and [[potato]]es, each growth tick has a {{frac|1|3}} chance of not advancing the growth stage and therefore beetroot grows slightly faster than other crops.

Crops grow faster if the farmland they are planted in is [[Farmland#Hydration|hydrated]]. One application of [[bonemeal]] has a 75% chance of advancing growth by one stage. This is less effective than for other crops: an average of {{frac|5|1|3}} are needed to fully grow beetroot compared to {{frac|2|2|7}} for other crops.

=== Breeding ===
Like other [[seeds]], beetroot seeds can be used to [[breed]] [[chicken]]s, lead chickens around, and make baby chickens grow up faster by 10% of the remaining time.

=== Taming ===

Like other seeds, beetroot seeds can be used to tame [[parrot]]s.

=== Composting ===
Placing beetroot seeds into a [[composter]] has a 30% chance of raising the compost level by 1.

=== Trading ===
[[Wandering trader]]s may offer to sell beetroot seeds for one emerald.

== Sounds ==
{{Edition|Java}}:
{{Sound table/Block/Crop/JE}}
{{Edition|Bedrock}}:
{{Sound table/Block/Wood/BE}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Beetroots
|spritetype=block
|nameid=beetroots
|blocktags=bee_growables, crops
|form=block}}
{{ID table
|displayname=Beetroot Seeds
|spritetype=item
|nameid=beetroot_seeds
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Beetroots
|spritetype=block
|nameid=beetroot
|id=244
|form=block
|itemform=item.beetroot}}
{{ID table
|displayname=Beetroot Seeds
|spritetype=item
|nameid=beetroot_seeds
|id=295
|form=item
|foot=1}}

=== Block states ===
{{see also|Block states}}
{{/BS}}

== Advancements ==
{{load advancements|A Seedy Place}}

== History ==
{{History|java}}
{{History||1.9|snap=15w31a|[[File:Beetroot Seeds JE1 BE1.png|32px]] Added beetroot seeds.
|[[File:Beetroots Age 0 JE1.png|32px]] [[File:Beetroots Age 1 JE1.png|32px]] [[File:Beetroots Age 2 JE1.png|32px]] [[File:Beetroots Age 3 JE1.png|32px]] Added beetroot crops.
|Beetroot seeds can be found in [[end city]] [[chest]]s.
|Beetroot plants naturally generate in [[village]] farms.
|[[Villager]]s are able to harvest beetroot crops, but they are not yet able to pick up the seeds and plant them.}}
{{History|||snap=15w38a|The [[drop]] chances have been greatly improved from the average {{frac|4|5}} per beetroot crop harvested to 2.
|Villagers are now able to pick up and plant beetroot seeds.}}
{{History|||snap=15w44a|Beetroots now generate in [[dungeon]] and [[mineshaft]] chests.}}
{{History||1.11|snap=16w39a|Beetroot seeds are now found in the new [[woodland mansion]] chests.}}
{{History||1.12|snap=17w18b|Placing a beetroot seeds in farmland now gives the player the "A Seedy Place" [[advancement]].{{verify}}}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this item's numeral ID was 458 and block's numeral ID was 244.}}
{{History||1.14|snap=18w43a|[[File:Beetroot Seeds JE2 BE2.png|32px]] The texture of beetroot seeds has been changed.
|[[File:Beetroots Age 0 JE2.png|32px]] [[File:Beetroots Age 1 JE2.png|32px]] [[File:Beetroots Age 2 JE2.png|32px]] [[File:Beetroots Age 3 JE2.png|32px]] The textures of beetroot crops have been changed.}}
{{History|||snap=18w49a|Beetroot seeds can now be found in chests in [[snowy tundra]] village houses.}}
{{History|||snap=19w03a|Placing beetroot seeds into the new [[composter]] has a 10% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Beetroot seeds now have a 30% chance of increasing the compost level in a composter.
|Added [[Wandering Trader|wandering trader]]s, which sell beetroot seeds.}}
{{History||1.15|snap=19w34a|[[Bee]]s can now pollinate beetroot crops.}}
{{History||1.17|snap=21w13a|[[File:Beetroots Age 0 JE3.png|32px]] [[File:Beetroots Age 1 JE3.png|32px]] [[File:Beetroots Age 2 JE3.png|32px]] [[File:Beetroots Age 3 JE3.png|32px]] The "crop" template model has changed such that pixels appear in the same physical positions on opposite sides of texture planes, changing the beetroot crop's appearance in the process.<ref>{{bug|MC-199242|||Fixed}}</ref>}}
{{History||1.18|snap=Pre-release 5|[[File:Beetroot Seeds JE3.png|32px]] The texture of beetroot seeds has been changed.}}
{{History||1.20|snap=23w12a|Beetroot seeds can now be found in [[suspicious gravel]] and [[suspicious sand]] in [[trail ruins]].}}
{{History|||snap=23w16a|Beetroot seeds no longer generates in [[suspicious sand]] in [[trail ruins]].|Due to the split of the archaeological loot tables for the suspicious gravel within the [[trail ruins]]; beetroot seeds now are in the common loot.}}

{{History|pocket alpha}}
{{History||November 14, 2013|link=https://twitter.com/jbernhardsson/status/400902957782147072|[[Johan Bernhardsson]] previewed an image of beetroot seeds.}}
{{History||v0.8.0|snap=build 2|[[File:Beetroot Seeds JE1 BE1.png|32px]] Added Beetroots seeds.
|[[File:Beetroots Age 0 JE1 BE1.png|32px]] [[File:Beetroots Age 1 JE1 BE1.png|32px]] [[File:Beetroots Age 2 JE1 BE1.png|32px]] [[File:Beetroots Age 3 JE1 BE1.png|32px]]{{verify|Correct models?}} Added Beetroots crops.}}
{{History|||snap=build 3|Beetroots seeds now have a chance of dropping when tilling [[grass block]]s.}}
{{History||v0.11.0|snap=build 1|"Beetroots seeds" have been renamed to "Beetroot Seeds" and the capitalization has now also been fixed.<ref>{{bug|MCPE-7953|||Fixed}}</ref>}}
{{History||v0.12.1|snap=build 1|Beetroot seeds no longer have a chance of dropping when tilling [[grass block]]s.}}
{{History||v0.14.0|snap=build 1|Beetroot seeds can now be found in [[minecart with chest]]s inside of [[mineshaft]]s.}}
{{History||v0.16.2|Beetroot seeds can now be found in [[chest]]s inside the large house in [[ice plains]] and [[cold taiga]] [[village]]s.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Beetroot seeds can now be found in the [[chest]]s of [[dungeon]]s and [[end city|end cities]].}}
{{History||1.1.0|snap=alpha 1.1.0.0|Beetroot seeds can now be found in [[woodland mansion]] chests.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Beetroot seeds can now be found inside [[bonus chest]]s.
|Beetroot seeds can now be used to tame [[parrot]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Beetroot Seeds JE2 BE2.png|32px]] The texture of beetroot seeds has been changed.
|[[File:Beetroots Age 0 JE2.png|32px]] [[File:Beetroots Age 1 JE2.png|32px]] [[File:Beetroots Age 2 JE2.png|32px]] [[File:Beetroots Age 3 JE2.png|32px]]{{verify|Correct models?}} The textures of beetroot crops have been changed.
|Beetroot seeds are now [[trading|sold]] by the new [[wandering trader]]s.}}
{{History||1.11.0|snap=beta 1.11.0.1|Beetroot seeds can now be used to fill the [[composter]].
|Beetroot seeds can now be found in [[snowy tundra]] [[village]] house [[chest]]s.}}
{{History||1.14.0|snap=beta 1.14.0.1|[[Bee]]s can now pollinate beetroot crops.}}
{{History||?|[[File:Beetroots Age 0 BE.png|32px]] [[File:Beetroots Age 1 BE.png|32px]] [[File:Beetroots Age 2 BE.png|32px]] [[File:Beetroots Age 3 BE.png|32px]] Potato crop planes use a mapping that results in very unnatural mirroring when viewed from certain angles, such as northwest.<ref>{{bug|MCPE-146936}}</ref>}}

{{History|console}}
{{History||xbox=TU43|xbone=CU33|ps=1.36|wiiu=Patch 13|[[File:Beetroot Seeds JE1 BE1.png|32px]] Added beetroot seeds.
|[[File:Beetroots Age 0 JE1 BE1.png|32px]] [[File:Beetroots Age 1 JE1 BE1.png|32px]] [[File:Beetroots Age 2 JE1 BE1.png|32px]] [[File:Beetroots Age 3 JE1 BE1.png|32px]]{{verify|Correct models?}} Added beetroot crops.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Beetroot Seeds JE2 BE2.png|32px]] The texture of beetroot seeds has been changed.
|[[File:Beetroots Age 0 JE2.png|32px]] [[File:Beetroots Age 1 JE2.png|32px]] [[File:Beetroots Age 2 JE2.png|32px]] [[File:Beetroots Age 3 JE2.png|32px]]{{verify|Correct models?}} The textures of beetroot crops have been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Beetroot Seeds JE1 BE1.png|32px]] Added beetroot seeds.
|[[File:Beetroots Age 0 JE1 BE1.png|32px]] [[File:Beetroots Age 1 JE1 BE1.png|32px]] [[File:Beetroots Age 2 JE1 BE1.png|32px]] [[File:Beetroots Age 3 JE1 BE1.png|32px]]{{verify|Correct models?}} Added beetroot crops.}}
{{History|foot}}

== Issues ==

{{issue list}}

== Gallery ==

<gallery>
Beetrootstwitpic.png|The first image released of beetroot seeds.
Village Wheat Beetroot Farm.png|Beetroots generated in a [[village]].
File:Beetroot farm.png|A beetroot garden.
</gallery>

== References ==
<references />

{{Blocks|vegetation}}
{{Items}}

[[Category:Plants]]
[[Category:Food]]
[[Category:Generated structure blocks]]
[[Category:Non-solid blocks]]

[[cs:Semínka červené řepy]]
[[es:Semillas de remolacha]]
[[fr:Graines de betterave]]
[[it:Semi di barbabietola]]
[[ja:ビートルートの種]]
[[ko:비트 씨앗]]
[[nl:Bietenzaden]]
[[pl:Nasiona buraka]]
[[pt:Sementes de beterraba]]
[[ru:Семена свёклы]]
[[th:เมล็ดบีตรูท]]
[[zh:甜菜种子]]</li><li>[[Raw Copper|Raw Copper]]<br/>{{Item
| image = Raw Copper.png
| renewable = No
| stackable = Yes (64)
}}
'''Raw copper''' is a raw metal resource obtained from mining [[copper ore]].

== Obtaining ==

=== Mining ===
Copper ore and deepslate copper ore mined with a [[stone pickaxe]] or better drops 2–5 units of raw copper. If the pickaxe is enchanted with [[Fortune]], it can drop extra raw copper, allowing for a maximum of 20 units per ore block with Fortune III, or an average of 7.7 units of raw copper per ore block. If the ore is mined using a pickaxe enchanted with [[Silk Touch]], it drops the ore block instead.

=== Crafting ===
{{Crafting
|showname=1
|Block of Raw Copper
|Output=Raw Copper,9
|type=Material
|foot=1
}}

== Usage ==
The primary usage of raw copper is [[smelting]] it into [[copper ingot]]s.

=== Crafting ===
{{crafting usage}}

=== Smelting ingredient ===
{{Smelting
|showname=2
|Raw Copper
|Copper Ingot
|0.7
}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Raw Copper
|spritetype=item
|nameid=raw_copper
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Raw Copper
|spritetype=item
|nameid=raw_copper
|form=item
|id=507
|foot=1}}

== History ==
{{History|java}}
{{History||1.17|snap=21w14a|[[File:Raw Copper JE1.png|32px]] Added raw copper.}}
{{History|||snap=April 13, 2021|slink={{Tweet|JasperBoerstra|1381991999952277513}}|[[File:Raw Copper JE2.png|32px]] [[JAPPA]] shows a new raw copper texture.}}
{{History|||snap=21w15a|[[File:Raw Copper JE2.png|32px]] The texture of raw copper has been changed.
|Raw copper can now be used to craft [[block of raw copper]].}}
{{History|||snap=April 16, 2021|slink={{Tweet|JasperBoerstra|1383047666037325829}}|[[File:Raw Copper (pre-release).png|32px]] [[JAPPA]] shows a new raw copper texture again.}}
{{History|||snap=21w16a|[[File:Raw Copper JE3.png|32px]] The texture of raw copper has been changed.}}
{{History|||snap=21w17a|[[Copper ore]] now drops 2-3 raw copper when mined instead of a single unit.}}
{{History||1.18|snap=21w40a|[[Copper ore]] now drops 2-5 raw copper when mined.}}

{{History|bedrock}}
{{History||1.17.0|snap=beta 1.17.0.50|[[File:Raw Copper JE2.png|32px]] Added raw copper.}}
{{History|||snap=beta 1.17.0.52|Raw copper are now available without enabling [[experimental gameplay]].}}
{{History|||snap=beta 1.17.0.54|[[File:Raw Copper JE3.png|32px]] The texture of raw copper has been changed.}}
{{History|foot}}

== Issues ==
{{Issue list}}

==Gallery==
<gallery>
JE 1.17 Dev Raw Metals.jpg|Jappa shows raw ore textures.
Jappa Raw Ores 1.jpg|Jappa shows raw ore textures.
Jappa Raw Ores 2.png|Jappa shows raw ore textures.
Jappa Raw Ores 3.jpg|Jappa shows raw ore textures.
Jappa Raw Ores 4.jpg|Jappa shows raw ore textures.
Jappa Raw Ores 5.jpg|Jappa shows raw ore textures.
</gallery>

{{Items}}

[[Category:Non-renewable resources]]

[[de:Rohkupfer]]
[[es:Cobre en bruto]]
[[fr:Cuivre brut]]
[[it:Rame grezzo]]
[[ja:銅の原石]]
[[pl:Surowa miedź]]
[[pt:Cobre bruto]]
[[ru:Необработанная медь]]
[[tr:Ham Bakır]]
[[uk:Необроблена мідь]]
[[zh:粗铜]]</li></ul>
17w49b/function now accept function tags as the argument.
Removed [if/unless] arguments in favor of /execute [if/unless].
Bedrock Edition
1.8.0
{{Extension DPL}}<ul><li>[[Cake|Cake]]<br/>{{Distinguish|Pumpkin Pie}}
{{Block
| title = Cake
| image = <gallery>
Cake.png|0 bites
Cake (1 bite).png|1 bite
Cake (2 bites).png|2 bites
Cake (3 bites).png|3 bites
Cake (4 bites).png|4 bites
Cake (5 bites).png|5 bites
Cake (6 bites).png|6 bites
</gallery>
|image2 = <gallery>
Cake with Candle.png|Unlit
Candle Cake (lit).png|Lit
</gallery>
| extratext = [[#Gallery|View all renders]]
| transparent = Yes
| light = '''Candle Cake''': Yes (3) when lit<br>'''Cake''': No
| tool = any
| renewable = Yes
| stackable = Yes (64){{only|bedrock|short=1}}<br>No{{only|java|short=1}}
| flammable = No
| lavasusceptible = No
}}

'''Cake''' is a [[food]] and a block that can be eaten by the player.

A '''cake with candle''' is a light-producing variation created when a [[candle]] is used on an uneaten cake.

== Obtaining ==

=== Breaking ===

Once the cake is placed, it cannot be recollected even with the use of [[Silk Touch]]. Candle cakes always drop their respective [[candle]] when broken.
{{breaking row|horizontal=1|Cake|drop=0}}

=== Chest loot ===
{{LootChestItem|cake}}

=== Crafting ===

{{Crafting
|A1=Milk Bucket
|B1=Milk Bucket
|C1=Milk Bucket
|A2=Sugar
|B2=Egg
|C2=Sugar
|A3=Wheat
|B3=Wheat
|C3=Wheat
|Output=Cake
|type=Foodstuff
|showdescription=1
|description= Empty [[bucket]]s remain in the crafting grid after crafting the cake.
}}

=== Trading ===

Expert-level farmer [[villager]]s can [[trading|sell]] cake for a single [[emerald]] each. The chance is {{frac|2|7}} {{in|je}}.

== Usage ==

{{see also|Tutorials/Hunger management}}

Unlike most [[food]], the cake cannot be eaten as an [[item]] in the hotbar. Before being eaten, it must first be placed on top of a solid [[block]]. Placing the cake on a slab also works, as the slab acts like a solid block. The cake instead floats half a block on top of the slab.

Each cake has seven "slices"; each use consumes one slice progressing inward from the west. A single slice restores {{hunger|2}} hunger and 0.4 hunger [[Hunger#Mechanics|saturation]]. Eating all seven slices of a cake restores {{hunger|14}} hunger and 2.8 hunger saturation.

Since eating a cake comes with no animation, the cake can be eaten at a rate of one slice per [[tick]]. Multiple [[player]]s can eat from the same cake at the same time. {{IN|java}}, eating cake makes no [[sound]], unlike other foods.

As a [[redstone]] component, when connected to a [[comparator]], a whole cake emits a signal strength of 14. The signal strength decreases two units with each slice.

Cake destroys [[Entity#Falling Blocks|falling blocks]] if placed under them, similar to a [[torch]].

=== Pandas ===
Some [[panda]]s move toward a dropped cake to pick up and eat it. Some may not, depending on the cake's location. 

=== Composting ===
Placing a cake into a [[composter]] raises the compost level by 1.

=== Piston interactivity ===
A cake is broken when pushed by a [[piston]], and it drops nothing.

=== Cakes with candles ===
[[File:Cake with Candle.png|thumb|upright|A cake with candle created by placing a candle on an uneaten cake.]]
{{control|Using}} a [[candle]] on an uneaten cake creates a candle cake of that color (including uncolored). Eating the cake causes the candle to drop. 

{{control|Using}} [[flint and steel]], [[fire charge]], or any flaming projectile on an unlit candle cake lights its candle. Lit candle cakes emit light level of 3. Clicking on the lit candle (but not the cake) extinguishes it.

== Sounds ==
=== Generic ===
{{Sound table/Block/Wool}}

=== Unique ===
{{edition|java}}:
{{Sound table
|sound=Cake add_candle1.ogg
|sound2=Cake add_candle2.ogg
|sound3=Cake add_candle3.ogg
|subtitle=Cake squishes
|source=Blocks
|description=When a [[candle]] is placed on a cake
|id=block.cake.add_candle
|translationkey=subtitles.block.cake.add_candle
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Cake add_candle1.ogg
|sound2=Cake add_candle2.ogg
|sound3=Cake add_candle3.ogg
|source=block
|description=When a candle is placed on a cake
|id=cake.add_candle
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Burp.ogg
|source=player
|description=After a player eats a cake
|id=random.burp
|volume=0.5
|pitch=0.9-1.0
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Cake
|spritetype=block
|nameid=cake}}
{{ID table
|displayname=Cake with Candle
|spritename=candle-cake
|spritetype=block
|nameid=candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with White Candle
|spritename=white-candle-cake
|spritetype=block
|nameid=white_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Orange Candle
|spritename=orange-candle-cake
|spritetype=block
|nameid=orange_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Magenta Candle
|spritename=magenta-candle-cake
|spritetype=block
|nameid=magenta_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Light Blue Candle
|spritename=light-blue-candle-cake
|spritetype=block
|nameid=light_blue_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Yellow Candle
|spritename=yellow-candle-cake
|spritetype=block
|nameid=yellow_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Lime Candle
|spritename=lime-candle-cake
|spritetype=block
|nameid=lime_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Pink Candle
|spritename=pink-candle-cake
|spritetype=block
|nameid=pink_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Gray Candle
|spritename=gray-candle-cake
|spritetype=block
|nameid=gray_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Light Gray Candle
|spritename=light-gray-candle-cake
|spritetype=block
|nameid=light_gray_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Cyan Candle
|spritename=cyan-candle-cake
|spritetype=block
|nameid=cyan_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Purple Candle
|spritename=purple-candle-cake
|spritetype=block
|nameid=purple_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Blue Candle
|spritename=blue-candle-cake
|spritetype=block
|nameid=blue_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Brown Candle
|spritename=brown-candle-cake
|spritetype=block
|nameid=brown_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Green Candle
|spritename=green-candle-cake
|spritetype=block
|nameid=green_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Red Candle
|spritename=red-candle-cake
|spritetype=block
|nameid=red_candle_cake
|blocktags=candle_cakes
|form=block}}
{{ID table
|displayname=Cake with Black Candle
|spritename=black-candle-cake
|spritetype=block
|nameid=black_candle_cake
|blocktags=candle_cakes
|form=block
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Cake
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Block
|spritename=cake
|spritetype=block
|nameid=cake
|id=92
|form=block
|itemform=item.cake}}
{{ID table
|displayname=Item
|spritename=cake
|spritetype=item
|nameid=cake
|id=417
|form=item}}
{{ID table
|displayname=Cake with Candle
|spritename=candle-cake
|spritetype=block
|nameid=candle_cake
|blocktags=candle_cakes
|form=block
|id=684}}
{{ID table
|displayname=Cake with White Candle
|spritename=white-candle-cake
|spritetype=block
|nameid=white_candle_cake
|blocktags=candle_cakes
|form=block
|id=685}}
{{ID table
|displayname=Cake with Orange Candle
|spritename=orange-candle-cake
|spritetype=block
|nameid=orange_candle_cake
|blocktags=candle_cakes
|form=block
|id=686}}
{{ID table
|displayname=Cake with Magenta Candle
|spritename=magenta-candle-cake
|spritetype=block
|nameid=magenta_candle_cake
|blocktags=candle_cakes
|form=block
|id=687}}
{{ID table
|displayname=Cake with Light Blue Candle
|spritename=light-blue-candle-cake
|spritetype=block
|nameid=light_blue_candle_cake
|blocktags=candle_cakes
|form=block
|id=688}}
{{ID table
|displayname=Cake with Yellow Candle
|spritename=yellow-candle-cake
|spritetype=block
|nameid=yellow_candle_cake
|blocktags=candle_cakes
|form=block
|id=689}}
{{ID table
|displayname=Cake with Lime Candle
|spritename=lime-candle-cake
|spritetype=block
|nameid=lime_candle_cake
|blocktags=candle_cakes
|form=block
|id=690}}
{{ID table
|displayname=Cake with Pink Candle
|spritename=pink-candle-cake
|spritetype=block
|nameid=pink_candle_cake
|blocktags=candle_cakes
|form=block
|id=691}}
{{ID table
|displayname=Cake with Gray Candle
|spritename=gray-candle-cake
|spritetype=block
|nameid=gray_candle_cake
|blocktags=candle_cakes
|form=block
|id=692}}
{{ID table
|displayname=Cake with Light Gray Candle
|spritename=light-gray-candle-cake
|spritetype=block
|nameid=light_gray_candle_cake
|blocktags=candle_cakes
|form=block
|id=693}}
{{ID table
|displayname=Cake with Cyan Candle
|spritename=cyan-candle-cake
|spritetype=block
|nameid=cyan_candle_cake
|blocktags=candle_cakes
|form=block
|id=694}}
{{ID table
|displayname=Cake with Purple Candle
|spritename=purple-candle-cake
|spritetype=block
|nameid=purple_candle_cake
|blocktags=candle_cakes
|form=block
|id=695}}
{{ID table
|displayname=Cake with Blue Candle
|spritename=blue-candle-cake
|spritetype=block
|nameid=blue_candle_cake
|blocktags=candle_cakes
|form=block
|id=696}}
{{ID table
|displayname=Cake with Brown Candle
|spritename=brown-candle-cake
|spritetype=block
|nameid=brown_candle_cake
|blocktags=candle_cakes
|form=block
|id=697}}
{{ID table
|displayname=Cake with Green Candle
|spritename=green-candle-cake
|spritetype=block
|nameid=green_candle_cake
|blocktags=candle_cakes
|form=block
|id=698}}
{{ID table
|displayname=Cake with Red Candle
|spritename=red-candle-cake
|spritetype=block
|nameid=red_candle_cake
|blocktags=candle_cakes
|form=block
|id=699}}
{{ID table
|displayname=Cake with Black Candle
|spritename=black-candle-cake
|spritetype=block
|nameid=black_candle_cake
|blocktags=candle_cakes
|form=block
|id=700
|foot=1}}

=== Block states ===
{{see also|Block states}}
{{/BS}}

== Achievements ==
{{load achievements|The Lie;Birthday Song}}

== Advancements ==
{{load advancements|Birthday Song}}

== History ==
{{info needed section|{{bug|MC-45375}}}}
{{History|java beta}}
{{History||November 23, 2010|link={{tweet|notch|7118994444124160}}|[[Notch]] stated if ''Minecraft'' won the [[2010 Indie of the Year Awards]], he would add cake to ''Minecraft''.}}
{{History||1.2|[[File:Cake JE1.png|32px]] [[File:Cake (1 bite) JE1.png|32px]] [[File:Cake (2 bites) JE1.png|32px]] [[File:Cake (3 bites) JE1.png|32px]] [[File:Cake (4 bites) JE1.png|32px]] [[File:Cake (5 bites) JE1.png|32px]]<br>[[File:Cake (item) JE1 BE1.png|32px]] Since ''Minecraft'' won the title, cake has been added.
|Cake heals {{hp|18}}.
|[[File:Cake (6 bites) JE1.png|32px]] [[File:Cake (7 bites) JE1.png|32px]] Cakes with six and seven bites exist, but are not accessible.
|[[File:Cake (8 bites) JE1.png|32px]] [[File:Cake (9 bites) JE1.png|32px]] [[File:Cake (10 bites) JE1.png|32px]] [[File:Cake (11 bites) JE1.png|32px]] [[File:Cake (12 bites) JE1.png|32px]] [[File:Cake (13 bites) JE1.png|32px]] [[File:Cake (14 bites) JE1.png|32px]] [[File:Cake (15 bites) JE1.png|32px]]<br>[[File:Cake (8 bites) JE1 (facing NWU).png|32px]] [[File:Cake (9 bites) JE1 (facing NWU).png|32px]] [[File:Cake (10 bites) JE1 (facing NWU).png|32px]] [[File:Cake (11 bites) JE1 (facing NWU).png|32px]] [[File:Cake (12 bites) JE1 (facing NWU).png|32px]] [[File:Cake (13 bites) JE1 (facing NWU).png|32px]] [[File:Cake (14 bites) JE1 (facing NWU).png|32px]] [[File:Cake (15 bites) JE1 (facing NWU).png|32px]]<br>Cakes with eight through fifteen bites also exist. These have a glitched appearance, with misaligned cake textures as well as the block [[placeholder texture]] on the bottom (as the texture next to the bottom of the cake on [[terrain.png]], which it overflows to, is itself a placeholder).}}
{{History||1.5|[[Achievements/Java Edition|Achievements]] have been added, including "The Lie", which is rewarded when the [[player]] crafts a cake.}}
{{History||1.7|[[File:Cake (8 bites) JE2 (facing NWU).png|32px]] [[File:Cake (9 bites) JE2 (facing NWU).png|32px]] [[File:Cake (10 bites) JE2 (facing NWU).png|32px]] [[File:Cake (11 bites) JE2 (facing NWU).png|32px]] [[File:Cake (12 bites) JE2 (facing NWU).png|32px]] [[File:Cake (13 bites) JE2 (facing NWU).png|32px]] [[File:Cake (14 bites) JE2 (facing NWU).png|32px]] [[File:Cake (15 bites) JE2 (facing NWU).png|32px]]<br>The cake side texture shown from underneath has flipped to the other side.}}
{{History||1.8|snap=Pre-release|Cake now restores {{hunger|12}}.
|[[File:Cake (8 bites) JE3.png|32px]] [[File:Cake (9 bites) JE3.png|32px]] [[File:Cake (10 bites) JE3.png|32px]] [[File:Cake (11 bites) JE3.png|32px]] [[File:Cake (12 bites) JE3.png|32px]] [[File:Cake (13 bites) JE3.png|32px]] [[File:Cake (14 bites) JE3.png|32px]] [[File:Cake (15 bites) JE3.png|32px]]<br>Cakes with data 8 through 15 now use the red mushroom block texture with the addition of the red [[mushroom block]].
|Dropped cake items{{info needed|the proper item form, or the unobtainable one?}} no longer appear larger than normal blocks.}}
{{History|||snap=?|Cake is available both in item and block forms in the creative inventory.}}
{{History|java}}
{{History||1.0.0|snap=?|Cake blocks have been removed from creative.}}
{{History||1.2.1|snap=?|When cake is crafted, the empty [[bucket]]s are now moved to the [[player]]'s [[inventory]], rather than staying in the [[crafting]] grid.}}
{{History||1.5|snap=13w02a|[[File:Cake JE2.png|32px]] [[File:Cake (1 bite) JE2.png|32px]] [[File:Cake (2 bites) JE2.png|32px]] [[File:Cake (3 bites) JE2.png|32px]] [[File:Cake (4 bites) JE2.png|32px]] [[File:Cake (5 bites) JE2.png|32px]] [[File:Cake (6 bites) JE2.png|32px]] Cakes now use the inside texture for all orthogonal faces.
|[[File:Cake (8 bites) JE4.png|32px]] [[File:Cake (9 bites) JE4.png|32px]] [[File:Cake (10 bites) JE4.png|32px]] [[File:Cake (11 bites) JE4.png|32px]] [[File:Cake (12 bites) JE4.png|32px]] [[File:Cake (13 bites) JE4.png|32px]] [[File:Cake (14 bites) JE4.png|32px]] [[File:Cake (15 bites) JE4.png|32px]]<br>[[File:Cake (8 bites) JE4 (facing NWU).png|32px]] [[File:Cake (9 bites) JE4 (facing NWU).png|32px]] [[File:Cake (10 bites) JE4 (facing NWU).png|32px]] [[File:Cake (11 bites) JE4 (facing NWU).png|32px]] [[File:Cake (12 bites) JE4 (facing NWU).png|32px]] [[File:Cake (13 bites) JE4 (facing NWU).png|32px]] [[File:Cake (14 bites) JE4 (facing NWU).png|32px]] [[File:Cake (15 bites) JE4 (facing NWU).png|32px]]<br>With the advent of major changes in texture storage and architecture, overeaten cakes now display other parts of cakes as well as part of a crop texture.
|From this version up until 14w08a, overeaten cakes start to draw from the textures next to them on the [[texture atlas]], in much the same way they previously did with terrain.png. However, as texture atlases are unstable and textures tend to change positions as new blocks and textures are added, overeaten cakes change the texture they draw from every time new textures are added, which includes when textures added by [[mods]].}}
{{History|||snap=13w03a|[[File:Cake JE3 BE1.png|32px]] [[File:Cake (1 bite) JE3 BE1.png|32px]] [[File:Cake (2 bites) JE3 BE1.png|32px]] [[File:Cake (3 bites) JE3 BE1.png|32px]] [[File:Cake (4 bites) JE3 BE1.png|32px]] [[File:Cake (5 bites) JE3 BE1.png|32px]] Cakes now use the outside side texture for the sides again.<ref>{{bug|MC-7119}}</ref>
|[[File:Cake (8 bites) JE5.png|32px]] [[File:Cake (9 bites) JE5.png|32px]] [[File:Cake (10 bites) JE5.png|32px]] [[File:Cake (11 bites) JE5.png|32px]] [[File:Cake (12 bites) JE5.png|32px]] [[File:Cake (13 bites) JE5.png|32px]] [[File:Cake (14 bites) JE5.png|32px]] [[File:Cake (15 bites) JE5.png|32px]]<br>[[File:Cake (8 bites) JE5 (facing NWU).png|32px]] [[File:Cake (9 bites) JE5 (facing NWU).png|32px]] [[File:Cake (10 bites) JE5 (facing NWU).png|32px]] [[File:Cake (11 bites) JE5 (facing NWU).png|32px]] [[File:Cake (12 bites) JE5 (facing NWU).png|32px]] [[File:Cake (13 bites) JE5 (facing NWU).png|32px]] [[File:Cake (14 bites) JE5 (facing NWU).png|32px]] [[File:Cake (15 bites) JE5 (facing NWU).png|32px]]<br>Overeaten cakes now display a different part of the cake texture than before.}}
{{History|||snap=13w09a|[[File:Cake (8 bites) JE6.png|32px]] [[File:Cake (9 bites) JE6.png|32px]] [[File:Cake (10 bites) JE6.png|32px]] [[File:Cake (11 bites) JE6.png|32px]] [[File:Cake (12 bites) JE6.png|32px]] [[File:Cake (13 bites) JE6.png|32px]] [[File:Cake (14 bites) JE6.png|32px]] [[File:Cake (15 bites) JE6.png|32px]]<br>[[File:Cake (8 bites) JE6 (facing NWU).png|32px]] [[File:Cake (9 bites) JE6 (facing NWU).png|32px]] [[File:Cake (10 bites) JE6 (facing NWU).png|32px]] [[File:Cake (11 bites) JE6 (facing NWU).png|32px]] [[File:Cake (12 bites) JE6 (facing NWU).png|32px]] [[File:Cake (13 bites) JE6 (facing NWU).png|32px]] [[File:Cake (14 bites) JE6 (facing NWU).png|32px]] [[File:Cake (15 bites) JE6 (facing NWU).png|32px]]<br>Overeaten cakes now display a crop texture on the side.}}
{{History||1.6.1|snap=13w17a|[[File:Cake (8 bites) JE7.png|32px]] [[File:Cake (9 bites) JE7.png|32px]] [[File:Cake (10 bites) JE7.png|32px]] [[File:Cake (11 bites) JE7.png|32px]] [[File:Cake (12 bites) JE7.png|32px]] [[File:Cake (13 bites) JE7.png|32px]] [[File:Cake (14 bites) JE7.png|32px]] [[File:Cake (15 bites) JE7.png|32px]]<br>[[File:Cake (8 bites) JE7 (facing NWU).png|32px]] [[File:Cake (9 bites) JE7 (facing NWU).png|32px]] [[File:Cake (10 bites) JE7 (facing NWU).png|32px]] [[File:Cake (11 bites) JE7 (facing NWU).png|32px]] [[File:Cake (12 bites) JE7 (facing NWU).png|32px]] [[File:Cake (13 bites) JE7 (facing NWU).png|32px]] [[File:Cake (14 bites) JE7 (facing NWU).png|32px]] [[File:Cake (15 bites) JE7 (facing NWU).png|32px]]<br>Overeaten cakes now display a part of the powered [[redstone comparator]] texture.}}
{{History|||snap=13w18a|[[File:Cake (8 bites) JE8.png|32px]] [[File:Cake (9 bites) JE8.png|32px]] [[File:Cake (10 bites) JE8.png|32px]] [[File:Cake (11 bites) JE8.png|32px]] [[File:Cake (12 bites) JE8.png|32px]] [[File:Cake (13 bites) JE8.png|32px]] [[File:Cake (14 bites) JE8.png|32px]] [[File:Cake (15 bites) JE8.png|32px]]<br>[[File:Cake (8 bites) JE8 (facing NWU).png|32px]] [[File:Cake (9 bites) JE8 (facing NWU).png|32px]] [[File:Cake (10 bites) JE8 (facing NWU).png|32px]] [[File:Cake (11 bites) JE8 (facing NWU).png|32px]] [[File:Cake (12 bites) JE8 (facing NWU).png|32px]] [[File:Cake (13 bites) JE8 (facing NWU).png|32px]] [[File:Cake (14 bites) JE8 (facing NWU).png|32px]] [[File:Cake (15 bites) JE8 (facing NWU).png|32px]]<br>Overeaten cakes now display the [[carrots]] texture. The inside underside also uses the feet of the [[cauldron]].}}
{{History||1.7.2|snap=13w41a|[[File:Cake (8 bites) JE9.png|32px]] [[File:Cake (9 bites) JE9.png|32px]] [[File:Cake (10 bites) JE9.png|32px]] [[File:Cake (11 bites) JE9.png|32px]] [[File:Cake (12 bites) JE9.png|32px]] [[File:Cake (13 bites) JE9.png|32px]] [[File:Cake (14 bites) JE9.png|32px]] [[File:Cake (15 bites) JE9.png|32px]]<br>[[File:Cake (8 bites) JE9 (facing NWU).png|32px]] [[File:Cake (9 bites) JE9 (facing NWU).png|32px]] [[File:Cake (10 bites) JE9 (facing NWU).png|32px]] [[File:Cake (11 bites) JE9 (facing NWU).png|32px]] [[File:Cake (12 bites) JE9 (facing NWU).png|32px]] [[File:Cake (13 bites) JE9 (facing NWU).png|32px]] [[File:Cake (14 bites) JE9 (facing NWU).png|32px]] [[File:Cake (15 bites) JE9 (facing NWU).png|32px]]<br>Overeaten cakes now display a part of the block breaking texture, and the texture of the [[block of diamond]] inside.}}
{{History||1.8|snap=14w02a|Farmer [[villager]]s now [[trading|sell]] 1 cake for 1 [[emerald]].}}
{{History|||snap=14w10a|[[File:Missing Model JE2.png|32px]] Cakes with data values 7 and above now [[Missing model|have no model]].}}
{{History|||snap=14w28a|Cake slices available when eating cakes have been increased from 6 to 7, allowing the 6-bites cake to be obtained legitimately.
|Cake now emits a [[redstone comparator|comparator]] signal.
|When cake is crafted, empty [[bucket]]s now stay in the [[crafting table]].}}
{{History||1.9|snap=15w37a|Cake can no longer be eaten in survival with the primary attack (left-click).}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this block's numeral ID was 92, and the item's 354.}}
{{History||1.14|snap=18w43a|[[File:Cake JE4.png|32px]] [[File:Cake (1 bite) JE4.png|32px]] [[File:Cake (2 bites) JE4.png|32px]] [[File:Cake (3 bites) JE4.png|32px]] [[File:Cake (4 bites) JE4.png|32px]] [[File:Cake (5 bites) JE4.png|32px]] [[File:Cake (6 bites) JE4.png|32px]]<br>[[File:Cake (item) JE2 BE2.png|32px]] The texture of cake has been changed.
|Cakes can now be eaten by [[panda]]s when they are thrown to them.}}
{{History|||snap=19w03a|Placing a cake into the new [[composter]] now raises the compost level by 1.}}
{{History|||snap=19w08a|[[File:Cake (item) JE3 BE3.png|32px]] The texture of cake [[item]]s have been changed, this time to have a large cherry in the middle to match its block counterpart.}}
{{History||May 17–20, 2019|link=none|[[File:10 years cake render.png|32px]] Cakes now display a "10" above them, textured with [[white concrete]], to celebrate the 10 year anniversary of the first public version of ''Minecraft'' ([[0.0.11a]]) being released.}}
{{History||1.17|snap=20w45a|[[File:Cake with Candle JE1.png|32px]] [[File:Cake with White Candle JE1.png|32px]] [[File:Cake with Light Gray Candle JE1.png|32px]] [[File:Cake with Gray Candle JE1.png|32px]] [[File:Cake with Black Candle JE1.png|32px]] [[File:Cake with Brown Candle JE1.png|32px]] [[File:Cake with Red Candle JE1.png|32px]] [[File:Cake with Orange Candle JE1.png|32px]] [[File:Cake with Yellow Candle JE1.png|32px]] [[File:Cake with Lime Candle JE1.png|32px]] [[File:Cake with Green Candle JE1.png|32px]] [[File:Cake with Cyan Candle JE1.png|32px]] [[File:Cake with Light Blue Candle JE1.png|32px]] [[File:Cake with Blue Candle JE1.png|32px]] [[File:Cake with Purple Candle JE1.png|32px]] [[File:Cake with Magenta Candle JE1.png|32px]] [[File:Cake with Pink Candle JE1.png|32px]] [[File:Candle Cake (lit) JE1.png|32px]] [[File:White Candle Cake (lit) JE1.png|32px]] [[File:Light Gray Candle Cake (lit) JE1.png|32px]] [[File:Gray Candle Cake (lit) JE1.png|32px]] [[File:Black Candle Cake (lit) JE1.png|32px]] [[File:Brown Candle Cake (lit) JE1.png|32px]] [[File:Red Candle Cake (lit) JE1.png|32px]] [[File:Orange Candle Cake (lit) JE1.png|32px]] [[File:Yellow Candle Cake (lit) JE1.png|32px]] [[File:Lime Candle Cake (lit) JE1.png|32px]] [[File:Green Candle Cake (lit) JE1.png|32px]] [[File:Cyan Candle Cake (lit) JE1.png|32px]] [[File:Light Blue Candle Cake (lit) JE1.png|32px]] [[File:Blue Candle Cake (lit) JE1.png|32px]] [[File:Purple Candle Cake (lit) JE1.png|32px]] [[File:Magenta Candle Cake (lit) JE1.png|32px]] [[File:Pink Candle Cake (lit) JE1.png|32px]] Added candle cakes.}}
{{History||1.17|snap=21w19a|The name of "Candle Cake" has been changed to "Cake with Candle".}}
{{History||1.17|snap=Pre-release 3|[[File:Candle Cake (lit) JE2.png|32px]] [[File:White Candle Cake (lit) JE2.png|32px]] [[File:Light Gray Candle Cake (lit) JE2.png|32px]] [[File:Gray Candle Cake (lit) JE2.png|32px]] [[File:Black Candle Cake (lit) JE2.png|32px]] [[File:Brown Candle Cake (lit) JE2.png|32px]] [[File:Red Candle Cake (lit) JE2.png|32px]] [[File:Orange Candle Cake (lit) JE2.png|32px]][[File:Yellow Candle Cake (lit) JE2.png|32px]] [[File:Lime Candle Cake (lit) JE2.png|32px]] [[File:Green Candle Cake (lit) JE2.png|32px]] [[File:Cyan Candle Cake (lit) JE2.png|32px]]  [[File:Light Blue Candle Cake (lit) JE2.png|32px]] [[File:Blue Candle Cake (lit) JE2.png|32px]] [[File:Purple Candle Cake (lit) JE2.png|32px]] [[File:Magenta Candle Cake (lit) JE2.png|32px]] [[File:Pink Candle Cake (lit) JE2.png|32px]] Changed lit cake with candle textures.}}

{{History|pocket alpha}}
{{History||v0.7.0|[[File:Cake JE3 BE1.png|32px]] [[File:Cake (1 bite) JE3 BE1.png|32px]] [[File:Cake (2 bites) JE3 BE1.png|32px]] [[File:Cake (3 bites) JE3 BE1.png|32px]] [[File:Cake (4 bites) JE3 BE1.png|32px]] [[File:Cake (5 bites) JE3 BE1.png|32px]] [[File:Cake (6 bites) JE3 BE1.png|32px]]<br>[[File:Cake (item) JE1 BE1.png|32px]] Added cake.
|Cake restores {{hp|18}}.}}
{{History||v0.12.1|snap=build 1|Cake now restore {{hunger|12}}.}}
{{History||v0.14.0|snap=build 1|Cake can now be used to emit a [[redstone comparator|comparator]] signal.}}
{{History||v0.15.0|snap=?|Cake currently does not show its inside texture on two or more bites.}}
{{History|pocket}}
{{History||1.0.4|snap=alpha 1.0.4.0|Farmer villagers now [[trading|sell]] cake for one [[emerald]].}}
{{History|bedrock}}
{{History||unknown|Cake is now stackable.}}
{{History||1.4.0|snap=beta 1.2.14.2|Cake can now be found inside [[buried treasure]] [[chest]]s.}}
{{History||1.8.0|snap=beta 1.8.0.8|Cake, as a dropped [[item]], can now be eaten by [[panda]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Cake BE2.png|32px]] [[File:Cake (1 bite) BE2.png|32px]] [[File:Cake (2 bites) BE2.png|32px]] [[File:Cake (3 bites) BE2.png|32px]] [[File:Cake (4 bites) BE2.png|32px]] [[File:Cake (5 bites) BE2.png|32px]] [[File:Cake (6 bites) BE2.png|32px]] <br>[[File:Cake (item) JE2 BE2.png|32px]] The texture of cake has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Cake can now be used to fill up [[composter]]s.}}
{{History|||snap=beta 1.11.0.4|Cake [[trading|sold]] by farmers now has a 50% chance to cost 8 [[emerald]]s.}}
{{History|||snap=beta 1.11.0.5|[[File:Cake (item) JE3 BE3.png|32px]] The texture of cake [[item]]s has been changed, once again.}}
{{History|||snap=beta 1.11.0.7|Cake [[trading|trades]] from farmer [[villager]]s have been reverted.}}
{{History||1.16.0|snap=beta 1.15.0.53|Cake now shows its inside texture on two or more bites.}}
{{History||1.17.10|snap=beta 1.17.10.22|[[File:Cake with Candle JE1.png|32px]] [[File:Cake with White Candle JE1.png|32px]] [[File:Cake with Light Gray Candle JE1.png|32px]] [[File:Cake with Gray Candle JE1.png|32px]] [[File:Cake with Black Candle JE1.png|32px]] [[File:Cake with Brown Candle JE1.png|32px]] [[File:Cake with Red Candle JE1.png|32px]] [[File:Cake with Orange Candle JE1.png|32px]] [[File:Cake with Yellow Candle JE1.png|32px]] [[File:Cake with Lime Candle JE1.png|32px]] [[File:Cake with Green Candle JE1.png|32px]] [[File:Cake with Cyan Candle JE1.png|32px]] [[File:Cake with Light Blue Candle JE1.png|32px]] [[File:Cake with Blue Candle JE1.png|32px]] [[File:Cake with Purple Candle JE1.png|32px]] [[File:Cake with Magenta Candle JE1.png|32px]] [[File:Cake with Pink Candle JE1.png|32px]] [[File:Candle Cake (lit) JE2.png|32px]] [[File: White Candle Cake (lit) JE2.png|32px]] [[File:Light Gray Candle Cake (lit) JE2.png|32px]] [[File:Gray Candle Cake (lit) JE2.png|32px]] [[File:Black Candle Cake (lit) JE2.png|32px]] [[File:Brown Candle Cake (lit) JE2.png|32px]] [[File:Red Candle Cake (lit) JE2.png|32px]] [[File:Orange Candle Cake (lit) JE2.png|32px]] [[File:Yellow Candle Cake (lit) JE2.png|32px]] [[File:Lime Candle Cake (lit) JE2.png|32px]] [[File:Green Candle Cake (lit) JE2.png|32px]] [[File:Cyan Candle Cake (lit) JE2.png|32px]] [[File:Light Blue Candle Cake (lit) JE2.png|32px]] [[File:Blue Candle Cake (lit) JE2.png|32px]] [[File:Purple Candle Cake (lit) JE2.png|32px]] [[File:Magenta Candle Cake (lit) JE2.png|32px]] [[File:Pink Candle Cake (lit) JE2.png|32px]] Added candle cakes.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Cake JE3 BE1.png|32px]] [[File:Cake (1 bite) JE3 BE1.png|32px]] [[File:Cake (2 bites) JE3 BE1.png|32px]] [[File:Cake (3 bites) JE3 BE1.png|32px]] [[File:Cake (4 bites) JE3 BE1.png|32px]] [[File:Cake (5 bites) JE3 BE1.png|32px]] [[File:Cake (6 bites) JE3 BE1.png|32px]]<br>[[File:Cake (item) JE1 BE1.png|32px]] Added cake.}}
{{History||xbox=TU6|Cake has been made stackable, as a then-version exclusive.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Cake JE4.png|32px]] [[File:Cake (1 bite) JE4.png|32px]] [[File:Cake (2 bites) JE4.png|32px]] [[File:Cake (3 bites) JE4.png|32px]] [[File:Cake (4 bites) JE4.png|32px]] [[File:Cake (5 bites) JE4.png|32px]] [[File:Cake (6 bites) JE4.png|32px]]{{verify|Are these the textures/models used?}}<br>[[File:Cake (item) JE2 BE2.png|32px]] The single, lone texture of cake has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Cake JE3 BE1.png|32px]] [[File:Cake (1 bite) JE3 BE1.png|32px]] [[File:Cake (2 bites) JE3 BE1.png|32px]] [[File:Cake (3 bites) JE3 BE1.png|32px]] [[File:Cake (4 bites) JE3 BE1.png|32px]] [[File:Cake (5 bites) JE3 BE1.png|32px]] [[File:Cake (6 bites) JE3 BE1.png|32px]]<br>[[File:Cake (item) JE1 BE1.png|32px]] Added cake.}}
{{History|foot}}

=== Cake "item" ===
{{:Technical blocks/Cake}}

== Issues ==

{{issue list}}

== Trivia ==

=== Interaction ===

* Because cake is only {{frac|7|8}} blocks wide, it is possible to stand on the edge of a [[block]] beneath a cake.
* It is possible to place cake on top of another cake by placing a cake on the ground, then placing another cake on the side of a block above and to the side of the first cake, similar to placing [[torch]]es on a [[chest]]. Eating the lower cake causes the upper cake to disappear, as does mining out the block of cake it is sitting on.
* It is also possible to place any block on top of cakes (including another cake) by [[sneaking]] and placing the block on top of a cake.
* [[Mob]]s on top of cakes rotate while attempting to move, a pathfinding oversight shared with [[fence]]s.
* If cake is placed in a hole one block deep, players can get across the hole without jumping, although a player standing on the cake must jump to get out of the hole.
* Cake can be used to create a functioning staircase, by placing a cake on each level of a 1 block by 1 block incline. This would be one of the most labor-intensive staircases available, given the requirements to craft a cake, compared to any other method of creating a staircase. This staircase is also extremely overpowered when combined with a horse being one of the fastest forms of travel.
*At some point, it was possible to push cakes into the void using pistons.<ref>https://www.youtube.com/watch?v=GxniEMGBXC4&t=340s</ref>

=== Miscellaneous ===
[[File:IOTY.png|thumb|100px|The 2010 Indie of the Year Awards logo.]]
* Cake was added to ''[[Minecraft]]'' following the ModDB [[2010 Indie of the Year Awards]]. [[Notch]] agreed to add cake to ''Minecraft'' if it won, which led to a campaign called "The Quest For Cake". ''Minecraft'' won 3 of the 7 awards, including the "Indie of the Year" award.
* Placing a cake makes the same sound as placing [[wool]].
* The player can place cake on top of a [[bed]], and while [[sleeping]], the cake shows on the player's screen as if it were on top of their head.
* The name of the achievement for crafting a cake is a reference to the internet meme "The Cake is a Lie", which originated from [[wikipedia:Valve Corporation|Valve Software's]] game, ''[[wikipedia:Portal (video game)#Plot|Portal]]''.
* On May 17, 2019, for the [https://www.minecraft.net/en-us/10th-anniversary 10th anniversary] of ''Minecraft'', the cake [[model]] was changed to display a "10" above it, made of [[white concrete]].
* Unlike most foods, cakes don't count towards the advancement "[[A Balanced Diet]]" {{in|java}}.<ref>{{bug|MC-117561}}</ref>

== Gallery ==
=== Renders ===
{{hidden begin}}
<div style="clear: both"></div>
<gallery>
Cake.png
Cake (1 bite).png
Cake (2 bites).png
Cake (3 bites).png
Cake (4 bites).png
Cake (5 bites).png
Cake (6 bites).png
</gallery>
<gallery>
Cake with Candle.png
Cake with White Candle.png
Cake with Light Gray Candle.png
Cake with Gray Candle.png
Cake with Black Candle.png
Cake with Brown Candle.png
Cake with Red Candle.png
Cake with Orange Candle.png
Cake with Yellow Candle.png
Cake with Lime Candle.png
Cake with Green Candle.png
Cake with Cyan Candle.png
Cake with Light Blue Candle.png
Cake with Blue Candle.png
Cake with Purple Candle.png
Cake with Magenta Candle.png
Cake with Pink Candle.png
</gallery>
<gallery>
Candle Cake (lit).png
White Candle Cake (lit).png
Light Gray Candle Cake (lit).png
Gray Candle Cake (lit).png
Black Candle Cake (lit).png
Brown Candle Cake (lit).png
Red Candle Cake (lit).png
Orange Candle Cake (lit).png
Yellow Candle Cake (lit).png
Lime Candle Cake (lit).png
Green Candle Cake (lit).png
Cyan Candle Cake (lit).png
Light Blue Candle Cake (lit).png
Blue Candle Cake (lit).png
Purple Candle Cake (lit).png
Magenta Candle Cake (lit).png
Pink Candle Cake (lit).png
</gallery>
{{hidden end}}
=== In-game ===
<gallery>
Cakes stacked.png|A cake placed on top of another.
Cakeeating.png|The sizes of cake when eaten.
10 Years Cake.jpg|The 10-years cake [[model]] placed in the world.
</gallery>

== References ==
{{Reflist}}

{{Blocks|Utility}}
{{Items}}

[[Category:Food]]
[[Category:Utility blocks]]
[[Category:Manufactured blocks]]

[[cs:Dort]]
[[de:Kuchen]]
[[es:Tarta]]
[[fr:Gâteau]]
[[hu:Torta]]
[[it:Torta]]
[[ja:ケーキ]]
[[ko:케이크]]
[[nl:Taart]]
[[pl:Ciasto]]
[[pt:Bolo]]
[[ru:Торт]]
[[th:เค้ก]]
[[tr:Pasta]]
[[uk:Торт]]
[[zh:蛋糕]]</li><li>[[Elytra|Elytra]]<br/>{{Item
| image = Elytra.png
| rarity = Uncommon
| renewable = No
| durability = 432
| stackable = No
}}
'''Elytra''' ({{Audio|ElytraPronunciation.mp3|/ˈɛl ɪ trə/|link2=''ᴇʟ-i-trə''}}<ref>“Elytron.” ''Merriam-Webster.com Dictionary'', Merriam-Webster, https://www.merriam-webster.com/dictionary/elytron. Accessed 22 May. 2022.</ref>)<!--"Elytra" is the plural of "elytron," a single half of a beetle's protective wing covers. Verbs should agree accordingly (e.g. "Elytra allow flight"). https://www.merriam-webster.com/dictionary/elytron--> are rare wings found in [[end ship]]s that are a source of flight in [[Survival]] mode.

== Obtaining ==
=== Natural generation ===
Elytra are found only in [[end city|end cities]] in [[item frame|item frames]] in the treasure room of the [[end ship]]. A [[shulker]] guards the elytra and the ship's two loot chests.

=== Repairing ===

Elytra can be enchanted with [[Mending]] so that they get [[Item repair|repaired]] as the player collects [[experience]] orbs while wearing/holding them.

Elytra can also be repaired in the player crafting grid, by combining two damaged pairs of elytra together. 

{{crafting
|showname=0
|showdescription=1
|ignoreusage=1
|Damaged Elytra
|Damaged Elytra
|Output= Elytra
|description= The durability of the two pairs is added together, plus an extra 5% durability, but removes any enchantments.
|type= Transportation
}}

Similarly, two damaged elytra pairs can be combined on a [[grindstone]].

{{Grinding
|showdescription=1
|ingredients=2x Damaged [[Elytra]]
|Damaged Elytra
|Damaged Elytra
|Elytra
|description=The durability of the two pairs is added together, plus an extra 5% durability, but removes any enchantments.
}}

Elytra can also be repaired at an anvil using [[phantom membrane]]s, which has the advantage that it preserves [[enchantments]] on elytra. Each phantom membrane restores 108 durability points, exactly 25% of the elytra's total durability. 

{| class="wikitable" data-description="Repairing elytra"
! scope="col" style="width:64px;" | Name
! Ingredients
! [[Anvil]] usage
|-
! scope="row" style="text-align: center;" | '''Elytra'''
| [[Elytra]] +<br>[[Phantom Membrane]]
| style="width: 260px; padding: 1px;" | {{Anvil| title = Elytra|Input1=Damaged Elytra|Input2=Phantom Membrane, 2|Output=Elytra}}
|-
|}
Each repair on the anvil, however, also increases the [[Anvil mechanics|prior work]] penalty for the Elytra, making every subsequent repair increasingly expensive and eventually reaching an upper limit where repairs are no longer allowed because they are "too expensive" (even if the player has many xp levels to spare). However, the prior work penalty can be reset to 0 for an enchanted elytra pair when it is disenchanted on a grindstone. Unenchanted elytra cannot be used on the grindstone alone.

== Usage ==
[[File:Steve in elytra.png|75px]] [[File:Alex in elytra.png|75px]]

Elytra are equipped in the [[chestplate]] slot, either by placing the item directly in the slot, by pressing {{ctrl|use item}} while [[hotbar|held in hand]], or by firing a point-blank [[dispenser]] at a target. They are gray in color by default, but they adopt the design of any [[cape]] the player is wearing. They maintain their in-world texture design even when they're [[#Repair|broken]] or [[enchanted]].

=== Flying ===
To fly, the player must press the {{ctrl|jump}} key while falling, and the elytra spread apart like a beetle's elytra. The player can aim their view around to turn or adjust their pitch. Losing altitude increases speed, and gaining altitude decreases speed. [[Firework rocket]]s can be used to increase speed. Additionally, speed is quickly lost from sharp changes in direction.

Directly hitting any surface while gliding too fast causes damage to the player and their armor proportional to flight speed (although this may be calculated from another factor). When a player dies in this way, they receive the [[death messages|death message]] "'''<player> experienced kinetic energy'''". The player does not take [[fall damage]] from colliding at a shallow angle or a low enough speed. The critical, damaging angle is about 50° with the collision surface, and the calculation for damage seems to be as if the player had fallen from their maximum potential glide height to the height of the struck surface. 

A safe and simple cruise with the highest travel distance can be achieved by aiming directly at the horizon while at the glide's altitude limit. The player's speed is slow enough to allow them time to do other things during a long flight, like sort out their inventory.

In [[Creative]] mode or when the "mayfly" [[ability]] has been given, the player can alternatively hold the {{ctrl|jump}} key to fly up,{{only|bedrock}} or double press the jump key to move around freely. 

Flight can be stopped by pressing the [[jump]] key.{{only|bedrock}} 

==== Speed and altitude ====
Elytra have a minimum speed of about 7.2 m/s (obtained by gliding at the altitude cap with a strong upward pitch of 30°). If the diver drops to 0 speed, they quickly get accelerated back up to at least this minimum. The diver can increase speed by choosing to descend faster, but afterward, they do not regain nearly as much altitude. In the real world, drag increases with speed, and drag, in turn, slows the aircraft; Minecraft mimics this. To glide from cliff to cliff, a player's best bet is to aim slightly above the horizon.

Sharp turns are a fast way to lose speed. Quicker turns cause greater losses, while gentle movements have small effects. Making a hairpin turn can actually be used for making high-speed landings safe as well as for precise landings on small targets like rooftops. The player aims to glide just above the target, then as they're right over it they immediately reverse directions, then they make readjustments as necessary.

The lowest rate of altitude loss is about 1.5 m/sec, obtained by gliding at the altitude cap with a slight upward pitch (12° or 15°).

To get the best possible glide ratio (and thus the furthest distance out of their altitude), the diver pilot should aim directly at the horizon. This ratio is about 9.47 to 1.

[[Slow Falling]] potions greatly decrease the player's vertical (fall) speed, which also greatly decreases their ''horizontal'' speed (clearly, it depends on the vertical fall rate, as one might expect from flight modeling). The net result is that the player flies extremely slowly - but their Elytra still takes durability damage at the usual rate (1 durability per second without Unbreaking, etc.). Due to this combination, Elytra plus Slow Falling is largely a novelty that most players won't use. The [[Feather Falling]] enchantment does not affect Elytra speed and does not reduce fall damage from hitting things with elytra.

It is possible to calculate the glide range by dividing the altitude by tan of the glide angle (altitude/tan(glide angle)). For example, if the player glides from an altitude of 64 blocks above ground with a glide angle of 15 degrees, they can glide for 237 blocks (assume that they are on superflat), since floor(64 / tan(15)) is 237.

==== Stalling ====
Trying for too high a pitch reduces the player's lift. At a pitch of 30° above the horizon, the player has the lowest possible airspeed of 7.2 m/sec. Above that, the player might be considered to be in a stall. Increasing the pitch gets closer to a free-fall, and stalled flight at 60° is enough to cause fall damage. Stalling at 90° is a true free-fall.

Recovering from a stall is done by readjusting to any safe pitch as quickly as the player likes. This can be just changing to look at the horizon.

==== Powered flight ====
{{fakeImage|{{invSprite|Firework Rocket}}|Firework rockets are used for speed boosts while gliding.}}

[[Firework rocket]]s can be used for propulsion during flight by placing it in either hand and {{ctrl|using}}. Using a firework rocket while gliding quickly maximizes the player's speed for a time similar to the rocket's flight duration.

If the rocket is equipped with [[firework star]]s, it explodes at the end of its flight, inflicting damage based on the number of stars.

It is possible to gain altitude during powered flight. This makes it possible to glide for extreme distances and had been used extensively by [[far lands]]/[[World Border]] challenges.

=== Durability and Repair ===
{{fakeImage|{{invSprite|Broken Elytra}}|A broken pair of elytra.}}

[[Durability]] decreases by one point each second when gliding. A pair of elytra has 432 durability, allowing 7 minutes and 12 seconds of gliding time without enchantments, providing more than 10,000 blocks of transport distance. It is possible to apply the [[Unbreaking]] enchantment using an [[anvil]] and an [[enchanted book]], which affects the elytra, in the same way it does to [[tool]]s. Unbreaking III increases elytra's flight time to about four seconds per durability point, a total of 28 minutes and 44 seconds.

When the durability reaches 1, elytra stop working until they are repaired, adopting a tattered texture in the inventory. The damage ends at durability 1, so they can never fully break. A pair may be repaired by either using the [[Mending]] enchantment, combining two pairs in a [[grindstone]], or combining it in an anvil with [[phantom membrane]]s. In an anvil, each piece of membrane repairs elytra by 108 durability points, requiring 4 pieces to fully repair them.

Each repair on the anvil will also increase the [[Anvil mechanics|prior work]] penalty for the Elytra, making every subsequent repair increasingly expensive, with an upper limit where repairs are no longer allowed because they are "too expensive". However, the prior work penalty can be reset to 0 for an enchanted elytra pair when it is disenchanted on a grindstone (by adding nothing to it). Unenchanted elytra cannot be used on the grindstone alone.

=== Enchantments ===
Elytra can receive the following [[enchantments]] by combining in an anvil:
{| class="wikitable sortable"
|-
! Enchantment 
! Max Level
![[Enchanting|Method]]
|-
| [[Unbreaking]]
| III
|{{Inventory slot|Anvil}}
|-
| [[Mending]]
| I
|{{Inventory slot|Anvil}}
|-
| [[Curse of Vanishing]] 
| I
|{{Inventory slot|Anvil}}
|-
| [[Curse of Binding]] 
| I
|{{Inventory slot|Anvil}}
|}
{{notelist|columns=1}}

== Sounds ==
{{edition|java}}:
{{Sound table
|sound=Equip leather1.ogg
|sound2=Equip leather2.ogg
|sound3=Equip leather3.ogg
|sound4=Equip leather4.ogg
|sound5=Equip leather5.ogg
|sound6=Equip leather6.ogg
|subtitle=Elytra rustles
|source=player
|description=When a pair of elytra is equipped
|id=item.armor.equip_elytra
|translationkey=subtitles.item.armor.equip_elytra
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Elytra loop.ogg
|subtitle=MC-177084
|source=player
|description=While flying with a pair of elytra
|id=item.elytra.flying
|translationkey=-
|volume=0.0-1.0 <ref group=sound>Is a quarter of the player's velocity. If flying for less than 1 second, it is 0.0; otherwise, if flying for less than 2 seconds, it is between 0.0 and a quarter of the player's velocity (scaling up with time until 2 seconds)</ref>
|pitch=1.0 <ref group=sound>If the volume is greater than 0.8, 0.8-volume is added to the pitch</ref>
|distance=16}}
{{Sound table
|sound=Random break.ogg
|subtitle=Item breaks
|source=dependent
|description=When a pair of elytra's durability is exhausted
|id=entity.item.break
|translationkey=subtitles.entity.item.break
|volume=0.8
|pitch=0.8-1.2
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Equip leather1.ogg
|sound2=Equip leather2.ogg
|sound3=Equip leather3.ogg
|sound4=Equip leather4.ogg
|sound5=Equip leather5.ogg
|sound6=Equip leather6.ogg
|source=player
|description=When a pair of elytra is equipped
|id=armor.equip_leather
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Elytra loop.ogg
|source=player
|description=While flying with a pair of elytra
|id=elytra.loop
|volume=''Depends'' {{checkthecode}}
|pitch=1.0}}
{{Sound table
|sound=Random break.ogg
|source=player
|description=When a pair of elytra's durability is exhausted
|id=random.break
|volume=1.0
|pitch=0.9
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Elytra
|spritetype=item
|nameid=elytra
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Elytra
|spritetype=item
|nameid=elytra
|id=564
|form=item
|foot=1}}

== Achievements ==
{{Load achievements|Super Sonic}}

== Advancements ==
{{load advancements|Sky's the Limit}}

== History ==
{{History|java}}
{{History||1.9|snap=October 5, 2015|slink=https://twitter.com/_tomcc/status/651042141397979136|[[Tommaso Checchi]] tweets that [[Jeb]] is working on a secret feature for Minecraft Java Edition, saying "it's like [[W:c:Mario:Super Mario 64|Mario 64]]."}}
{{History|||snap=October 6, 2015|slink=https://twitter.com/jeb_/status/651416814791081984|[[Jeb]] tweets a [https://web.archive.org/web/20230820173231/https://gfycat.com/serpentinehighlevelamurminnow-minecraftsuggestions-ethoslab animated GIF] revealing a [[player]] gliding around an [[end city]]. Elytra have a dragon-wing texture.}}
{{History|||snap=October 6, 2015|slink=https://twitter.com/jeb_/status/651419480187346944|Jeb tweets an [https://web.archive.org/web/20230219045525/https://i.imgur.com/LBgZCyW.png image] of folded wings, which replace the cape the player is wearing.}}
{{History|||snap=October 6, 2015|slink=https://twitter.com/jeb_/status/651423700777074688|Jeb tweets another [https://web.archive.org/web/20230820083025/https://gfycat.com/leadingindolentgangesdolphin animated GIF] of his character with Mojang-themed elytra, gliding along a [[river]] through a [[taiga]] forest.}}
{{History|||snap=15w41a|[[File:Elytra JE1 BE1.png|32px]] <br>[[File:Elytra (item) JE1 BE1.png|32px]] [[File:Broken Elytra (item) JE1 BE1.png|32px]] Added elytra.
|Elytra are currently repaired with [[leather]] when using [[anvil]].}}
{{History|||snap=15w42a|Elytra now spread slightly when the [[player]] crouches.
|The player can now take [[damage]] from gliding into walls, and crashing into a wall now has its own [[Health#Death messages|death message]].
|When flying with elytra, players are only 0.6 blocks tall. They, therefore, can now fit through 1-block gaps while gliding.
|The [[player]] can no longer go higher than the starting point of the glide.}}
{{History|||snap=15w43a|The player's point of view now shifts while gliding.}}
{{History|||snap=16w06a|Elytra now recognize the [[player]]'s [[cape]] and adopt a different elytron design for every official cape (see [[#Gallery|Gallery]]). In addition, Jeb is working on a feature to allow players to change the elytron design like regular player skins.}}
{{History|||snap=16w07a|Elytra are now activated by jumping mid-air. The player no longer glides automatically when falling.
|The cape option in the [[options|options menu]] now also disables custom elytra textures.
|Added the [[game rule]] {{cd|disableElytraMovementCheck}}.}}
{{History||1.9.1|snap=pre1|[[Sound]]s while gliding with elytra have been added.}}
{{History||1.11|snap=16w32a|Elytra can now be placed on [[armor stand]]s, just like any other [[chestplate]].}}
{{History|||snap=16w38a|Elytra are now visible on [[zombie]]s, [[skeleton]]s, and armor stands.}}
{{History|||snap=16w41a|Elytra now have their own [[sound]] when equipped.}}
{{History||1.11.1|snap=16w50a|Elytra can now be propelled through the [[air]] by using [[firework rocket]]s.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 443.}}
{{History|||snap=18w14a|Elytra now require [[phantom membrane]] to be repaired, instead of [[leather]].}}
{{History||1.14|snap=18w43a|[[File:Elytra JE2 BE2.png|32px]] <br>[[File:Elytra (item) JE2 BE2.png|32px]] [[File:Broken Elytra (item) JE2 BE2.png|32px]] The textures of the elytra have been changed.}}
{{History||1.15|snap=19w39a|The deployment animation of elytra causes [[player]] blinks when the deployment events has overlapped.}}
{{History|||snap=19w42a|The deployment and folding animations of elytra have been improved and become smoother.
|Elytra can now start to glide immediately after a jump, not only during falls.}}
{{History||1.18|snap=experimental snapshot 7|Elytra no longer use up durability when gliding regularly. Durability is now only consumed when a [[firework rocket]] is used.
|Speed boosts from firework rockets are slightly weaker.
|Now break when the item reaches 0 durability.}}
{{History|||snap=21w37a|The elytra changes in experimental snapshot 7 have been reverted.}}
{{History||1.19|snap=Pre-release 1|Equipping elytra through the inventory now plays a sound.<ref>{{bug|MC-94060||Equipping armor/elytra through inventory or dispenser doesn't play sounds|Fixed}}</ref>}}
{{History||1.19.4|snap=23w05a|Equipping elytra while held with an item already in the chestplate slot now swaps the two items.}}

{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|[[File:Elytra JE1 BE1.png|32px]] <br>[[File:Elytra (item) JE1 BE1.png|32px]] [[File:Broken Elytra (item) JE1 BE1.png|32px]] Added elytra. In-game, they are known as ''elytra wings''.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Elytra can now be propelled through the [[air]] by using [[firework rocket]]s.}}
{{History||1.2.3|snap=beta 1.2.3.3|''Elytra Wings'' have been renamed to ''Elytra''.}}
{{History||1.6.0|snap=beta 1.6.0.5|Elytra can now be repaired in an [[anvil]] using [[phantom membrane]], instead of [[leather]].}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Elytra JE2 BE2.png|32px]] <br>[[File:Elytra (item) JE2 BE2.png|32px]] [[File:Broken Elytra (item) JE2 BE2.png|32px]] The textures of elytra have been changed.}}

{{History|console}}
{{History||xbox=TU46|xbone=CU36|ps=1.38|wiiu=Patch 15|switch=1.0.1|[[File:Elytra JE1 BE1.png|32px]] <br>[[File:Elytra (item) JE1 BE1.png|32px]] [[File:Broken Elytra (item) JE1 BE1.png|32px]] Added elytra.}}
{{History||xbox=TU53|xbone=CU43|ps=1.49|wiiu=Patch 23|switch=1.0.3|Elytra can now be propelled through the [[air]] by using [[firework rocket]]s.}}
{{History||xbox=TU69|xbone=none|ps=1.76|wiiu=Patch 38|switch=none|Elytra are now repaired on the [[anvil]] using [[phantom membrane]] instead of [[leather]].}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Elytra JE2 BE2.png|32px]] <br>[[File:Elytra (item) JE2 BE2.png|32px]] [[File:Broken Elytra (item) JE2 BE2.png|32px]] The textures of elytra have been changed.}}

{{History|new 3ds}}
{{History||1.7.10|[[File:Elytra JE1 BE1.png|32px]] <br>[[File:Elytra (item) JE1 BE1.png|32px]] [[File:Broken Elytra (item) JE1 BE1.png|32px]] Added elytra.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* The singular form of elytra is an {{w|elytron}}.
* In reality, elytra are not used for flight. They are the tough forewings of beetles and earwigs that cover the wings they actually use for flight. However, like ''Minecraft'' elytra, in beetles they can be used for gliding.
* A flying player has a shorter hitbox than usual: A 0.6 block cube centered on the player's feet.
* It is possible to glide while on a [[ladder]], by pressing {{key|shift}} followed by {{key|space}}, causing the player to fall with a speed determined by the player's visual angle. This means that the player can descend fast on a ladder, but if the speed is too fast when hitting the ground, they can take fatal fall damage. Using a [[firework rocket]] can also speed up the player's descent. 
* {{IN|java}} if the player glides into deep [[water]] with elytra equipped, the animation does not stop, giving it the appearance of a [[swimming]] animation.<ref name="MC-97190">{{bug|MC-97190||While gliding into water or lava, player continues gliding|WAI}}</ref> The animation stops once the player touches the ground. Additionally, [[firework rocket]]s can be used with elytra underwater with a short boost duration.
* Elytra do not deactivate when the player flies into [[lava]].<ref name="MC-97190"/>
* Elytra can be equipped onto some [[mob]]s using [[command]]s. This has no effect unless the mob has the {{cd|FallFlying}} tag set to {{cd|1b}}. Mobs glide forward, unable to control the movement before landing, at which time they regain their AI. 
** Exceptions to this are [[squid]]s as the squid's AI causes it to attempt swimming in midair, making it fall straight down because it conflicts with the elytra mechanics.
**Because [[chicken]]s fall slowly, they can move more distance.
** [[Enderman|Endermen]], tamed [[wolf|wolves]] and tamed [[cat]]s that are not sitting cannot teleport until they hit the ground.
** Because mobs do not regain control until they hit the ground, [[vex]]es fall until they die or despawn as they cannot touch the ground. 
** Mobs capable of flying, such as [[parrot]]s or vexes can steer in air, though they cannot travel up or down. Dolphins also have this ability.
* [[4J Studios]] created an elytron-centered tutorial map for console edition when elytra were first introduced to this platform, this map is themed as "ruins of an ancient civilization of ''[[Minecraft]]'' worshipers" and showcases the new amplified terrain generation. This map can be seen behind the scenes.<ref>{{Mcnet|learning-fly|Learning To Fly}}</ref> On 28 March 2017, 4J Studios added an elytron-themed [[Mini Games]] for console edition called "Glide;" it consists of Time Attack and Score Attack mode.<ref>{{Mcnet|glide-mini-game-consoles-tomorrow|Glide Mini Game on Consoles Tomorrow|March 23, 2017}}</ref><ref>{{Mcnet|mini-game-masters-glide-console|Mini Game Masters Glide onto Console|March 28, 2017}}</ref>
* A player who jumps with both elytra and the [[Slow Falling]] effect travels slightly upward, which is a cheap but time-consuming alternative to [[fireworks]] and [[Riptide]]-enchanted [[trident]]s.
* On May 5, 2019, [[Mojang]] tweeted '[[The End]] never yields enough adequate resources, sadly,' along with a sad emoji.<ref>{{tweet|Minecraft|1125053038757068802|The End never yields enough adequate resources, sadly. 😔}}</ref> The first letter of each word spells 'T E n y e a r s' (Ten Years). Attached was a picture of [[player|Steve and Alex]] wearing both a [[chestplate]] and elytra. The next day, they tweeted, "Have you noticed something ''suspic10us'' here lately?"<ref>{{tweet|Minecraft|1125415169495064576|Have you noticed something suspic10us here lately?}}</ref>
* Mojang has considered the suggestion of combining elytra with a chestplate, but eventually decided against it, stating that elytra taking up armor is an intentional decision of game balancing.<ref>
{{cite
|url=https://feedback.minecraft.net/hc/en-us/articles/360005029872-Previously-Considered-Suggestions
| title = Part of the tradeoff of having an Elytra is it takes up half your armor.
|website=Minecraft Feedback
|date=July 12, 2018}}
</ref>

== Gallery ==
<gallery>
ElytraFlight.gif|The first image of elytra, tweeted by [[Jeb]]. Click to play.
FoldedWings.png|Folded elytra, which resembles the [[cape]] the user is wearing.
Minecon2015Alternative.png|The minecon 2015 cape elytra.
Dinnerbone Elytra.png|[[Dinnerbone]] flying upside down.
ElytraEnd.png|Elytra in an [[end ship]].
PlayerElytraBack.png|A [[player]] wearing elytra.
PlayerElytraFront.png|A player using elytra.
Broken Elytra.png|Elytra with only 1 [[item durability|durability]].
UpcomingElytras.jpg|Elytra designs fitting to the official capes, posted by Jeb on {{w|Reddit}}.
FlyBlock.png|A player gliding while blocking with a [[shield]].
Suspic10us.jpg|An image of players using elytra.
Steve Gliding with Elytra.png|Steve gliding with elytra.
Alex Gliding with Elytra.png|Alex gliding with elytra.
Enchanted Elytra (item).gif|A pair of  enchanted elytra.
</gallery>

=== Console exclusive ===
<gallery>
Glide Score Cavern 2.png|Screenshot of Glide mini-games.
Glide Time Cavern 2.png|Another screenshot of Glide mini-games.
GLIDE Official.jpg|''Glide'' launch poster.
Elytra Tutorial Map.jpg|Official elytra themed tutorial map.
</gallery>(These maps can be found for a price on the Microsoft Store)

=== Designs when wearing capes ===
<blockquote>Designs that are not listed here have default elytron texture or don't have any.</blockquote><gallery>
File:Mojang employees Elytra.png|Old [[Mojang]] cape
File:Mojang employees 2015 Elytra.png|New Mojang cape
File:Mojang Studios employees 2021 Elytra.png|Mojang Studios cape
File:Crowdin Translator Elytra.png|[[Crowdin]] Translator cape
File:DannyBstyle's Elytra.png|dannyBstyle's cape
File:JulianClark's Elyrtra.png|JulianClark's cape
File:Millionth Customer Elytra.png|Millionth Customer cape
File:MINECON 2011 Attendees Elytra.png|[[MINECON 2011]] Attendees cape
File:MINECON 2012 Attendees Elytra.png|[[MINECON 2012]] Attendees cape
File:MINECON 2013 Attendees Elytra.png|[[MINECON 2013]] Attendees cape
File:MINECON 2015 Attendees Elytra.png|[[MINECON 2015]] Attendees cape
File:MINECON 2016 Attendees Elytra.png|[[MINECON 2016]] Attendees cape
File:MINECON LIVE 2019 Founder's Elytra.png|[[MINECON Live 2019]] Founder's cape
File:Mojira Moderator Elytra.png|[[bug tracker|Mojira]] Moderator cape
File:MrMessiah's Elytra.png|MrMessiah's cape
File:Prismarine Elytra.png|[[Prismarine]] cape
File:Realms Mapmaker Elytra.png|[[Realms]] mapmaker's cape
File:Cobalt Elytra.png|[[Cobalt (game)|Cobalt]] cape
File:Scrolls Elytra.png|[[Scrolls]] cape
File:Turtle Elytra.png|[[Turtle]] cape
File:PancapeElyR.png|Pancape cape
File:MSCapeElyR.png|Migrator cape
File:Gr8 Escape's elytra.png|Gr8_Escape's cape
File:Valentine Elytra.png|Valentine cape
File:Vanilla Cape Elytra JE.png|Vanilla cape{{only|java}}
File:Vanilla cape elytra BE.png|Vanilla cape{{only|bedrock}}
</gallery>

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--elytra Taking Inventory: Elytra] – Minecraft.net on December 14, 2019

{{Items}}

[[de:Elytren]]
[[es:Élitros]]
[[fr:Élytres]]
[[ja:エリトラ]]
[[ko:겉날개]]
[[nl:Dekschild]]
[[pl:Elytry]]
[[pt:Élitros]]
[[ru:Элитры]]
[[tr:Elitra]]
[[zh:鞘翅]]
[[Category:Non-renewable resources]]</li></ul>
beta 1.8.0.8Added /function.

See also

  • Tag – To run function in batch, every tick, or on server (re)load.

References

Advertisement