Minecraft Wiki
Advertisement

Template:BlockTileEntity

The Command Block is a block made with the intent to support the Adventure mode and will allow mapmakers to expand the interaction with the player through server commands. The block can run specified server commands when activated by a redstone current. Considering its great power and possibilities, it can't be normally crafted. Currently, it is not available in the creative mode inventory either. Only players with sufficient privileges to use the 'give' command: /give <player_name> 137 can obtain the block. Furthermore, only players, which are in the Creative mode and are also an Operator on the server, are able to edit and successfully save the command of the block. To be able to use this block in Multiplayer, you have to set the value of enable-command-block to true in the server.properties file. If this line doesn't exist, you'll have to add it. When you are in survival, you can break the command block with a single click, but it doesn't drop anything. They can't be pushed by pistons, as they have tile entities. The maximum command length is limited to 254 characters.

Usage

The Command Block will execute server commands like giving items or experience to a player.[1]

To change the command executed by the block, simply right-click it, and a GUI will open.

In place of player names, it is possible to use multiple different shorthands:

Shorthand Function
@p Nearest player
@r Random player
@a All players

When using commands, treat them as if entered from the console - you always need to specify the target, so it is not possible to use commands such as "kill" which do not take a player argument. For example, to change the mode to Survival for the nearest player type: /gamemode survival @p. Note that you will have to be in Creative mode to change the command associated with the block.

Gamerules

As of version 12w32a a new /gamerule command has been added.

Usage: /gamerule <gamerule> <true/false>

Gamerule What it does
commandBlockOutput Enables/Disables text output of command block commands to console
doFireTick enables/disables fire spread
doMobLoot enables/disables mob drops
doMobSpawning enables/disables the spawning of mobs unless you want them to ex: eggs will still spawn mobs
doTileDrops enables/disables blocks dropping items when broken (includes TNT destroying blocks)
keepInventory enables/disables keeping inventory on death
mobGriefing enables/disables creepers and Wither blowing up blocks and endermen picking up blocks

Disabled commands

The following commands have been disabled for use with the Command Block.

Command Reason for being disabled
/kick Due to @a, this could be used to lock out a server from entries.
/ban
/op So players cannot OP themselves.
/deop So players cannot deop OPs.
/stop So players cannot shut down a server.
  • However "/me" command still works and allows to broadcast messages server-wide. Command block identifies itself as "@". Worth noting is the fact that "/me" command, is an example of a command without player target that actually works with Command blocks.

Arguments

After using a target (@a) you can optionally use arguments. This is how you use the arguments: @<selector>[<argument>=<value>,<argument>=<value>]

Argument Function
x X coordinate for the search center.
y Y coordinate for the search center.
z Z coordinate for the search center.
r Maximum search radius.
rm Minimum search radius.
m Gamemode
c Maximum players.
l Maximum level of players.
lm Minimum level of players.

Example: @p[x=1,y=30,z=26,r=10,rm=2,m=1,c=3,l=25,lm=3]

History

On July 27th, 2012, Jeb began tweeting of a new block he had created to start expanding Adventure mode.[2] He began posting pictures, ideas and hints of what the block will be able to do. During Notch's AMA he hinted the block may be in 1.4.[3]

r
12w32a
{{Extension DPL}}<ul><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><li>[[Netherite Ingot|Netherite Ingot]]<br/>{{About|the refined item|the scrap|Netherite Scrap|the ore|Ancient Debris|other uses|Netherite}}
{{Item
| rarity = Common
| renewable = No
| stackable = Yes (64)
}}
'''Netherite ingots''' are items obtained from crafting [[netherite scrap]]s and [[gold ingot]]s together, as well as loot from [[bastion remnant]] loot chests. Unlike other items, they are immune to fire and [[lava]] damage. They are primarily used to upgrade [[diamond]] gear and craft [[lodestone]]s.

== Obtaining ==

Netherite ingots are obtained by crafting four [[netherite scrap]]s and four [[gold ingot]]s. It is a shapeless recipe, therefore the placement of the netherite scraps and gold ingots does not matter when crafting it.

=== Crafting ===

{{Crafting
|head=1
|showname=0
|Netherite Scrap
|Netherite Scrap
|Netherite Scrap
|Netherite Scrap
|Gold Ingot
|Gold Ingot
|Gold Ingot
|Gold Ingot
|Output=Netherite Ingot
|type=Material
}}

{{Crafting 
|Block of Netherite
|Output=Netherite Ingot,9
|type=Material
|foot=1
}}

=== Chest loot ===
{{LootChestItem|netherite-ingot}}

== Usage ==
Netherite ingots are crafting materials used to make netherite tools, weapons, and armor.

=== Crafting ingredient ===

{{crafting usage}}

=== Smithing ingredient ===
Netherite ingots can be used on a [[smithing table]] to upgrade diamond items to netherite items, as well as trim any armor piece. Data such as durability, enchantments, and custom names are preserved.

{{Smithing
|head=1
|ingredients=[[Netherite Upgrade]] +<br>Any [[diamond]] gear +<br>[[Netherite Ingot]]
|Netherite Upgrade
|Diamond Helmet; Diamond Chestplate; Diamond Leggings; Diamond Boots; Diamond Sword; Diamond Pickaxe; Diamond Axe; Diamond Shovel; Diamond Hoe
|Netherite Ingot
|Netherite Helmet; Netherite Chestplate; Netherite Leggings; Netherite Boots; Netherite Sword; Netherite Pickaxe; Netherite Axe; Netherite Shovel; Netherite Hoe
}}
{{Smithing
|ingredients=Any Armor Trim +<br/>Any Armor Piece + <br/>Netherite Ingot
|Any Armor Trim Smithing Template
|Diamond Chestplate
|Netherite Ingot
|Netherite Trim Diamond Chestplate
|showdescription=1
|description = All armor types can be used in this recipe,<br/>a diamond chestplate is shown as an example.<br/>
|tail=1
}}

'''Trim color palette'''
The following color palettes are shown on the designs on trimmed armor:
* {{TrimPalette|netherite ingot}}
* {{TrimPalette|netherite ingot|darker=1}} (a darker color palette is used when a netherite armor piece is trimmed using a netherite ingot).

=== Repairing ===

Netherite ingots are the repair items for the netherite [[tier]] and [[armor material]], and thus can be used to [[item repair|repair]] the following items in an [[anvil]]:
* {{ItemLink|Netherite Helmet}}
* {{ItemLink|Netherite Chestplate}}
* {{ItemLink|Netherite Leggings}}
* {{ItemLink|Netherite Boots}}
* {{ItemLink|Netherite Sword}}
* {{ItemLink|Netherite Pickaxe}}
* {{ItemLink|Netherite Axe}}
* {{ItemLink|Netherite Shovel}}
* {{ItemLink|Netherite Hoe}}

=== Beacons ===

A netherite ingot could be used to select powers from a [[beacon]] instead of using an [[emerald]], [[gold ingot]], [[iron ingot]], or a [[diamond]]. The player must select one of the available powers, and then insert an ingot in the item slot. The [[gold]] option is more efficient than the netherite option because it consumes 3 fewer gold and no [[Netherite Scrap|netherite scrap]].

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Netherite Ingot
|spritetype=item
|nameid=netherite_ingot
|itemtags=beacon_payment_items
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Netherite Ingot
|spritetype=item
|nameid=netherite_ingot
|id=603
|form=item
|foot=1}}

=== Advancements ===
{{load advancements|Serious dedication}}

== History ==
{{History|java}}
{{History||1.16|snap=20w06a|[[File:Netherite Ingot JE1 BE2.png|32px]] Added netherite ingots.}}
{{History|||snap=20w07a|Netherite ingots can now be used to power [[beacon]]s.}}
{{History|||snap=20w10a|The [[crafting]] recipe for netherite [[tools]] and [[armor]] has been changed so that a [[smithing table]] is used instead of a [[crafting table]] and [[enchanting|enchantments]] are preserved when upgrading [[item]]s.}}
{{History|||snap=20w13a|Netherite ingots can now be used to craft [[lodestone]]s.}}
{{History|||snap=20w16a|Netherite ingots can now be found in [[bastion remnant]] chests.}}
{{History||1.16.2|snap=20w30a|Increased the chance of finding netherite ingots in bastion remnant chests from 16.8% to 42.1%.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w04a|Netherite ingots can now be used as an armor trim material.|Upgrading diamond tools and armor to netherite now requires the netherite upgrade [[smithing template]] in addition to a netherite ingot.}}
{{History|||snap=23w05a|Netherite ingots can now be used to trim netherite armor.}}
{{History||1.20|snap=23w12a|Netherite ingots are now usable for trimming without requiring the "Update 1.20" experimental datapack to be enabled.}}

{{History|bedrock}}
{{History||1.16.0|snap=beta 1.16.0.51|[[File:Netherite Ingot BE1.png|32px]] Added netherite ingots.}}
{{History|||snap=beta 1.16.0.57|Netherite ingots can now be used to power [[beacon]]s.
|The [[crafting]] recipe for netherite [[tools]] and [[armor]] has been changed so that a [[smithing table]] is used instead of a [[crafting table]] and [[enchanting|enchantments]] are preserved when upgrading [[item]]s.
|Netherite ingots can now be used to craft [[lodestone]]s.
|Netherite ingots can now be found in [[bastion remnant]] chests.}}
{{History||1.17.10|snap=beta 1.17.10.20|[[File:Netherite Ingot JE1 BE2.png|32px]] The texture of netherite ingots has been changed to match ''Java Edition''.}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.21|Netherite ingots can now be used as an armor trim material.|Upgrading diamond tools and armor to netherite now requires the netherite upgrade [[smithing template]] in addition to a netherite ingot.}}
{{History||1.20.0|snap=beta 1.20.0.21|Netherite ingots are now usable for trimming without requiring the "Next Major Update" experimental toggle to be enabled.}}
{{History|foot}}

== Issues ==
{{issue list}}

== See also ==
* {{EnvLink|Bastion Remnant}}
* {{BlockLink|Block of Netherite}}
* {{ItemLink|Netherite Scrap}}
*  {{BlockLink|Ancient Debris}}
*{{BlockLink|Lodestone}}

== External Links ==
* [https://www.minecraft.net/en-us/article/taking-inventory--netherite-ingot Taking Inventory: Netherite Ingot] – Minecraft.net on May 28, 2020

{{Items}}

[[de:Netheritbarren]]
[[es:Lingote de netherita]]
[[fr:Lingot de Netherite]]
[[it:Lingotto di netherite]]
[[ja:ネザライトインゴット]]
[[ko:네더라이트 주괴]]
[[pl:Sztabka netherytu]]
[[pt:Barra de netherita]]
[[ru:Незеритовый слиток]]
[[th:แท่งเนเธอไรต์]]
[[uk:Незеритовий злиток]]
[[zh:下界合金锭]]
[[Category:Non-renewable resources]]</li></ul>
Added Command Block, plus a number of new commands for the block to use.
12w38a
{{Extension DPL}}<ul><li>[[:Category:Dyes|Category:Dyes]]<br/>These are items that can be used to dye sheep, wool blocks, or combined to make other dyes.

[[Category:Items]]

[[es:Categoría:Tintes]]
[[fr:Catégorie:Teinture]]
[[hu:Kategória:Festékek]]
[[zh:Category:染料]]</li><li>[[Leather|Leather]]<br/>{{About||the leather from rabbits|Rabbit Hide|the armor material|Armor materials}}
{{Item
| image = Leather.png
| renewable = Yes
| stackable = Yes (64)
}}

'''Leather''' is an [[item]] used to make [[item frame]]s, [[armor]] and [[book]]s.

== Obtaining ==

=== Mob loot ===

Upon death, [[cow]]s, [[mooshroom]]s, [[horse]]s, [[donkey]]s, [[mule]]s, [[llama]]s and [[trader llama]]s drop 0–2 leather, while [[hoglin]]s drop 0–1 leather. The maximum amount is increased by 1 per level of [[Looting]], for a maximum of 5 leather (4 leather from hoglins) with Looting III.

A [[fox]] sometimes spawns holding leather, which always drops upon death. Alternatively, a player can drop a [[food]] item, causing the fox to drop the leather.

=== Fishing ===

Leather can be obtained as a "junk" item from [[fishing]].

=== Crafting ===

{{Crafting
  |A1= Rabbit Hide |B1= Rabbit Hide
  |A2= Rabbit Hide |B2= Rabbit Hide
  |Output=Leather
  |type=Material
}}

=== Chest loot ===

{{LootChestItem|leather}}

=== Villager gifts ===

{{in|java}}, leatherworker [[villager]]s throw leather at players under the [[Hero of the Village]] effect.

=== Bartering ===
[[Piglin]]s may [[barter]] 2-4 leather when given a [[gold ingot]].

== Usage ==

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

=== Trading ===

Novice-level leatherworker villagers have a {{frac|2|3}} chance to [[trading|buy]] 6 leather for one [[emerald]] {{in|java}}, and always offer the trade {{in|bedrock}}.

=== Repairing ===

Leather is the repair item for the [[armor materials|leather armor]], and thus can be used to [[item repair|repair]] the following items in an [[anvil]]:
* {{ItemLink|Leather cap}}
* {{ItemLink|Leather tunic}}
* {{ItemLink|Leather pants}}
* {{ItemLink|Leather boots}}

== Achievements ==
{{load achievements|Cow Tipper}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Leather
|spritetype=item
|nameid=leather
|itemtags=ignored_by_piglin_babies
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Leather
|spritetype=item
|nameid=leather
|id=381
|form=item
|foot=1}}

== History ==

{{History|java alpha}}
{{History||v1.0.8|[[File:Leather JE1 BE1.png|32px]] Added leather.
|Leather [[drops]] from [[cow]]s.
|The [[crafting]] recipe for leather [[armor]] has been changed from cloth to leather (leather armor was previously [[craft]]ed with [[wool]], and was called "cloth armor" in the game code).}}
{{History||v1.0.17|[[Chicken]]s in [[Survival]] [[multiplayer]] now [[drop]] leather if killed by [[fire]], fall [[damage]] or [[cactus]].}}
{{History||v1.2.6|Chickens dropping leather was fixed by this version at the latest.{{when|It would be nice to know exactly when. It's at most a 3 1/2 month bug, though it was at the beginning. Might count as short-lived.}}.}}
{{History|java}}
{{History||1.3.1|snap=12w17a|Leather is now required to craft [[book]]s.}}
{{History||1.4.2|snap=12w34a|Leather is now used to craft the newly added [[item frame]]s.}}
{{History||1.6.1|snap=13w16a|Leather is now used to craft [[horse saddle]]s.|[[Horse]]s now [[drop]] leather.}}
{{History|||snap=13w18a|Leather is no longer used to craft [[horse saddle]]s.}}
{{History||1.7.2|snap=13w36a|Leather can be obtained as one of the "junk" [[item]]s in [[fishing]], making it possible to obtain it without killing any [[animal]]s.}}
{{History||1.8|snap=14w02a|Leather can now be [[trading|sold]] to leatherworker [[villager]]s, at 9–12 leather for 1 [[emerald]].}}
{{History|||snap=14w27b|Leather can now be crafted using 4 [[rabbit hide]].}}
{{History||1.9|snap=15w41a|Leather can now be used to repair [[elytra]].}}
{{History||1.11|snap=16w39a|[[Llama]]s now [[drop]] leather.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 334.}}
{{History|||snap=18w07a|[[Phantom]]s now drop leather.}}
{{History|||snap=18w14a|Phantoms no longer [[drop]] leather.
|[[Phantom membrane]]s are now used to repair [[elytra]], instead of leather.}}
{{History||1.14|snap=18w43a|[[File:Leather JE2 BE2.png|32px]] The texture of leather has been changed.}}
{{History|||snap=18w48a|Leather can now be found in chests in [[village]] tanneries.}}
{{History|||snap=19w07a|Added [[fox]]es, which sometimes spawn with leather in their mouths.}}
{{History|||snap=19w08a|Leather is now used to [[craft]] leather [[horse armor]].}}
{{History|||snap=19w13a|Leatherworker villagers now give leather to players under the [[Hero of the Village]] effect.}}
{{History||1.16|snap=20w07a|Leather is dropped by the new [[hoglin]]s.
|Leather has a {{frac|5|109}} (~4.59%) chance of being given by the new [[piglin]]s when [[bartering]], in a stack size of 2–7.}}
{{History|||snap=20w09a|Leather now has a {{frac|20|226}} (~8.84%) chance of being given by piglins when bartering, in a stack size of 1–5.}}
{{History|||snap=20w16a|Leather now generates in [[bastion remnants]] chests.}}

{{History|pocket alpha}}
{{History||v0.2.0|[[File:Leather JE1 BE1.png|32px]] Added leather. It is currently unobtainable and serves no purpose.}}
{{History||v0.6.0|Leather is now obtainable by killing [[cow]]s.
|Leather can be used to craft leather [[armor]].}}
{{History||v0.11.0|snap=build 1|Leather can now be obtained as one of the "junk" [[item]]s in [[fishing]], making it possible to obtain it without killing any [[animal]]s.}}
{{History||v0.12.1|snap=build 1|Leather is now required to craft [[book]]s.}}
{{History||v0.13.0|snap=build 1|Leather can now be [[craft]]ed using 4 [[rabbit hide]].}}
{{History||v0.15.0|snap=build 1|Leather is now used to craft leather [[horse armor]].}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Leather can now be used to repair [[elytra]].}}
{{History||1.0.4|snap=alpha 1.0.4.0|9-12 leather can now be [[trading|sold]] to leatherworker [[villager]]s.}}
{{History|bedrock}}
{{History||1.6.0|snap=beta 1.6.0.5|[[Phantom membrane]]s are now used to repair [[elytra]], instead of leather.}}
{{History||1.10.0|snap=beta 1.10.0.3|Leather can now be found in [[village]] tannery house [[chest]]s.
|[[File:Leather JE2 BE2.png|32px]] The texture of leather has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|[[Trading]] has been changed, leatherworker [[villager]]s now [[trading|buy]] 6 leather for an [[emerald]].}}
{{History||1.13.0|snap=beta 1.13.0.1|Added [[fox]]es, which can drop leather.}}
{{History||1.16.0|snap=beta 1.16.0.57|Hoglins now drop leather.
|Leather can now be obtained from bartering with piglin.
|Leather can now be found in [[bastion remnants]] chests.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Leather JE1 BE1.png|32px]] Added leather.}}
{{History||xbox=TU60|xbone=CU51|ps=1.64|wiiu=Patch 30|switch=1.0.11|Leather is now used to [[craft]] leather [[horse armor]].}}
{{History||xbox=TU69|xbone=none|ps=1.76|wiiu=Patch 38|switch=none|[[Phantom membrane]]s are now used to repair [[elytra]], instead of leather.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Leather JE2 BE2.png|32px]] The texture of leather has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Leather JE1 BE1.png|32px]] Added leather.}}
{{History|foot}}

== Issues ==

{{issue list}}


{{Items}}

[[Category:Renewable resources]]

[[cs:Kůže]]
[[de:Leder]]
[[es:Cuero]]
[[fr:Cuir]]
[[hu:Bőr]]
[[it:Cuoio]]
[[ja:革]]
[[ko:가죽]]
[[nl:Leer]]
[[pl:Skóra]]
[[pt:Couro]]
[[ru:Кожа]]
[[th:หนังสัตว์]]
[[uk:Шкіра]]
[[zh:皮革]]</li></ul>
Target parameters upgraded, allowing for more details of how, where and who the command acts on. See https://gist.github.com/3736487 for further details.
12w39b
{{Extension DPL}}<ul><li>[[Goat Horn|Goat Horn]]<br/>{{redirect|Horn}}
{{Item
| image = Goat Horn JE1 BE1.png
| renewable = Yes
| stackable = No
}}

A '''goat horn''' is an [[item]] dropped by [[goat]]s. It has eight variants, and each plays a unique sound when {{Control|used}} which can be heard by [[Player|players]] in a large radius.

== Obtaining ==
=== Mob loot ===
A horn is dropped when an adult [[goat]] rams a tree or any other hard block that occurs naturally where goats spawn. These include [[stone]], [[coal ore]], [[copper ore]], [[iron ore]], [[emerald ore]], [[log]], or [[packed ice]]. Goats do not ram other solid blocks. {{IN|java}}, these blocks are listed under the {{cd|snaps_goat_horn}} [[tag]], and can be modified by [[data pack]]s.

Up to two horns can be dropped from an adult goat. Regular goats may drop the Ponder, Sing, Seek, and Feel horns, while screaming goats drop the Admire, Call, Yearn, and Dream horns. A specific goat drops only one type of horn; that is, if a goat drops a Sing horn, its other horn is also a Sing horn.

=== Natural generation ===
{{LootChestItem|goat-horn}}
Only the four variants from regular goats can be found here.

== Usage ==
When {{control|used}}, they play a loud sound that can be heard from up to 256 blocks, but are also limited by the server view distance. Each horn variant plays a unique sound. There are eight variants, four of which are exclusive to [[Goat#Spawning|screaming goats]].

There is a cooldown of seven seconds between each use of the horn. All goat horns are affected by this cooldown.

== Sounds ==
=== Generic ===
{{edition|java}}:
{{Sound table
|sound=Goat horn break1.ogg
|sound2=Goat horn break2.ogg
|sound3=Goat horn break3.ogg
|sound4=Goat horn break4.ogg
|subtitle=Goat Horn breaks off
|source=neutral
|description=When a goat's horn breaks off
|id=entity.goat.horn_break
|translationkey=subtitles.entity.goat.horn_break
|volume=0.9
|pitch=1.0
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Goat horn break1.ogg
|sound2=Goat horn break2.ogg
|sound3=Goat horn break3.ogg
|sound4=Goat horn break4.ogg
|description=When a goat's horn breaks off
|source=hostile
|id=mob.goat.horn_break
|volume=1.0
|pitch=1.0
|foot=1}}

=== Playing ===
{{edition|java}}:
{{Sound table
|sound=Goat Horn Call0.ogg
|description="Ponder"
|subtitle=Goat horn plays
|source=Jukebox/Note Blocks
|id=item.goat_horn.sound.0
|translationkey=subtitles.item.goat_horn.play
|volume=16.0
|pitch=1.0
|distance=256}}
{{Sound table
|sound=Goat Horn Call1.ogg
|description="Sing"
|subtitle=Goat horn plays
|source=Jukebox/Note Blocks
|id=item.goat_horn.sound.1
|translationkey=subtitles.item.goat_horn.play
|volume=16.0
|pitch=1.0
|distance=256}}
{{Sound table
|sound=Goat Horn Call2.ogg
|description="Seek"
|subtitle=Goat horn plays
|source=Jukebox/Note Blocks
|id=item.goat_horn.sound.2
|translationkey=subtitles.item.goat_horn.play
|volume=16.0
|pitch=1.0
|distance=256}}
{{Sound table
|sound=Goat Horn Call3.ogg
|description="Feel"
|subtitle=Goat horn plays
|source=Jukebox/Note Blocks
|id=item.goat_horn.sound.3
|translationkey=subtitles.item.goat_horn.play
|volume=16.0
|pitch=1.0
|distance=256}}
{{Sound table
|sound=Goat Horn Call4.ogg
|description="Admire"<ref group=note name=screaming>These are dropped by screaming goats.</ref>
|subtitle=Goat horn plays
|source=Jukebox/Note Blocks
|id=item.goat_horn.sound.4
|translationkey=subtitles.item.goat_horn.play
|volume=16.0
|pitch=1.0
|distance=256}}
{{Sound table
|sound=Goat Horn Call5.ogg
|description="Call"<ref group=note name=screaming/>
|subtitle=Goat horn plays
|source=Jukebox/Note Blocks
|id=item.goat_horn.sound.5
|translationkey=subtitles.item.goat_horn.play
|volume=16.0
|pitch=1.0
|distance=256}}
{{Sound table
|sound=Goat Horn Call6.ogg
|description="Yearn"<ref group=note name=screaming/>
|subtitle=Goat horn plays
|source=Jukebox/Note Blocks
|id=item.goat_horn.sound.6
|translationkey=subtitles.item.goat_horn.play
|volume=16.0
|pitch=1.0
|distance=256}}
{{Sound table
|sound=Goat Horn Call7.ogg
|description="Dream"<ref group=note name=screaming/>
|subtitle=Goat horn plays
|source=Jukebox/Note Blocks
|id=item.goat_horn.sound.7
|translationkey=subtitles.item.goat_horn.play
|volume=16.0
|pitch=1.0
|distance=256
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Goat Horn Call0.ogg
|source=Jukebox/Note Blocks<wbr>{{Until|BE 1.20.40}}<br>Hostile Creatures<wbr>{{Upcoming|BE 1.20.40}}|overridesource=1
|description="Ponder"
|id=horn.call.0
|volume=1.0<wbr><ref group=sound name=nodistance>{{Bug|MCPE-153254}}</ref><wbr>{{Until|BE 1.20.40}}<br>16.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0}}
{{Sound table
|sound=Goat Horn Call1.ogg
|source=Jukebox/Note Blocks<wbr>{{Until|BE 1.20.40}}<br>Hostile Creatures<wbr>{{Upcoming|BE 1.20.40}}|overridesource=1
|description="Sing"
|id=horn.call.1
|volume=1.0<wbr><ref group=sound name=nodistance/><wbr>{{Until|BE 1.20.40}}<br>16.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0}}
{{Sound table
|sound=Goat Horn Call2.ogg
|source=Jukebox/Note Blocks<wbr>{{Until|BE 1.20.40}}<br>Hostile Creatures<wbr>{{Upcoming|BE 1.20.40}}|overridesource=1
|description="Seek"
|id=horn.call.2
|volume=1.0<wbr><ref group=sound name=nodistance/><wbr>{{Until|BE 1.20.40}}<br>16.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0}}
{{Sound table
|sound=Goat Horn Call3.ogg
|source=Jukebox/Note Blocks<wbr>{{Until|BE 1.20.40}}<br>Hostile Creatures<wbr>{{Upcoming|BE 1.20.40}}|overridesource=1
|description="Feel"
|id=horn.call.3
|volume=1.0<wbr><ref group=sound name=nodistance/><wbr>{{Until|BE 1.20.40}}<br>16.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0}}
{{Sound table
|sound=Goat Horn Call4.ogg
|source=Jukebox/Note Blocks<wbr>{{Until|BE 1.20.40}}<br>Hostile Creatures<wbr>{{Upcoming|BE 1.20.40}}|overridesource=1
|description="Admire"<ref group=note name=screaming/>
|id=horn.call.4
|volume=1.0<wbr><ref group=sound name=nodistance/><wbr>{{Until|BE 1.20.40}}<br>16.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0}}
{{Sound table
|sound=Goat Horn Call5.ogg
|source=Jukebox/Note Blocks<wbr>{{Until|BE 1.20.40}}<br>Hostile Creatures<wbr>{{Upcoming|BE 1.20.40}}|overridesource=1
|description="Call"<ref group=note name=screaming/>
|id=horn.call.5
|volume=1.0<wbr><ref group=sound name=nodistance/><wbr>{{Until|BE 1.20.40}}<br>16.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0}}
{{Sound table
|sound=Goat Horn Call6.ogg
|source=Jukebox/Note Blocks<wbr>{{Until|BE 1.20.40}}<br>Hostile Creatures<wbr>{{Upcoming|BE 1.20.40}}|overridesource=1
|description="Yearn"<ref group=note name=screaming/>
|id=horn.call.6
|volume=1.0<wbr><ref group=sound name=nodistance/><wbr>{{Until|BE 1.20.40}}<br>16.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0}}
{{Sound table
|sound=Goat Horn Call7.ogg
|source=Jukebox/Note Blocks<wbr>{{Until|BE 1.20.40}}<br>Hostile Creatures<wbr>{{Upcoming|BE 1.20.40}}|overridesource=1
|description="Dream"<ref group=note name=screaming/>
|id=horn.call.7
|volume=1.0<wbr><ref group=sound name=nodistance/><wbr>{{Until|BE 1.20.40}}<br>16.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0
|foot=1}}

== Data values ==
=== ID ===
{{el|je}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Goat Horn
|spritetype=item
|nameid=goat_horn
|form=item
|foot=1}}

{{el|be}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Goat Horn
|spritetype=item
|nameid=goat_horn
|form=item
|id=624
|translationkey=item.goat_horn.name, item.minecraft.goat_horn.sound.0, item.minecraft.goat_horn.sound.1, item.minecraft.goat_horn.sound.2, item.minecraft.goat_horn.sound.3, item.minecraft.goat_horn.sound.4, item.minecraft.goat_horn.sound.5, item.minecraft.goat_horn.sound.6, item.minecraft.goat_horn.sound.7
|foot=1}}

=== Item data ===
==== ''Java Edition'' ====
<div class="treeview">
*{{nbt|compound|tag}}: The item's '''tag''' tag.
{{:Player.dat_format/Goat Horn}}
</div>
Goat horns use the "instrument" tag to control which sound can be played when using a goat horn. The values of the tag (to be prefixed with <code>minecraft:</code>) are:
{| class="wikitable sortable" style="text-align: center;"
!Sound type !![[Resource location|Identifier]]
|-
|Ponder||<code>ponder_goat_horn</code>
|-
|Sing ||<code>sing_goat_horn</code>
|-
|Seek ||<code>seek_goat_horn</code>
|-
|Feel ||<code>feel_goat_horn</code>
|-
|Admire||<code>admire_goat_horn</code>
|-
|Call ||<code>call_goat_horn</code>
|-
|Yearn||<code>yearn_goat_horn</code>
|-
|Dream||<code>dream_goat_horn</code>
|}

== History ==
{{History||October 16, 2021|link=https://www.twitch.tv/videos/1178420217?t=02h46m05s|Ulraf, a game developer on ''Minecraft'', states that goat horns are not included in [[Java Edition 1.18]].}}
{{History||November 17, 2021|link=https://www.minecraft.net/en-us/article/caves---cliffs-update-part-ii-coming|Goat horns are initially announced to be added after "The Wild Update".}}
{{History|java}}
{{History||1.19|snap=22w17a|[[File:Goat Horn JE1 BE1.png|32px]]Added goat horns.}}
{{History||1.19|snap=Pre-release 2|Goat Horns now snap when a goat rams into [[copper ore]].<ref>{{bug|MC-250941|||Fixed }}</ref>}}
{{History|Bedrock}}
{{History||Caves & Cliffs<br>(experimental)|link=Caves & Cliffs|snap=beta 1.16.200.52|[[File:Goat Horn JE1 BE1.png|32px]]Added goat horns behind the "Caves and Cliffs" experimental toggle.}}
{{History|||snap=beta 1.16.210.51|Goats now drop 2 horns each.}}
{{History|||snap=beta 1.17.20.20|Baby goats no longer drop horns.}}
{{History||1.18.0|snap=beta 1.18.0.20|Goat horns are now available outside of experimental gameplay.}}
{{History|||snap=beta 1.18.0.22|Goat horns have been moved behind the "Vanilla Experiments" [[experimental gameplay|experiments]] toggle.}}
{{History||Vanilla Experiments (experimental)|link=Experimental Gameplay|snap=beta 1.18.20.23|Goat horns now have a cooldown after being used.}}
{{History|||snap=beta 1.18.20.25|Goat horns now have an animation when being used in first person.
|Goats now make a sound when they drop goat horns.}}
{{History|||snap=beta 1.18.30.26|Goat horns are now used to craft [[copper horn]]s.|Changed goat horn sounds.}}
{{History||Vanilla Experiments (experimental)|link=Experimental Gameplay|snap=beta 1.19.0.24|Goat horns are no longer used to craft copper horns, as copper horns have been removed.|Changed goat horn sounds.{{verify}}|Removed "Fly" and "Dream" goat horns.}}
{{History||1.19.0|snap=beta 1.19.0.28|Goat horns are now available without enabling experimental gameplay.}}
{{History||1.19.10|snap=beta 1.19.10.22|Renamed the "Resist" goat horn to the "Dream" goat horn to match ''Java Edition''.|The "Feel" goat horn now plays the same sound as ''Java Edition''.}}
{{History|upcoming bedrock}}
{{History||1.20.40|snap=beta 1.20.40.22|Goat horns now have a range of 256 blocks.<ref name=nodistance>{{Bug|MCPE-153254}}</ref>}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* The "seek" horn sounds similar to the "ominous horn" that announces a [[raid]].

== Gallery ==
<gallery>
File:Screenshot (17).png|Steve using a goat horn.
File:Alex uses a goat horn.png|Alex using a goat horn.
File:Screenshot (18).png|The goat horn animation in first person.
File:Screenshot (19).png|The goat horn animation with "Left Hand" option enabled.
</gallery>

== Notes ==
<references group="note" />

== References ==
{{reflist}}

== External Links ==

* [https://www.minecraft.net/en-us/article/taking-inventory--goat-horn Taking Inventory: Goat Horn] - Minecraft.net on February 16, 2023
{{Items}}

[[Category:Renewable resources]]
[[Category:Tools]]

[[de:Ziegenhorn]]
[[es:Cuerno de cabra]]
[[fr:Corne de chèvre]]
[[it:Corno di capra]]
[[ja:ヤギの角笛]]
[[pl:Kozi róg]]
[[pt:Chifre de cabra]]
[[ru:Козий рог]]
[[zh:山羊角]]</li><li>[[Cocoa Beans|Cocoa Beans]]<br/>{{Block
|image=<gallery>
Cocoa Age 0.png|Age 0 JE
Cocoa Age 1.png|Age 1 JE
Cocoa Age 2.png|Age 2 JE
</gallery>
|image2=<gallery>
Cocoa Age 0 BE.png|Age 0 BE
Cocoa Age 1 BE.png|Age 1 BE
Cocoa Age 2 BE.png|Age 2 BE
</gallery>
|transparent=Yes
|light=No
|tool=axe
|renewable=Yes
|stackable=Yes (64)
|flammable=No
|lavasusceptible=No
}} '''Cocoa beans''' are items obtained from cocoa pods and are used to plant them, as well as to craft [[dye|brown dye]] and [[cookie|cookies]].

'''Cocoa pods''' are [[Bone Meal|bonemealable]] [[plant]]s placed on [[Log|jungle log]] sides that grow cocoa beans, and can be found naturally in [[Jungle|jungles]].

==Obtaining==
In ''Java Edition'', cocoa beans are only obtained through the natural generation of cocoa pods, while in ''Bedrock Edition'', they can also be gotten in bonus chests, from [[fishing]] inside the jungle, bamboo jungle and sparse jungle biomes and during a [[trading]] with a wandering trader.

Cocoa beans come from cocoa pods, which are found on the trunks of normal-sized naturally-generated [[jungle tree]]s in [[jungle]], [[bamboo jungle]]s and [[sparse jungle]] temperate [[biome]]s.

Cocoa pods can be mined with any item, but [[axe]]s are the quickest. Fully grown cocoa pods drop 3 cocoa beans. Using a tool enchanted with Fortune does not increase the amount of cocoa beans dropped.
{{breaking row|horizontal=1|Cocoa|Axe|sword=1|link=none}}
The block itself can be obtained by inventory editing or [[add-on]]s {{in|bedrock}}.

From one to two cocoa beans can be found in 40% of bonus [[chest]]s {{in|bedrock}}.
{{LootChestItem|cocoa-beans}}

Cocoa beans can be obtained from [[fishing]] in a jungle {{in|bedrock}}.

[[Wandering trader]]s may sell 3 cocoa beans for an [[emerald]] during a [[trading]] {{in|bedrock}}.

==Usage==
===Farming===
{{main|Tutorials/Cocoa bean farming}}
Placing cocoa beans on the side of a jungle [[log]] plants a new cocoa pod. The log does not need to be attached to a tree. A cocoa pod can be placed on jungle logs, jungle [[wood]], stripped jungle logs and stripped jungle wood.
[[File:Cocoaplant farm.png|thumb|left|A somewhat efficient cocoa pod farm, minimizing space and wood use.]]
Cocoa has three stages of growth. During its first stage, the pod is small and green. In the second stage, the plant is bigger and colored tan. In its last stage, the pod is even larger and orange. The cocoa block has a 20% chance to grow a stage when receiving a [[Tick#Random tick|random tick]], giving it an average time of 5 minutes and 41 seconds per stage. When destroyed in the first two stages, the pod yields only one cocoa bean. When destroyed in the third stage, it gives 3 cocoa beans. [[Bone meal]] can be used to force the cocoa pod forward by one growth stage. Cocoa pods burst and drop their beans when struck by flowing water, pushed by a piston or if their [[log]] or wood are removed by any means.

===Composting===
Placing cocoa beans into a [[composter]] has a 65% chance of raising the compost level by 1. {{IN|bedrock}}, cocoa beans are accepted as a direct substitute of brown dye in many recipes.

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

{{Dye usage}}

{{IN|bedrock}}, cocoa beans can be also used in banner patterns:
{{banner crafting usage}}

{{Banner loom usage|Cocoa Beans}}

==Sounds==
{{Sound table/Block/Wood}}

==Data values==
===ID===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Cocoa
|spritetype=block
|nameid=cocoa
|form=block}}
{{ID table
|displayname=Cocoa Beans
|spritetype=item
|nameid=cocoa_beans
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showforms=y
|showaliasids=y
|shownumericids=y
|generatetranslationkeys=y
|displayname=Cocoa
|spritetype=block
|nameid=cocoa
|id=127
|form=block}}
{{ID table
|displayname=Cocoa Beans
|spritetype=item
|nameid=cocoa_beans
|aliasid=dye / 3
|id=412
|form=item
|translationkey=item.dye.brown.name
|foot=1}}

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

==History==
''For a more in-depth breakdown of changes to textures and models, including a set of renders for each state combination, see [[/Asset history]]''
{{History|java beta}}
{{History||1.2|[[File:Cocoa Beans JE1 BE1.png|32px]] Added cocoa beans.
|Cocoa beans are currently obtainable only through an inventory editor.}}
{{History||1.2_02|Prior to this, Cocoa Beans were misspelled as 'Coco Beans'.}}
{{History||1.4|Cocoa beans have been formally brought into the game as a reward found in [[dungeon]] chests.<ref>{{tweet|notch|53161729990987776}}</ref> (53% chance) Also, brown [[sheep]] now naturally spawn, making brown [[wool]] obtainable without hacking the game.
|Cocoa beans can now be used to craft [[cookie]]s.}}
{{History|java}}
{{History||May 8, 2012|link={{tweet|jeb|199867730927697920}}|[[Jeb]] revealed cocoa with a screenshot.}}
{{History||1.3.1|snap=12w18a|For only this snapshot, cocoa beans have been given a small (0.5%) chance of dropping from destroyed [[jungle tree]] [[leaves]] in a similar fashion to [[apple]]s from oak leaves, which makes cocoa beans [[renewable resource|renewable]] for the first time.}}
{{History|||snap=12w19a|[[File:Cocoa Age 0 (S) JE1.png|32px]] [[File:Cocoa Age 1 (S) JE1.png|32px]] [[File:Cocoa Age 2 (S) JE1.png|32px]]  Added cocoa. The top textures of cocoa always keep a completely constant rotation, regardless of what direction they face. They also not shaded.
|[[File:Cocoa Beans JE2.png|32px]] The texture of cocoa beans has been changed.
|Cocoa has replaced jungle [[leaves]] as the main method of finding cocoa beans.
|[[File:Cocoa Age 3 (S) JE1.png|32px]] Cocoa with values 12–15 is inaccessible normally, and use the texture of the [[dragon egg]]. This is due to the dragon egg texture being to the left of the ripe cocoa texture in <samp>[[terrain.png]]</samp>, as cocoa textures are arranged with the oldest on the left and the youngest on the right, resulting in the unusually ripe cocoa reading the dragon egg texture.}}
{{History|||snap=1.3|[[File:Cocoa Beans JE3 BE2.png|32px]] The texture of cocoa beans has been changed.}}
{{History||1.4.2|snap=12w34a|Cocoa beans have been given the ability to [[Armor#Dyeing|dye]] leather [[armor]] and [[wolf]] collars.}}
{{History||1.4.6|snap=12w49a|Cocoa beans can now be [[crafting|crafted]] with [[gunpowder]] to create a [[firework star]].}} 
{{History||1.5|snap=13w02a|Due to textures being stored in individual files, cocoa beans with data 12–15 no longer have a texture to use, and now crash the game if a [[chunk]] containing one is loaded.}}
{{History|||snap=13w03a|Cocoa with data values 12–15 now only crash the game if one is directly in the field of view.}}
{{History|||snap=13w04a|[[Bone meal]] now grows cocoa by only one stage.}}
{{History|||snap=13w10a|[[File:Cocoa Age 3 (S) JE2.png|32px]] Cocoa with data 12–15 now use the age 2 texture, resulting in a broken appearance, preventing previously mentioned crashes.}}
{{History||1.6.1|snap=13w18a|Cocoa beans have been removed from [[dungeon]] [[chest]]s.}}
{{History|||snap=13w19a|Brown [[Terracotta|stained clay]] can now be [[crafting|crafted]] using cocoa beans.}}
{{History||1.7.2|snap=13w41a|Brown [[stained glass]] can now be crafted using cocoa beans.}}
{{History||1.8|snap=14w07a|[[File:Cocoa Age 0 (S) JE2.png|32px]] [[File:Cocoa Age 1 (S) JE2.png|32px]] [[File:Cocoa Age 2 (S) JE2.png|32px]] [[File:Missing Model JE1.png|32px]] The top textures of cocoa now rotate with the blocks themselves (cocoa facing north remaining visually unaffected), and cocoa of age 3 has [[Missing model|no model]].}}
{{History|||snap=14w10a|[[File:Cocoa Age 0 (S) JE3.png|32px]] [[File:Cocoa Age 1 (S) JE3.png|32px]] [[File:Cocoa Age 2 (S) JE3.png|32px]] [[File:Missing Model JE2.png|32px]] The large section of cocoa is shaded, and the missing model (which age 3 cocoa uses) has changed.}}
{{History|||snap=14w25a|[[File:Cocoa Age 0 (S) JE4.png|32px]] [[File:Cocoa Age 1 (S) JE4.png|32px]] [[File:Cocoa Age 2 (S) JE4.png|32px]] The connecting region of cocoa is now shaded.}}
{{History|||snap=14w26a|Cocoa with data 12–15 has been effectively removed from the game, as such blocks now convert to a proper value with {{cmd|setblock}}. Loading worlds with existing out of range cocoa crash the game.}}
{{History|||snap=14w30a|Cocoa beans can now be used to dye [[banner]]s.}}
{{History||1.13|snap=17w47a|The different data values for the <code>dye</code> ID have been split up into their own IDs.
|Prior to [[1.13/Flattening|''The Flattening'']], this block's and item's numeral ID were respectively 127 and 351.}}
{{History||1.14|snap=18w43a|Cocoa beans can now be used to craft [[brown dye]].
|Cocoa beans can no longer be used as a [[dye]].
|All of the dye-related functions and crafting recipes of cocoa beans (except cookies) have been transferred to brown dye.
|"Cocoa Beans" item has been renamed to "Cocoa".
|[[File:Cocoa Beans JE4 BE3.png|32px]] The texture of cocoa has been changed.
|[[File:Cocoa Age 0 (S) JE5.png|32px]] [[File:Cocoa Age 1 (S) JE5.png|32px]] [[File:Cocoa Age 2 (S) JE5.png|32px]] The textures of cocoa have been changed.
|[[File:Cocoa Age 0 (texture) JE2 BE2.png|32px]] [[File:Cocoa Age 1 (texture) JE2 BE2.png|32px]] Textures for cocoa age 0 and 1 has palette left, visible only on particles.
|Cocoa now has a placement [[sound]].}}
{{History|||snap=19w03a|Placing cocoa into the new [[composter]] has a 50% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Cocoa now has a 65% chance of increasing the compost level in a composter by 1.}}
{{History|||snap=19w11b|"Cocoa" item has been renamed back to "Cocoa Beans".{{verify|was this not just one bug that affected other crops as well? if so cite the ticket and add to all other affected pages}}}}
{{History||1.18|snap=Pre-release 5|[[File:Cocoa Age 0 (texture) JE3 BE3.png|32px]] [[File:Cocoa Age 1 (texture) JE3 BE3.png|32px]] Textures for cocoa age 0 and 1 were changed. This visually changes only particles.}}
{{History||1.19|snap=22w11a|[[File:Cocoa Age 2 (S) JE6.png|32px]] The texture and model of cocoa age 2 have been changed.}}

{{History|pocket alpha}}
{{History||v0.3.0|[[File:Cocoa Beans JE1 BE1.png|32px]] Added cocoa beans. They are currently unobtainable and serve no purpose.}}
{{History||v0.8.0|snap=build 1|[[File:Cocoa Beans JE3 BE2.png|32px]] The texture of cocoa beans has been changed.
|Cocoa beans can be [[crafted]] from an [[orange dye]] and an [[ink sac]], or from [[dandelion yellow]], [[rose red]], and an ink sac, despite there being no way of obtaining ink sacs at the time.}}
{{History|||snap=build 3|Cocoa beans are now available in [[creative]].}}
{{History||v0.9.0|snap=build 1|[[File:Cocoa Age 0 (S) JE1.png|32px]] [[File:Cocoa Age 1 (S) JE1.png|32px]] [[File:Cocoa Age 2 (S) JE1.png|32px]] {{info needed|How did 12-16 appear?}} Added cocoa.
|Cocoa provides an additional way of obtaining cocoa beans.
|Cocoa beans are now used to craft [[cookie]]s.}}
{{History||v0.11.0|snap=build 14|Cocoa now grows over time.<ref>{{bug|MCPE-7887}}</ref>}}
{{History||?|[[File:Cocoa Age 0 (S) BE4.png|32px]] [[File:Cocoa Age 1 (S) BE4.png|32px]] [[File:Cocoa Age 2 (S) BE2.png|32px]] Cocoa no longer has a stem connecting it to the log.}}
{{History||v0.15.0|snap=Realms build 4|[[File:Cocoa Age 0 (S) JE1.png|32px]] [[File:Cocoa Age 1 (S) JE1.png|32px]] [[File:Cocoa Age 2 (S) JE1.png|32px]] Cocoa stems now render again.<ref>{{bug|MCPE-13579}}</ref>}}
{{History||v0.16.0|snap=build 1|Cocoa beans can no longer be crafted from [[orange dye]] and an ink sac.
|Cocoa beans can no longer be crafted from rose red, dandelion yellow and ink sacs.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Cocoa beans can now be used to dye [[shulker]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Cocoa beans can now be used to dye [[shulker box]]es and [[bed]]s.
|Cocoa beans can now be used to craft [[concrete powder]].}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Cocoa beans can now be used to dye [[banner]]s, [[firework star]]s, and [[glass]].
|Cocoa beans can now be found in [[bonus chest]]s.}}
{{History||1.4.0|snap=beta 1.2.20.1|Cocoa beans can now be used to craft brown [[balloon]]s and [[glow stick]]s.}}
{{History||1.8.0|snap=beta 1.8.0.10|Cocoa beans can now be used to craft [[brown dye]].}}
{{History||1.10.0|snap=beta 1.10.0.3|Cocoa beans are now [[trading|sold]] by [[wandering trader]]s.
|[[File:Cocoa Beans JE4 BE3.png|32px]] The texture of cocoa beans has been changed.
|[[File:Cocoa Age 0 (S) BE4.png|32px]] [[File:Cocoa Age 1 (S) BE4.png|32px]] [[File:Cocoa Age 2 (S) BE4.png|32px]] The textures of cocoa have been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Cocoa beans can now be used to fill up [[composter]]s.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of cocoa beans has been changed from <code>dye/3</code> to <code>cocoa_beans</code>.}}
{{History||1.18.10|snap=beta 1.18.10.22|[[File:Cocoa Age 0 (texture) JE3 BE3.png|32px]] [[File:Cocoa Age 1 (texture) JE3 BE3.png|32px]] Textures for cocoa age 0 and 1 were changed. This visually changes only particles.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Cocoa Beans JE1 BE1.png|32px]] Added cocoa beans.}}
{{History||xbox=TU9|[[File:Cocoa Beans JE3 BE2.png|32px]] The texture of cocoa beans has been changed.}}
{{History||xbox=TU12|[[File:Cocoa Age 0 (S) JE3.png|32px]] [[File:Cocoa Age 1 (S) JE3.png|32px]] [[File:Cocoa Age 2 (S) JE3.png|32px]]{{verify|Were these the models used?}} Added cocoa.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Cocoa Beans JE4 BE3.png|32px]] The texture of cocoa beans has been changed once again.
|[[File:Cocoa Age 0 (S) JE5.png|32px]] [[File:Cocoa Age 1 (S) JE5.png|32px]] [[File:Cocoa Age 2 (S) JE5.png|32px]]{{verify|Were these the models used?}} The textures of cocoa have been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Cocoa Beans JE3 BE2.png|32px]] Added cocoa beans.
|[[File:Cocoa Age 0 (S) JE3.png|32px]] [[File:Cocoa Age 1 (S) JE3.png|32px]] [[File:Cocoa Age 2 (S) JE3.png|32px]]{{verify|Were these the models used?}} Added cocoa.}}
{{History|foot}}

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

== Issues ==
{{issue list|Cocoa Beans|Cocoa Pod}}

== Trivia ==
*Cocoa pods have a different hitbox for each size; however, the top is always 0.25 blocks below the top of the [[log]] it is on.
*If a cocoa pod grows while the player is standing next to it, the player is forced into the appropriate form of [[suffocation prevention]] depending on available space.
*{{IN|be}}, the pixels on top of the fully grown pod are 8/7 the size of those on the side.<ref>{{bug|MC-109055||Fixed}}</ref><ref>{{bug|MCPE-152862}}</ref>

== Gallery ==
<gallery>
CocoaReveal.png|The first screenshot of cocoa pods tweeted by [[Jens Bergensten]], which revealed the plants.
CocoaPlant.png|A screenshot tweeted by Jens Bergensten, showing the pod.
Cocoa Plants in a Jungle Biome (12w19a).png|Naturally generated cocoa pods.
CPlantsJWood.png|A cocoa pod farm.
Cocoa2.jpg|A cocoa farm.
Cocoa beans phases.png|Three growing phases of the cocoa pod.
AreaOptimizedBeanPods.gif|A log and pod layout for optimizing an example area of 14×14 (including walls).
File:CocoaBean15.png|Cocoa beans with values greater than 12 appeared this way
</gallery>

==Literature==
===References===
{{reflist}}

===External Links===
*[https://www.minecraft.net/en-us/article/taking-inventory--cocoa-beans Taking Inventory: Cocoa Beans] – Minecraft.net on December 5, 2019

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

[[Category:Dyes]]
[[Category:Food]]
[[Category:Plants]]
[[Category:Renewable resources]]
[[Category:Non-solid blocks]]
[[Category:Natural blocks]]

[[cs:Kakaové boby]]
[[de:Kakaobohnen]]
[[es:Semillas de cacao]]
[[fr:Fèves de cacao]]
[[hu:Kakaóbab]]
[[ja:カカオ豆]]
[[ko:코코아 콩]]
[[nl:Cacaobonen]]
[[pl:Ziarna kakaowe]]
[[pt:Sementes de cacau]]
[[ru:Какао-бобы]]
[[uk:Какао-боби]]
[[zh:可可豆]]</li></ul>
Added more target parameters: l for maximum player level, lm for minimum player level and rm for minimum range.[4]

Bugs

  • Even if doFireTick command is set to false, lava and lightning will still start fires on nearby blocks, but they won't spread or destroy flammable blocks.
  • When the gamerule command commandBlockOutput is false it will still say when a gamerule is updated.

Examples

  • It is possible to make teleporters using the command block. (e.g. code: /tp @p[r=3] x y z)
  • Commands using coordinates (eg. "/tp" or "/spawnpoint") add 0.5 to integers, like usual. To clarify, the number -33 would be interpreted as -32.5, and the number 187 would be interpreted as 187.5.
  • The player can make a kind of world guard using the command block. (e.g. code: /gamemode @a[r=<radius>] <gamemode>)
  • The commandBlockOutput gamerule does not affect the command block using the /say and /me commands.
  • The commands /say Hello, @p and /tell @p Hello, @p will cause the command block to say user name of the nearest player in the message, however /me Hello, @p just causes it to say "Hello, @p".

Usage of the Command Block

Page detailing innovative, practical uses of the Command Block Tutorials/Command Block

Gallery

References

Advertisement