Bartering is an action the player can perform with piglins to obtain various items.
Mechanics
To barter with a piglin, a player either throws a gold ingot near the piglin or uses the gold ingot on it. The piglin takes the gold ingot and appears to examine it for six seconds in Java Edition or eight seconds in Bedrock Edition, after which the piglin tosses a random item to the player. Piglin brutes cannot be bartered with.
Piglins pick up many other items that are made of gold; however, ingots are the only items that piglins accept for bartering. Baby piglins are incapable of bartering and treat gold ingots like any other gold items.
Hitting a piglin causes it to "confiscate" the ingot; the piglin does not complete the barter. It cannot be bartered with again unless it puts another item in its inventory. This stored ingot is dropped upon death. Piglins who are killed in one hit before they finish examining always drop the ingot.
Bartering is controlled by the loot table minecraft:gameplay/piglin_bartering. If the gamerule mobGriefing is false, Piglins only barter when the player uses a gold ingot on them.
A piglin looking at a gold ingot.
Items bartered
The item the piglin throws may be one of the following:
| Bartering items in Java Edition | ||||
|---|---|---|---|---|
| Item given | Quantity | Chance | Weight | |
| Enchanted Book with Soul Speed (random level) | 1 | 5⁄459 (~1.09%) |
5 | |
| Iron Boots with Soul Speed (random level) | 1 | 8⁄459 (~1.74%) |
8 | |
| Splash Potion of Fire Resistance | 1 | |||
| Potion of Fire Resistance | 1 | |||
| Water Bottle | 1 | 10⁄459 (~2.18%) |
10 | |
| Iron Nugget | 10–36 | |||
| Ender Pearl | 2-4 | |||
| String | 3-9 | 20⁄459 (~4.36%) |
20 | |
| Nether Quartz | 5-12 | |||
| Obsidian | 1 | 40⁄459 (~8.71%) |
40 | |
| Crying Obsidian | 1–3 | |||
| Fire Charge | 1 | |||
| Leather | 2-4 | |||
| Soul Sand | 2-8 | |||
| Nether Brick | 2-8 | |||
| Spectral Arrow | 6-12 | |||
| Gravel | 8–16 | |||
| Blackstone | 8-16 | |||
| Bartering items in Bedrock Edition | ||||
|---|---|---|---|---|
| Item given | Quantity | Chance | Weight | |
| Netherite Hoe | 1 | 1⁄424 (~0.24%) |
1 | |
| Enchanted Book with Soul Speed (random level) | 1 | 5⁄423 (~1.18%) |
5 | |
| Iron Boots with Soul Speed (random level) | 1 | 8⁄423 (~1.89%) |
8 | |
| Iron Nugget | 9–36 | 10⁄423 (~2.36%) |
10 | |
| Splash Potion of Fire Resistance | 1 | |||
| Potion of Fire Resistance | 1 | |||
| Nether Quartz | 8–16 | 20⁄423 (~4.73%) |
20 | |
| Glowstone Dust | 5–12 | |||
| Magma Cream | 2–6 | |||
| Ender Pearl | 4–8 | |||
| String | 8–24 | |||
| Fire Charge | 1–5 | 40⁄423 (~9.46%) |
40 | |
| Gravel | 8–16 | |||
| Leather | 4–10 | |||
| Nether Bricks | 4–16 | |||
| Obsidian | 1 | |||
| Crying Obsidian | 1–3 | |||
| Soul Sand | 4–16 | |||
hi
History
| Java Edition | |||||
|---|---|---|---|---|---|
1.16{{Extension DPL}}<ul><li>[[Pumpkin Pie|Pumpkin Pie]]<br/>{{redirect|Pie|the other craftable dessert|Cake|the terrain features|Pile}}
{{Item
| title = Pumpkin Pie
| image = Pumpkin Pie.png
| renewable = Yes
| heals = {{hunger|8}}
| stackable = Yes (64)
}}
'''Pumpkin pie''' is a [[food]] item that can be eaten by the [[player]].
== Obtaining ==
{{see also
| Tutorials/Pumpkin and melon farming |title1= Pumpkin and melon farming
| Tutorials/Sugar Cane farming |title2= Sugar cane farming
| Tutorials/Egg farming |title3= Egg farming
}}
=== Crafting ===
{{Crafting
|Pumpkin
|Sugar
|Egg
|Output= Pumpkin Pie
|type=Foodstuff
}}
=== Trading ===
Apprentice-level farmer [[villager]]s have a 50%{{only|bedrock}} or {{frac|2|3}}{{only|java}} chance to sell 4 pumpkin pies for an emerald as part of their trades.
{{in|java}}, farmer villagers throw pumpkin pies at players under the [[Hero of the Village]] effect.
=== Natural generation ===
{{LootChestItem|pumpkin-pie}}
== Usage ==
=== Food ===
{{see also|Tutorials/Hunger management|title1=Hunger management}}
To eat pumpkin pie, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|8}} [[hunger]] and 4.8 [[:en:Hunger#Mechanics|saturation]].
=== Composting ===
Placing pumpkin pie into a [[composter]] raises the compost level by 1.
==Sounds==
{{Sound table/Entity/Food}}
== Advancements ==
{{load advancements|Husbandry;A Balanced Diet}}
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Pumpkin Pie
|spritetype=item
|nameid=pumpkin_pie
|form=item
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Pumpkin Pie
|spritetype=item
|nameid=pumpkin_pie
|id=284
|form=item
|foot=1}}
== Video ==
<div style="text-align:center">{{yt|IjeeTE117HM}}</div>
== History ==
{{History|java}}
{{History||September 11, 2012|link=http://twitter.com/jeb_/status/245503714167750656|The first screenshot of pumpkin pie was posted on [[Jens Bergensten|Jeb's]] Twitter.<ref>{{Tweet|jeb|245503714167750656}}</ref><ref>{{Tweet|jeb|245506498099298305}}</ref>}}
{{History||1.4.2|snap=12w37a|[[File:Pumpkin Pie JE1 BE1.png|32px]] Added pumpkin pies.}}
{{History||1.8|snap=14w02a|Pumpkin pie can now be [[trading|bought]] from farmer [[villager]]s, at 2–3 pumpkin pies for 1 [[emerald]].}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 400.}}
{{History||1.14|snap=18w43a|[[File:Pumpkin Pie JE2 BE2.png|32px]] The texture of pumpkin pie has been changed.}}
{{History|||snap=18w50a|Pumpkin pies now generate in chests in taiga [[village]] houses.}}
{{History|||snap=19w03a|Placing pumpkin pie into the new [[composter]] raises the compost level by 1.}}
{{History|||snap=19w13a|Farmer villagers now give pumpkin pies to players under the [[Hero of the Village]] effect.}}
{{History|pocket alpha}}
{{History||v0.8.0|snap=build 1|[[File:Pumpkin Pie JE1 BE1.png|32px]] Added pumpkin pie.}}
{{History||v0.12.1|snap=build 1|Pumpkin pie now restores [[hunger]] instead of [[health]].}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Pumpkin Pie JE2 BE2.png|32px]] The texture of pumpkin pie has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Pumpkin pie can now be found in [[taiga]] and [[snowy taiga]] [[village]] house [[chest]]s.
|Pumpkin pie can now be used to fill up [[composter]]s.}}
{{History|||snap=beta 1.11.0.4|Farmer [[villager]]s now have a 50% chance to [[trading|sell]] 4 pumpkin pies for an [[emerald]].}}
{{History|console}}
{{History||xbox=TU14|xbone=CU1|ps=1.04|wiiu=Patch 1|switch=1.0.1|[[File:Pumpkin Pie JE1 BE1.png|32px]] Added pumpkin pie.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Pumpkin Pie JE2 BE2.png|32px]] The texture of pumpkin pie has been changed.}}
{{History|New 3DS}}
{{History||0.1.0|[[File:Pumpkin Pie JE1 BE1.png|32px]] Added pumpkin pie.}}
{{History|foot}}
== Issues ==
{{issue list}}
== Gallery ==
<gallery>
File:Twitter Pumpkin Pie.png|The first screenshot of pumpkin pies, posted on Jeb's twitter.
</gallery>
== References ==
{{reflist}}
{{Items}}
[[cs:Dýňový koláč]]
[[de:Kürbiskuchen]]
[[es:Tarta de calabaza]]
[[fr:Tarte à la citrouille]]
[[it:Torta di zucca]]
[[ja:パンプキンパイ]]
[[ko:호박 파이]]
[[lzh:南瓜餅]]
[[nl:Pompoentaart]]
[[pl:Placek dyniowy]]
[[pt:Torta de abóbora]]
[[ru:Тыквенный пирог]]
[[zh:南瓜派]]
[[Category:Food]]
[[Category:Renewable resources]]</li><li>[[Golden Apple|Golden Apple]]<br/>{{Distinguish|Enchanted Golden Apple}}
{{Item
| image = Golden Apple.png
| rarity = Rare
| heals = {{hunger|4}}
|effects=: {{EffectLink|Absorption}} (2:00)
: {{EffectLink|Regeneration}} II (0:05)
|renewable = Yes
|stackable = Yes (64)
}}
A '''golden apple''' is a [[food]] item that bestows beneficial effects when consumed, and is also used to cure a [[Zombie Villager|zombie villager]] under the [[Weakness]] effect into a normal [[villager]].
== Obtaining ==
=== Crafting ===
{{Crafting
|A1= Gold Ingot
|B1= Gold Ingot
|C1= Gold Ingot
|A2= Gold Ingot
|B2= Apple
|C2= Gold Ingot
|A3= Gold Ingot
|B3= Gold Ingot
|C3= Gold Ingot
|Output= Golden Apple
|type= Foodstuff
}}
=== Chest loot ===
On the base of <code>ancient_city/city_center/city_center_2</code>, a single golden apple is contained in the [[chest]]. Eating it at that location unlocks the [[piston]] doors to the [[redstone]] labs beneath.
{{LootChestItem|golden-apple}}
== Usage ==
{{see also|Tutorials/Hunger management|title1=Hunger management}}
To eat a golden apple, press and hold {{control|use}} while it is selected in the hotbar. It restores {{hunger|4}} points of hunger and 9.6 hunger [[Hunger#Mechanics|saturation]].
Unlike most foods, golden apples can be eaten when the hunger bar is full.
The golden apple provides:
*[[Absorption]] I for 2 minutes (providing {{hp|4|absorption=1}} points of absorption health)
*[[Regeneration]] II ({{hp|1}} every 25 ticks, {{hp|2|notag=1}} × 0.4 per second) for 5 seconds (long enough to heal {{hp|4}} points of damage)
=== Curing zombie villagers ===
{{main|Zombie Villager#Curing}}
A golden apple and a [[potion of weakness]] can be used to convert a [[zombie villager]] into a regular [[villager]].
=== Horses ===
Golden apples can be used for improving the chances of taming a [[horse]] by 10%, for [[breeding]] and leading horses, and for speeding up the growth of baby horses by 4 minutes.
===Piglins===
{{EntityLink|Piglin|Piglins}} are attracted to golden apples. They run toward any golden apples on the ground, and inspect it for 6 to 8 seconds before putting it in their inventory. However, piglins do not eat golden apples (or any [[food]]).
== Sounds ==
{{Sound table/Entity/Food}}
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Golden Apple
|spritetype=item
|nameid=golden_apple
|form=item
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Golden Apple
|spritetype=item
|nameid=golden_apple
|id=258
|form=item
|foot=1}}
== Achievements ==
{{load achievements|Zombie Doctor;Oooh, shiny!}}
== Advancements ==
{{load advancements|Zombie Doctor;Oh Shiny;A Furious Cocktail;How Did We Get Here;Husbandry;A Balanced Diet}}
== History ==
{{History|java infdev}}
{{History||February 23, 2010|link=http://www.minecraftforum.net/topic/2750582-the-secret-history-of-minecraft/|A [[player]] named JTE put a [[crafting]] recipe for golden apples as a joke at the bottom of a crafting guide she made. The recipe used [[gold ingot]]s instead of [[block of gold|gold blocks]].}}
{{History||20100227-1|[[File:Golden Apple JE1 BE1.png|32px]] Added golden apples.
|Golden apples heal a full {{hp|20}} [[health]] points, making them the best [[food]] in the entire game.
|Golden apples are [[crafting|crafted]] with an [[apple]] and eight [[gold block|blocks of gold]].
|However, since apples were not yet obtainable in normal gameplay, golden apples were not obtainable either.}}
{{History||20100625-2|Golden apples can now be rarely found in [[dungeon]]s, making them obtainable in normal gameplay.}}
{{History|java beta}}
{{History||1.8|snap=Pre-release|Due to the addition of [[hunger]], golden apples have been changed so that they restore {{hunger|10}}, instead of {{hp|20}} [[health]] points, but also give [[Regeneration]] for 30 seconds.
|[[Apple]]s can now be found in [[stronghold]] storeroom [[chest]]s, making golden apples craftable in normal gameplay for the first time.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|Golden apples have been given 'glint' (animated purple glow) when viewed from the [[player]]'s [[inventory]], and its tooltip has now changed from the standard white to a magenta color.}}
{{History|||snap=Beta 1.9 Prerelease 3|Golden apples can now be found in the new [[stronghold]] altar [[chest]]s.}}
{{History||1.1|snap=11w48a|Golden apples are now easier to [[crafting|craft]]. Standard [[apple]]s now rarely [[drops|drop]] from oak [[leaves]], meaning that [[player]]s no longer need to venture into [[stronghold]]s/[[dungeon]]s to find one.
|As [[gold]] is also renewable via [[Zombified Piglin|zombie pigmen]], golden apples have become a [[renewable resource]].}}
{{History|||snap=release|Golden apples have been changed, so that they now restore {{hunger|4}} and give only 4 seconds of [[Regeneration]].
|The [[crafting]] recipe of golden apples has been modified, requiring 8 [[gold nugget]]s instead of 8 [[blocks of gold]] to craft. Although its natural spawn is rare, it is easier to obtain through crafting.}}
{{History||1.3.1|snap=12w21a|With the addition of [[enchanted golden apple]]s, which got a purple tooltip, the standard golden apple's tooltip changed to blue. However, the standard golden apple's effects remain unchanged.}}
{{History||1.4.2|snap=12w32a|Golden apples can now be fed to [[zombie villager]]s with the [[Weakness]] debuff causing them to revert to [[villager]]s after a delay of about 3 minutes.}}
{{History||1.6.1|snap=13w23a|Golden apples now use 8 [[gold ingot]]s instead of 8 [[gold nugget]]s.
|The [[Regeneration]] effect of golden apples has been slowed down.}}
{{History|||snap=13w23b|Golden apples now give the player [[Health Boost]] for 1:30 and [[Regeneration]] II for 0:10. This temporarily gives the [[player]] 4 extra base [[health]] points, and it heals a total of {{hp|4}} health points.}}
{{History|||snap=13w24b|The Health Boost effect has been replaced with [[Absorption]], lasting 1:30.}}
{{History|||snap=13w25a|Absorption from golden apples now lasts 2:00.}}
{{History|||snap=?|Golden apples can now be used to tame, breed and heal horses and donkeys.}}
{{History||1.9|snap=15w37a|The [[Regeneration]] effect from golden apples has been reduced to Regeneration I (from II in [[Java Edition 1.8]]).}}
{{History|||snap=15w43a|A single golden apple can now sometimes be found in [[igloo]] [[chest]]s.}}
{{History|||snap=15w43b|A single golden apple is now always found in igloo chests.}}
{{History|||snap=15w44a|The [[Regeneration]] effect from golden apples has been returned to Regeneration II, as it had been in [[Java Edition 1.8|1.8]].
|The average yield of golden apples from [[dungeon]] chests has been increased.
|Golden apples have been added to [[desert temple]] and [[mineshaft]] chests.}}
{{History||1.11|snap=16w39a|Golden apples are now found in the new [[woodland mansion]] chests.}}
{{History||1.13|snap=17w47a|The names and IDs have been split into golden apple and enchanted golden apple.
|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 322.}}
{{History|||snap=18w09a|Golden apples can now generate in the [[chest]]s of [[underwater ruins]].}}
{{History||1.14|snap=18w43a|[[File:Golden Apple JE2 BE2.png|32px]] The texture for golden apples has been changed.}}
{{History||1.16|snap=20w16a|Golden apples can now be found inside [[ruined portal]] chests.}}
{{History|||snap=20w18a|Golden apples are now less common in ruined portal [[chest]]s.}}
{{History||1.16.2|snap=20w30a|Golden apples are now found in [[bastion remnant]] chests.}}
{{History||1.18|snap=experimental snapshot 6|Horses, donkeys and mules now follow players holding golden apples.}}
{{History||1.19|snap=22w14a|A single golden apple may now be found in the chest at {{cd|city_center_2}} in [[Ancient City|ancient cities]].}}
{{History|pocket alpha}}
{{History||v0.12.1|snap=build 1|[[File:Golden Apple JE1 BE1.png|32px]] Added golden apples.}}
{{History|||snap=build 3|A [[crafting]] recipe has been added for golden apples.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.20.1|Golden apples can now generate in the [[chest]]s of [[underwater ruins]].}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Golden Apple JE2 BE2.png|32px]] The texture for golden apples has been changed.}}
{{History||1.16.0|snap=beta 1.16.0.57|Golden apples can now be found inside [[ruined portal]] chests.}}
{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Golden Apple JE1 BE1.png|32px]] Added golden apples.}}
{{History||xbox=TU5|Due to the addition of [[hunger]], golden apples have been changed, so that they restore {{hunger|10}} instead of {{hp|20}} health points, but also give [[Regeneration]] for 30 seconds.}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|Golden apples now give extra "[[Absorption]]" health for a short period.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Golden Apple JE2 BE2.png|32px]] The texture for golden apples has been changed.}}
{{History|New 3DS}}
{{History||0.1.0|[[File:Golden Apple JE1 BE1.png|32px]] Added golden apples.}}
{{History|foot}}
== Issues ==
{{issue list}}
== Trivia ==
Prior to [[Java Edition Beta 1.8]], the golden apple outwardly restored the player's full {{hp|20}} health points; Internally however, it is set to restore over double that, at {{hp|42}} health points. This is most likely a reference to [https://en.wikipedia.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy The Hitchhiker's Guide to the Galaxy], making it restore (the meaning of) life, 42 (health points). This is far before either the [[Absorption]] or [[Health Boost]] effects, causing this reference go unnoticed.
== Gallery ==
<gallery>
File:GoldenAppleComparison.png|A comparison of the two golden apple variations.
File:Golden apple in dungen 2013.png|A golden apple found in a dungeon.
File:Notch Apple In Mansion Chest.png|An extremely rare occasion where a regular golden apple and an enchanted apple being found in the same woodland mansion chest {{in|ee}}.
File:GoldenAppleDungeonChest.png|Golden apple in a [[dungeon]] chest, prior to 1.3.1. It resembles the enchanted golden apple.
File:Golden Apple Mineshaft Loot.png|A golden apple was found in a minecart chest in an abandoned mineshaft.
</gallery>
{{Items}}
[[Category:Renewable resources]]
[[Category:Food]]
[[cs:Zlaté jablko]]
[[de:Goldener Apfel]]
[[es:Manzana dorada]]
[[fr:Pomme dorée]]
[[hu:Aranyalma]]
[[it:Mela d'oro]]
[[ja:金のリンゴ]]
[[ko:황금 사과]]
[[nl:Gouden appel]]
[[pl:Złote jabłko]]
[[pt:Maçã dourada]]
[[ru:Золотое яблоко]]
[[th:แอปเปิ้ลทอง]]
[[tr:Altın Elma]]
[[uk:Золоте яблуко]]
[[zh:金苹果]]</li></ul> | 20w07a | Added bartering. | |||
| 20w09a | Soul sand, mushrooms, crimson fungi, flint, rotten flesh, and raw porkchops have been removed from the possible barters. | ||||
| Crying obsidian, string, Fire Resistance potions and splash potions, and netherite hoes have been added to the possible barters. | |||||
| Barter chances have been tweaked. | |||||
| Due to a bug, all barters give stacks of 1–5 items.[1] | |||||
| 20w10a | Barters now give the correct amounts of items. | ||||
| Warped nylium, warped fungus, and shroomlights have been removed from the possible barters. | |||||
| Iron nuggets and soul sand have been added to the possible barters. | |||||
| Barter chances have been tweaked. | |||||
| 20w11a | Enchanted books and iron boots with Soul Speed have been added to the possible barters. | ||||
| 20w13a | Items enchanted with Soul Speed are now slightly more common. | ||||
| 20w20a | Netherite hoes can no longer be obtained through bartering. | ||||
1.16.2{{Extension DPL}}<ul><li>[[Knowledge Book|Knowledge Book]]<br/>{{exclusive|java}}
{{Item
| image = Knowledge Book.png
| renewable = No
| stackable = No
| rarity = Epic
}}
A '''knowledge book''' is a utility item that reveals available [[crafting]] recipes to the player when {{control|used|use}}.
== Obtaining ==
Knowledge books can be obtained only by using [[commands]], as it is not found in the [[creative]] inventory; therefore, it is impossible to obtain in other modes such as [[survival]] and [[adventure]] except with commands.
For example, to give oneself a knowledge book that reveals the recipes for [[bucket]]s and [[flower pot]]s, use: {{cmd|give @s minecraft:knowledge_book{Recipes:["minecraft:bucket", "minecraft:flower_pot"]} }}.
== Usage ==
Knowledge books are used to reveal recipes to the player who uses it, by adding it to their [[recipe book]]. Using a knowledge book consumes it, removing it from the player's inventory.
Knowledge books are especially useful to mapmakers in conjunction with {{cmd|gamerule doLimitedCrafting true}}, because then any item is craftable only if its recipe is unlocked first.
== Sounds ==
{{Sound table
|sound=Chiseled bookshelf insert1.ogg
|sound2=Chiseled bookshelf insert2.ogg
|sound3=Chiseled bookshelf insert3.ogg
|sound4=Chiseled bookshelf insert4.ogg
|subtitle=Book placed
|source=block
|description=When a knowledge book is placed in a chiseled bookshelf
|id=block.chiseled_bookshelf.insert
|translationkey=subtitles.chiseled_bookshelf.insert
|volume=0.8
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.85, or 1.1 for each sound</ref>
|distance=16}}
{{Sound table
|sound=Chiseled bookshelf pickup1.ogg
|sound2=Chiseled bookshelf pickup2.ogg
|sound3=Chiseled bookshelf pickup3.ogg
|subtitle=Book taken
|source=block
|description=When a knowledge book is removed from a chiseled bookshelf
|id=block.chiseled_bookshelf.pickup
|translationkey=subtitles.chiseled_bookshelf.take
|volume=0.8
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.8, or 1.1 for each sound</ref>
|distance=16
|foot=1}}
== Data values ==
=== ID ===
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Knowledge Book
|spritetype=item
|nameid=knowledge_book
|form=item
|foot=1}}
=== Item data ===
Recipe books use the NBT tag <code>Recipes</code> to indicate the recipes they contain.
''The following NBT structure is provided to show how the <code>Recipes</code> tag is organized, and is not comprehensive above the <code>tag</code> tag. The full NBT for an item can be found [[Chunk format#Items and XP Orbs|here]].''
<div class="treeview" style="margin-top: 0;">
* {{nbt|compound}} Entity data
** {{nbt|compound|Item}}: The item
*** {{nbt|compound|tag}}: Additional information about the item. This tag is optional for most items.
**** {{nbt|list|Recipes}}: The list of recipes this book contains.
***** {{nbt|string}} the name of a recipe, for instance <code>minecraft:gold_nugget</code> or <code>minecraft:gold_ingot_from_nuggets</code>
</div>
== History ==
{{History|java}}
{{History||1.12|snap=17w13a|[[File:Knowledge Book JE1.png|32px]] Added knowledge books.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 453.}}
{{History||1.14|snap=18w43a|[[File:Knowledge Book JE2.png|32px]] The texture of knowledge books has now been changed.}}
{{History||1.20|snap=1.20 Release Candidate 1|Knowledge books can now be placed in [[chiseled bookshelf|chiseled bookshelves]].}}
{{History|Foot}}
== Issues ==
{{Issue list}}
== See also ==
* [[Book]]
* [[Enchanted Book]]
* {{cmd|recipe}} command
{{Items}}
[[Category:Non-renewable resources]]
[[de:Buch des Wissens]]
[[es:Enciclopedia]]
[[fr:Livre des connaissances]]
[[ja:知恵の本]]
[[ko:지식의 책]]
[[lzh:天工開物]]
[[pl:Księga wiedzy]]
[[pt:Enciclopédia]]
[[ru:Книга знаний]]
[[zh:知识之书]]</li><li>[[:Category:Food|Category:Food]]<br/>Foods in Minecraft.
[[Category:Items]]
[[cs:Kategorie:Potraviny]]
[[fr:Catégorie:Nourriture]]
[[hu:Kategória:Ételek]]
[[zh:Category:食物]]</li></ul> | 20w28a | Water bottles, spectral arrows, and blackstone have been added to the possible barters. | |||
| Magma cream and glowstone dust have been removed from the possible barters. | |||||
| Barter chances have been tweaked. | |||||
| Many barters give fewer items. | |||||
| Bedrock Edition | |||||
1.16.0{{Extension DPL}}<ul><li>[[Sugar|Sugar]]<br/>{{Item
| image = Sugar.png
| renewable = Yes
| stackable = Yes (64)
}}
'''Sugar''' is a [[food]] ingredient and [[brewing]] ingredient made from [[sugar canes]].
== Obtaining ==
=== Mob loot ===
[[Witch]]es have a chance of dropping 0–2 sugar upon death. This is increased by 1 per level of [[Looting]], for a maximum of 0–5 sugar.
=== Crafting ===
{{Crafting
|head= 1
|Sugar Cane
|Output= Sugar
|type= Material
}}
{{Crafting
|Honey Bottle
|Output= Sugar, 3
|type= Material
|foot= 1
}}
=== Compound creation ===
Sugar can be created from its base [[element]]s, using the [[compound creator]].{{only|bedrock|education}}
{| class="wikitable"
!Name
!Elements
!Example recipe
|- <!-- Temporarily using crafting grid as a substitute for the compound creator (template not yet available), since the layout is the same, even if the appearance is different -->
!Sugar
|6 Carbon<br>12 Hydrogen<br>6 Oxygen
|{{Crafting Table
|shapeless= 1
|A2=Carbon,6 |B2=Hydrogen,12 |C2=Oxygen,6
|Output=Sugar}}
|}
== Usage ==
=== Crafting ingredient ===
{{crafting usage}}
=== Brewing ingredient ===
{{Brewing
|head=1
|Sugar
|Mundane Potion
|base=Water Bottle
}}
{{brewing
|foot=1
|showname=1
|Sugar
|Potion of Swiftness
}}
=== Horses ===
Sugar can be fed to [[horse]]s to heal {{hp|1}}, speed growth by 30 seconds, and increase taming probability by 3%.
== Achievements ==
{{load achievements|The Lie}}
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Sugar
|spritetype=item
|nameid=sugar
|form=item
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|notshowbeitemforms=y
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Sugar
|spritetype=item
|nameid=sugar
|id=416
|form=item
|foot=1}}
== Video ==
<div style="text-align:center">{{yt|DnMFkmC7BxE}}</div>
== History ==
{{History|java beta}}
{{History||1.2|[[File:Sugar JE1 BE1.png|32px]] Sugar has been introduced as an ingredient for [[cake]].}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|Sugar is now used to craft [[fermented spider eye]]s.}}
{{History|||snap=Beta 1.9 Prerelease 3|Sugar can now be [[brewing|brewed]] in a [[water bottle]] to create a [[Mundane Potion]], or in an [[Awkward Potion]] to create a [[Potion of Swiftness]].}}
{{History||1.4.2|snap=12w37a|Sugar is now used to make [[pumpkin pie]].}}
{{History|||snap=12w38b|[[Witch]]es can now [[drops|drop]] sugar.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 353.}}
{{History||1.14|snap=18w43a|[[File:Sugar JE2 BE2.png|32px]] The texture of sugar has been changed.}}
{{History||1.15|snap=19w34a|Sugar can now can be created using 1 [[honey bottle]].}}
{{History|pocket alpha}}
{{History||v0.2.0|[[File:Sugar JE1 BE1.png|32px]] Added sugar. It is currently unobtainable and serves no purpose.}}
{{History||v0.3.0|Sugar is now [[craft]]able using [[sugar cane]].}}
{{History||v0.7.0|Sugar is now used to craft [[cake]].}}
{{History||v0.8.0|snap=build 1|Sugar is now used to craft [[pumpkin pie]].}}
{{History||v0.12.1|snap=build 1|Sugar has been added to the [[creative]] [[inventory]].|Sugar is now used to craft [[fermented spider eye]]s.
|Sugar can now be used for [[brewing]], to get mundane [[potion]]s and potions of [[Swiftness]].}}
{{History||v0.14.0|snap=build 1|Added [[witch]]es, which can [[drops|drop]] sugar upon [[death]].}}
{{History||v0.15.0|snap=build 1|Sugar can now be used to feed [[horse]]s, which can increase their temper, heal them, and speed up the growth of foals.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.20.1|Sugar can now be created using 6 Carbon, 12 Hydrogen, and 6 Oxygen in the [[compound creator]].}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Sugar JE2 BE2.png|32px]] The texture of sugar has been changed.}}
{{History||1.14.0|snap=beta 1.14.0.1|Sugar can now be created using 1 [[honey bottle]].}}
{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Sugar JE1 BE1.png|32px]] Added sugar.
|Sugar is used to craft [[cake]].}}
{{History||xbox=TU7|Sugar is now used to craft [[fermented spider eye]]s.|Sugar can now be [[brewing|brewed]] in a [[water bottle]] to create a [[Mundane Potion]], or in an [[Awkward Potion]] to create a [[Potion of Swiftness]].}}
{{History||xbox=TU14|ps=1.04|Sugar is now used to make [[pumpkin pie]].}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[Witch]]es can now [[drops|drop]] sugar.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Sugar JE2 BE2.png|32px]] The texture of sugar has been changed.}}
{{History|New 3DS}}
{{History||0.1.0|[[File:Sugar JE1 BE1.png|32px]] Added sugar.}}
{{History|foot}}
== Issues ==
{{issue list}}
== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--sugar Taking Inventory: Sugar] – Minecraft.net on January 27, 2022
{{Items}}
[[cs:Cukr]]
[[de:Zucker]]
[[es:Azúcar]]
[[fr:Sucre]]
[[hu:Cukor]]
[[it:Zucchero]]
[[ja:砂糖]]
[[ko:설탕]]
[[nl:Suiker]]
[[pl:Cukier]]
[[pt:Açúcar]]
[[ru:Сахар]]
[[th:น้ำตาล]]
[[uk:Цукор]]
[[zh:糖]]
[[Category:Renewable resources]]
[[Category:Brewing recipe]]</li><li>[[Firework Star|Firework Star]]<br/>{{Item
| image = Firework Star.png
| renewable =
* '''Trail Effect''': No
* '''All Others''': Yes
| stackable = Yes (64)
}}
'''Firework stars''' are [[items]] used to determine the color, effect, and shape of [[firework rocket]]s.
== Obtaining ==
In [[Survival]] mode, firework stars are obtainable only through crafting. In [[Creative]] mode, they can be found in the creative inventory.
=== Crafting ===
{{Crafting
|head=1
|showname=0
|showdescription=1
|ingredients=[[Gunpowder]] +<br>Matching [[Dye]] +<br>Extra ingredients (optional)
|Gunpowder
|Matching Dye
|Head; Gold Nugget; Feather;Fire Charge;
|Glowstone Dust;
|Diamond;
|Output=Matching Firework Star
|arggroups=1;2,Output;3;4;5
|description=Up to eight dyes can be added.<br>One head, gold nugget, feather, or fire charge can be added.<br>Both the diamond and the glowstone dust can be added with any of the other ingredients.
|type=Miscellaneous
}}
{{Crafting
|ignoreusage=1
|Matching Firework Star
|Any Dye
|Output=Matching Firework Star
|type=Miscellaneous
|description=Adds a "fade to color" effect to the firework star, overwriting any existing fades.<br>Up to eight dyes can be added.
|foot=1
|arggroups=1,Output
}}
<div style="display:none">
<!--
This is so the pre-Village & Pillage dyes can have dye-related crafting recipes show on their respective pages.
They don't need to be displayed on this page because they already intuitively list "Any Matching/Colored Dye".
-->
{{Crafting
|head=1
|showname=0
|showdescription=1
|Gunpowder
|Bone Meal; Lapis Lazuli; Cocoa Beans; Ink Sac
|Head; Gold Nugget; Feather;Fire Charge;
|Glowstone Dust;
|Diamond;
|Output=White Firework Star; Blue Firework Star; Brown Firework Star; Black Firework Star
|arggroups=1;2,Output;3;4;5
|description={{only|bedrock|education}}<br>Up to eight dyes can be added.<br>One head, gold nugget, feather, or fire charge can be added.<br>Both the diamond and the glowstone dust can be added with any of the other ingredients.
|type=Miscellaneous
}}
{{Crafting
|showdescription=1
|White Firework Star; Blue Firework Star; Brown Firework Star; Black Firework Star
|Bone Meal; Lapis Lazuli; Cocoa Beans; Ink Sac
|Output=White Firework Star; Blue Firework Star; Brown Firework Star; Black Firework Star
|type=Decoration block
|description={{only|bedrock|education}}<br>Adds a "fade to color" effect to the firework star, overwriting any existing fades.<br>Up to eight dyes can be added.
|foot=1
}}
</div>
== Usage ==
The only usage of firework stars is to create [[firework rocket]]s.
=== Crafting ingredient ===
{{crafting usage|match=end}}
== Effects ==
=== Shape effects ===
A firework star can have only one shape effect.
{| class="wikitable"
|+ Shape Effects
! <abbr title="Type (Byte tag in NBT structure)">Type</abbr>
! Ingredient
! Effect
! Sample Animation
|-
| 0
| None
| Small Ball explosion (default)
| [[File:Firework Star (Small Sphere).gif|200px]]
|-
| 1
| {{ItemLink|Fire Charge}}
| Large Ball explosion and heavy sound.
| [[File:Firework Star (Large Sphere).gif|200px]]
|-
| 2
| {{ItemLink|Gold Nugget}}
| Star-shaped explosion
| [[File:Firework Star (Star Shape).gif|200px]]
|-
| 3
| {{BlockLink|id=Heads|Head}} (any)
| Creeper-shaped (Creeper Face) explosion
| [[File:Firework Star (Creeper Shape).gif|200px]]
|-
| 4
| {{ItemLink|Feather}}
| Burst explosion
| [[File:Firework Star (Burst).gif|200px]]
|}
=== Additional effects ===
In addition to the shape effects, any combination of these additional effects may be added to a firework star.
{| class="wikitable"
|+ Additional Effects
! Ingredient
! Effect
! Sample Animation
|-
| None
| Default
| [[File:Firework Star (Small Sphere).gif|200px]]
|-
| {{ItemLink|Glowstone Dust}}
| Twinkle (Crackle effect and sounds after the explosion)
| [[File:Firework Star (Twinkle effect).gif|200px]]
|-
| {{ItemLink|Diamond}}
| Trail effect after the explosion
| [[File:Firework Star (Trail effect).gif|200px]]
|-
| {{ItemLink|Glowstone Dust}} <br> {{ItemLink|Diamond}}
| Twinkle + Trail effect after the explosion
| [[File:Firework Star (Twinkle and Trail effect).gif|200px]]
|}
== Sounds ==
{{see also|Firework_Rocket#Sounds}}
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Firework Star
|spritetype=item
|nameid=firework_star
|form=item
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Firework Star
|spritetype=item
|nameid=firework_star
|aliasid=fireworkscharge
|id=520
|form=item
|translationkey=item.fireworksCharge.name
|foot=1}}
=== Item data ===
{{el|java}}:
{{main|Player.dat format}}
<div class="treeview">
* {{nbt|compound|tag}}: The item's '''tag''' tag.
{{:Player.dat_format/Firework Stars}}
</div>
{{el|bedrock}}:
: See [[Bedrock Edition level format/Item format]].
== Video ==
<div style="text-align:center">{{yt|fYL1W9aW0UU}}</div>
== History ==
{{History|java}}
{{History||1.4.6|snap=12w49a|[[File:Firework Star JE1 BE1.png|32px]] Added firework stars.
|Firework stars in the [[Creative inventory]] come in only one variation; they do not have any color.}}
{{History||1.13|snap=17w47a|The ID of firework stars has now been changed from <code>firework_charge</code> to <code>firework_star</code>.
|Prior to [[Java Edition 1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 402.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|[[File:Firework Star JE1 BE1.png|32px]] Added firework stars.
|Firework stars come in all 16 colors in the [[Creative]] [[inventory]].{{verify|type=update}}{{info needed}}}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of firework star has been changed from <code>fireworkscharge</code> to <code>firework_star</code>.}}
{{History|console}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Firework Star JE1 BE1.png|32px]] Added firework stars.
|Firework stars cannot be obtained within the Creative inventory.}}
{{History||xbox=TU46|xbone=CU36|ps=1.38|wiiu=Patch 15|The [[crafting]] interface has now been updated to allow the crafting of firework stars and [[firework rocket]]s.}}
{{History|foot}}
== Issues ==
{{Issue list}}
== Trivia ==
* There are 29,617,272,422,916,505,236 (29.6 quintillion) unique firework stars.
* Putting firework stars on rockets causes the player to take explosion damage when using them for flying with [[elytra]].
== Gallery ==
<gallery>
File:Firework Star (Tricolor Star shaped with Twinkle and Trail effect).gif|Tricolor (Magenta, Pink, White dye) + Star shaped with Twinkle and Trail effect.
</gallery>
{{Items}}
[[cs:Ohňostrojová hvězda]]
[[de:Feuerwerksstern]]
[[es:Estrella de fuegos artificiales]]
[[fr:Étoile de feu d'artifice]]
[[hu:Tűzijáték csillag]]
[[it:Stella pirotecnica]]
[[ja:花火の星]]
[[ko:폭죽 탄약]]
[[nl:Vuurwerkster]]
[[pl:Gwiazdka pirotechniczna]]
[[pt:Estrela de fogo de artifício]]
[[ru:Пиротехническая звезда]]
[[uk:Зірка феєрверку]]
[[zh:烟火之星]]</li></ul> | beta 1.16.0.51 | Added bartering. | |||
| beta 1.16.0.57 | Updated the loot table to match Java Editon. Previously, right-clicking the piglin would give the player obsidian or flint and steel, while dropping gold onto the ground would result in a Nether wart block | ||||
| Piglins now "inspect" the gold ingot before giving the player an item, as opposed to giving the item instantly. | |||||
See also
Issues
Issues relating to "Bartering" are maintained on the bug tracker. Report issues there.