Minecraft Wiki
Myy730 (talk | contribs)
(+ interwiki)
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
{{Infobox command
 
{{Infobox command
 
|name=setspawn
 
|name=setspawn
|oplevel=op
+
|oplevel=2
 
}}
 
}}
   
Line 25: Line 25:
   
 
[[de:Befehl/setspawn]]
 
[[de:Befehl/setspawn]]
  +
[[zh:命令/setspawn]]

Revision as of 14:59, 22 June 2021

This page describes content that exists only in outdated versions of Minecraft. 
This feature used to be in the game but has since been removed.
Information icon
This feature is exclusive to Java Edition. 

Sets the current location as the default spawn location for new players.

The Classic equivalent of /setworldspawn.

Syntax
setspawn

History

Java Edition Classic
0.0.17a
{{Extension DPL}}<ul><li>[[Explorer Map|Explorer Map]]<br/>{{about|the map used to find rare structures|the craftable map|Map|others|Map (disambiguation)}}{{Needs updating|Add info on the new jungle, swamp, and village maps in Java 1.20.2 Pre-Release 1}}{{Item
| image = <gallery>
Ocean Explorer Map.png | Ocean
Woodland Explorer Map.png | Woodland
Buried Treasure Map.png | Buried Treasure
</gallery>
|image2 = <gallery>
Ocean Explorer Map BE.png | Ocean (BE)
Woodland Explorer Map BE.png | Woodland (BE)
Buried Treasure Map BE.png | Buried in Treasure (BE)
</gallery>
| renewable = 
* '''Buried Treasure''': No
* '''Woodland and Ocean''': Yes
| stackable = Yes (64)
}}
An '''explorer map''' is a special [[map]] used to aid in finding rare [[generated structures]], including [[woodland mansion]]s, [[ocean monument]]s, and [[buried treasure]]s.

== Obtaining ==
=== Trading ===
Apprentice-level [[cartographer]] villagers sell ocean explorer maps for 13 emeralds and a compass. Journeyman-level cartographer villagers sell woodland explorer maps for 14 emeralds and a compass.

{{IN|java}}, if the cartographer is in [[the Nether]] or [[the End]], either spawned or transported, the trades for the map do not unlock. However, {{in|bedrock}}, the cartographer trades for the map are unlocked, but the purchased map shows the same layout as in the corresponding dimension and shows no destination structure, but if cartographer trades are unlocked in an old world type (prior-1.11.0), the game stops ticking.

In ''Java Edition'', each cartographer sells its own unique explorer map that points to a different location than other cartographers. Purchasing another explorer map from the same cartographer results in the same explorer map. In Bedrock Edition, a cartographer sells an explorer map that points to the nearest location, regardless of whether it is explored or previously mapped by another cartographer.<!-- start to glitched out-->

=== Chest loot ===
Treasure maps, in contrast to explorer maps, generate in underwater ruins or in shipwrecks.
{{LootChestItem|buried-treasure-map}}

== Usage ==
[[File:Explorer Map Comparison.gif|thumb|217px|Unexplored and partially explored maps.]]

{{See also|Map#Mapping|Map#Map content}}

=== Locating structures ===
There are three types of explorer maps: woodland, [[ocean]], and buried treasure. The maps differ from a normal map, in that it shows the area's land-water outline, with an orange striated (striped) texture for water<ref>Specifically, biomes in the "water_on_map_outlines" [[Tag#Biomes|biome tag]].</ref>, and the blank map texture for land. The maps show a section of land that contains a [[woodland mansion]], [[monument]] or [[buried treasure]] respectively. This may not be the nearest such [[structure]] to the [[player]]. The structures are displayed as a small icon. If the player icon is smaller than it would be on a normal map, that means the player is a great distance away. When the player is less than 1027 blocks away from the map border, the icon returns to the proper size. When the player reaches the map's area of land (512×512), the [[map]] fills in like a normal map.

The basic functions of a buried treasure explorer map are similar to that of the other two. However, instead of showing the structure icon on the map, it shows a red X instead. The [[buried treasure]] structure is located on the same X and Z coordinates as the middle of the X (the player marker may need to be aligned with the bottom of the middle 2×2 pixel square of the X). To locate the [[chest]] spot, hold the treasure map with both hands, not in the offhand slot.

=== Cloning ===
{{Crafting
|showdescription=1
|shapeless=1
|name=[[Explorer Map]]<br>(cloned)
|;;;Empty Map;Empty Map;Empty Map;Empty Map;Empty Map 
|;;;;Empty Map;Empty Map;Empty Map;Empty Map
|;;;;;Empty Map;Empty Map;Empty Map
|Ocean Explorer Map; Woodland Explorer Map; Buried Treasure Map; Ocean Explorer Map; Woodland Explorer Map; Buried Treasure Map; Ocean Explorer Map; Woodland Explorer Map
|Empty Map
|;;;;;;Empty Map;Empty Map 
|;Empty Map;Empty Map;Empty Map;Empty Map;Empty Map;Empty Map;Empty Map 
|;;Empty Map;Empty Map;Empty Map;Empty Map;Empty Map;Empty Map
|;;;;;;;Empty Map
|Output= Ocean Explorer Map,2; Woodland Explorer Map,3; Buried Treasure Map,4; Ocean Explorer Map,5; Woodland Explorer Map,6; Buried Treasure Map,7; Ocean Explorer Map,8; Woodland Explorer Map,9
|type= Miscellaneous
|description=The output has the same map center as the input map, and the same [[monument]], [[woodland mansion]] or [[buried treasure]] marker. Cloned maps are stackable.
}}

The parts of the world that have already been explored and mapped are copied, and newly explored areas appear on both instances. In Creative mode, cloned explorer maps can be obtained by pick blocking on the explorer map displayed on [[item frames]] (the map needs to be out of the [[player]]'s inventory when using pick block, or else that map moves into the active hotbar slot).

== Sounds ==
{{edition|java}}:
{{Sound table
|sound=Drawmap1.ogg
|sound2=Drawmap2.ogg
|sound3=Drawmap3.ogg
|subtitle=Map drawn
|source=block
|description=When an explorer map is edited using a cartography table
|id=ui.cartography_table.take_result
|translationkey=subtitles.ui.cartography_table.take_result
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}

{{edition|bedrock}}: ''None''

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Map
|spritetype=item
|nameid=filled_map
|form=item
|translationkey=filled_map.mansion,filled_map.ocean,filled_map.buried_treasure
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Map
|spritetype=item
|nameid=filled_map
|aliasid=map
|id=358
|form=item
|translationkey=item.map.exploration.monument.name,item.map.exploration.mansion.name,item.map.exploration.treasure.name
|foot=1}}

=== Metadata ===
{{see also|Bedrock Edition data values}}
{{IN|bedrock}}, the item [[Data value]] distinguishes explorer maps from one another:

{{:Map/DV}}

=== Item data ===
An explorer map differs from a map in that its <code>display</code> tag is set, which includes a <code>Mapcolor</code> and a <code>LocName</code>; also its <code>Decorations</code> list includes an entry for its target monument, mansion or buried treasure. Its [[Map item format#map_<#>.dat format|map item entry]] is identical to that of a normal map, except that by the time the player sees it, its <code>colors</code> byte array is pre-filled with explorer maps' characteristic land-water boundary lines and water shading.

<div class="treeview">
It should be noted that this additional data is stored in the Cartographer's NBT data and in the inventory item's NBT data, and not in the map file (e.g. <samp>map_0.dat</samp>). If the [[player]] were to use the {{cmd|give}} command to give themselves a map with the same map ID as an existing explorer map, it would still have the Ocean Monument or the Woodland Mansion icon on the map, but it would simply be named "Map" instead of, for example, "Ocean Explorer Map".
* {{nbt|compound}} Item data
** {{nbt|compound|tag}}: 
*** {{nbt|compound|display}}: How the map looks in an item slot. See also [[Player.dat_format#Display Properties]].
**** {{nbt|string|Name}}: The name the map is given. In this case, they are localized strings: either <code>{"translate":"filled_map.monument"}</code>,<code>{"translate":"filled_map.mansion"}</code> or <code>{"translate":"filled_map.buried_treasure"}</code>.
**** {{nbt|int|MapColor}}: Color codes are calculated from the Red, Green and Blue components using this formula:<br>'''<span style="color:red">Red</span>[[wikipedia:Logical shift|<<]]16 + <span style="color:green">Green</span><<8 + <span style="color:blue">Blue</span>'''.<ref group=note>For positive values larger than 0x00FFFFFF, the top byte is ignored. All negative values produce white.</ref> Monument maps use 3830373, which is {{color swatch|58|114|101}}. Mansion maps use 5393476, which is {{color swatch|82|76|68}}. Buried treasure explorer maps do not use a color code.
*** {{nbt|list|Decorations}}:
**** {{nbt|compound}}: One of these for each icon on the map. Explorer maps always have at least one representing their target.
***** {{nbt|string|id}}: An arbitrary unique string identifying the decoration. For explorer map target structures, this is "+".
***** {{nbt|double|rot}}: The rotation of the icon. For explorer map target structures, this is always 180.
***** {{nbt|byte|type}}: The ID of the [[Map#Map icons|map icon]]: 8 for a mansion map, 9 for a monument map, 26 for a treasure map.
***** {{nbt|double|x}}: The world x-coordinate of the target structure icon.
***** {{nbt|double|z}}: The world z-coordinate of the target structure icon.
</div>
; Notes
{{notelist}}

== Achievements ==
{{load achievements|Treasure Hunter}}

== History ==
{{History|java}}
{{History||1.11|snap=16w39a|[[File:Woodland Explorer Map JE1 BE1.png|32px]] [[File:Ocean Explorer Map JE1 BE1.png|32px]] Added woodland and ocean explorer maps.}}
{{History|||snap=16w41a|Explorer maps can now no longer be zoomed out.}}
{{History||1.13|snap=18w10a|[[File:Map (item) JE1 BE1.png|32px]] Added buried treasure explorer maps.}}
{{History|||snap=18w11a|Buried treasure explorer maps now generate in the [[chest]]s of [[shipwreck]]s.}}
{{History||1.14|snap=18w43a|[[File:Woodland Explorer Map JE2 BE2.png|32px]] [[File:Ocean Explorer Map JE2 BE2.png|32px]] [[File:Map (item) JE2 BE2.png|32px]] The textures for explorer maps have now been changed.}}
{{History||1.20.2|snap=1.20.2 Pre-release 1|Updated structure icons on explorer maps sold by cartographers.}}
{{History||Villager Trade Rebalance<br>(Experimental)|link=Java Edition 1.20.2|snap=1.20.2 Pre-release 1|Added seven new maps which cartographers can sell.}}

{{History|pocket}}
{{History||1.1.0|snap=alpha 1.1.0.0|[[File:Woodland Explorer Map JE1 BE1.png|32px]] [[File:Ocean Explorer Map JE1 BE1.png|32px]] Added explorer maps.<ref>{{Mcnet|discovery-update-pocket-and-win-10-soon|The Discovery Update: on Pocket and Win 10 soon|March 29, 2017}}</ref>
|Explorer maps are not yet obtainable in [[survival]] mode.}}
{{History|||snap=alpha 1.1.0.3|Explorer maps are now obtainable as [[trading|trades]] from [[cartographer]] [[villager]]s.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|[[File:Map (item) JE1 BE1.png|32px]] Added buried treasure explorer maps.}}
{{History|||snap=beta 1.2.20.1|Treasure maps now generate in [[underwater ruins]] [[chest]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Woodland Explorer Map JE2 BE2.png|32px]] [[File:Ocean Explorer Map JE2 BE2.png|32px]] [[File:Map (item) JE2 BE2.png|32px]] The textures for explorer maps have now been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|[[Trading]] has now been changed, woodland and ocean explorer maps now cost a [[compass]] and 12 [[emerald]]s.
|Journeyman-level [[cartographer]] [[villager]]s no longer [[trading|sell]] 2 type of explorer map as they now have {{frac|1|3}} chance to sell woodland explorer maps, {{frac|1|3}} chance to sell ocean explorer maps, or {{frac|1|3}} chance to sell other [[item]]s<!-- empty locator map--> as part of their [[trading|trades]].
|Woodland explorer maps can now be [[trading|bought]] from fletcher [[villager]]s.}}
{{History||1.12.0|snap=beta 1.12.0.3|Journeyman-level fletcher villagers no longer [[trading|sell]] woodland explorer maps.}}
{{History||1.13.0|snap=beta 1.13.0.1|[[File:Woodland Explorer Map BE3.png|32px]] [[File:Ocean Explorer Map BE3.png|32px]] [[File:Buried Treasure Map BE3.png|32px]] The textures of explorer maps have now been changed.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of maps has been changed from <code>map</code> to <code>filled_map</code>.}}

{{History|console}}
{{History||xbox=TU54|xbone=CU44|ps=1.52|wiiu=Patch 24|switch=1.0.4|[[File:Woodland Explorer Map JE1 BE1.png|32px]] [[File:Ocean Explorer Map JE1 BE1.png|32px]] Added explorer maps.}}
{{History|PS4}}
{{History||1.90|[[File:Woodland Explorer Map JE2 BE2.png|32px]] [[File:Ocean Explorer Map JE2 BE2.png|32px]] The textures for explorer maps have now been changed.}}

{{History|new3ds}}
{{History||1.9.19|[[File:Woodland Explorer Map JE1 BE1.png|32px]] [[File:Ocean Explorer Map JE1 BE1.png|32px]] Added explorer maps.}}
{{History|foot}}

== Issues ==
{{Issue list}}

== Trivia ==
* When a [[cartographer]] generates the trade offers for the explorer maps, it chooses the location of one of the nearest structures of the respective type ([[monument]] or [[woodland mansion]]).
* For the reason above, explorer maps obtained from one cartographer are always the same. Also, if two cartographers unlock the explorer map trades approximately at the same place and at the same time, the map locations are usually identical. This sometimes also happens when finding multiple treasure maps from [[ocean ruins]].
* Explorer maps fill as the [[chunk]]s are generated, rather than when the [[player]] holds them while in the area; leaving an explorer map while exploring the area still fills the map.
* Buried treasure explorer maps are named ''Buried Treasure Map'' {{in|java}} while {{in|bedrock}}, they are named ''Treasure Map''.
* It is possible for a cartographer to give a monument or woodland mansion explorer map for areas where the [[generated structures|structures]] would have spawned in the world, but were unable to as a result of terrain generation. As a result, explorer maps, unfortunately, don't always guarantee that a structure exists at the purported location. This is most common with woodland mansion explorer maps, due to its generation algorithm.
* On [[Bedrock Edition]], inventory editors and add-ons can be used to create Explorer Maps that lead to any structure.

== Gallery ==
<gallery>
File:Explorer Maps.png|An ocean explorer map in the [[off-hand]], a woodland explorer map in the main hand, and a [[cartographer]] [[villager]] in between them.
File:Partial Explorer Map.png|A partially-explored explorer map.
File:ExplorerToNormal Map Comparison.png|Two fully-explored maps of the same place, one of which is a woodland explorer map.
File:Buried Treasure Explorer Map.png|An [[item frame]] holding a buried treasure explorer map. The player can see the red X on the left side of the map.
File:Purchase.png|Purchasing explorer maps from a cartographer.
</gallery>

== See also ==
* [[Map]]
* [[Woodland Mansion]]
* [[Ocean Monument]]
* [[Shipwreck]]
* [[Buried treasure]]

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--explorer-map Taking Inventory: Explorer Map] – Minecraft.net on November 13, 2019

{{Items}}

[[de:Schatzkarte]]
[[es:Mapa (localización de estructura)]]
[[fr:Carte d'exploration]]
[[ja:探検家の地図]]
[[ko:탐험 지도]]
[[pl:Mapa eksploracyjna]]
[[pt:Mapa de exploração]]
[[ru:Карта сокровищ]]
[[zh:探险家地图]]</li><li>[[:Category:Plants|Category:Plants]]<br/>All pages covering blocks of such things as tall grass and flowers.

[[Category:Blocks]]
[[Category:Items]]

[[cs:Kategorie:Rostliny]]
[[es:Categoría:Plantas]]
[[fr:Catégorie:Plante]]
[[hu:Kategória:Növények]]
[[it:Categoria:Piante]]
[[ja:カテゴリ:植物]]
[[ko:분류:식물]]
[[nl:Categorie:Planten]]
[[pl:Kategoria:Rośliny]]
[[pt:Categoria:Plantas]]
[[ru:Категория:Растения]]
[[th:หมวดหมู่:พืช]]
[[zh:Category:植物]]</li></ul>
Added /setspawn.
Java Edition Indev
0.31
{{Extension DPL}}<ul><li>[[Compass|Compass]]<br/>{{About|the item used to point to the world spawn or to a lodestone|the item used to point to the location of the player's last death|Recovery Compass}}
{{Item
| image = Compass.gif
| image2 = Lodestone Compass.gif
| renewable = Yes
| stackable = '''Compass:''' Yes (64)<br>'''Lodestone Compass:''' No
}}
A '''compass''' is an item used to point to the world spawn or to a [[lodestone]].

== Obtaining ==

=== Crafting ===

{{Crafting
                |B1= Iron Ingot
|A2= Iron Ingot |B2= Redstone Dust   |C2= Iron Ingot
                |B3= Iron Ingot
|Output= Compass
|type= Tool
}}

=== Chest loot ===

{{LootChestItem|compass}}

=== Trading ===

{{IN|java}}, expert-level librarian [[villager]]s have a 50% chance to sell a single compass for 4 [[emerald]]s.

{{IN|bedrock}}, expert-level librarian villagers have a {{frac|1|3}} chance to sell a single compass for 4 emeralds.

== Usage ==

Normally, the compass' needle points toward the world [[Spawn#World spawn|spawn point]]. The compass points to spawn when viewed in any way, including as a dropped [[Item (entity)|item]], in a player's hand, in an inventory or the crafting table, or in an [[item frame]]. The direction the needle points to is relative to the player who is viewing it. When a compass in an item frame is rotated, the needle turns accordingly.

In [[the Nether]] or [[the End]], the compass' needle spins and points in random directions.

The compass can be used on a [[lodestone]], after which it is named lodestone compass by default and points to that lodestone as long as the compass is in the same dimension as the lodestone, but if the compass is taken to a different dimension, it spins randomly, as a normal compass would in the Nether or the End. If the lodestone is destroyed, it also spins randomly, even if the lodestone is replaced afterward.  However, if a lodestone compass is placed in storage, the lodestone can be broken and replaced without the compass losing the attunement, as long as the compass remains in storage while the lodestone is missing.

A lodestone compass appears [[enchanting|enchanted]], similar to the [[Enchanted Golden Apple|enchanted golden apple]].

Using {{cmd|setworldspawn}} to change the world spawn also changes where the compass points.

=== Crafting ingredient ===

{{crafting usage|Compass, Compass.gif}}

=== Anvil usage ===

{{:Map/BE|position}}

=== Trading ===

A single compass can be sold to a journeyman-level cartographer villager for 1 [[emerald]].{{only|java}}

A single compass can be sold to an expert-level cartographer villager for 1 emerald as their sixth trade.{{only|bedrock}}
 
A compass is also part of the cost of [[explorer map]]s:

* An ocean explorer map and{{only|java|short=1}}/or{{only|bedrock|short=1}} a woodland explorer map can be bought from a journeyman-level cartographer for 12 emeralds and one compass, as part of their fifth trade.{{only|bedrock}}

* {{IN|java}}, apprentice-level cartographer villagers offer to sell an ocean explorer map for 13 emeralds and a compass, and journeyman-level cartographer villagers offer to sell a woodland explorer map for 14 emeralds and one compass.

=== Enchantments ===

A compass can receive the following [[enchantment]]s:
{|class="wikitable col-2-center col-3-right"
|+
!Name
!Max Level
![[Enchanting|Method]]
|-
|[[Curse of Vanishing]]
|I
|{{Inventory slot|Anvil}}
|-
|}

== Sounds ==
{{edition|java}}:
{{Sound table
|sound=Lodestone lock1.ogg
|sound2=Lodestone lock2.ogg
|source=player
|subtitle=Lodestone Compass locks onto Lodestone
|description=When a compass is used on a lodestone
|id=item.lodestone_compass.lock
|translationkey=subtitles.item.lodestone_compass.lock
|volume=1.0
|pitch=''varies'' <ref group=sound>Can be 0.85 or 0.95 for each sound</ref>
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Lodestone lock1.ogg
|sound2=Lodestone lock2.ogg
|source=block
|description=When a compass is used on a lodestone
|id=lodestone_compass.link_compass_to_lodestone
|volume=1.0
|pitch=0.85-0.95
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Compass
|spritetype=item
|nameid=compass
|form=item
|translationkey=item.minecraft.compass,item.minecraft.lodestone_compass
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Compass
|spritetype=item
|nameid=compass
|id=391
|form=item}}
{{ID table
|displayname=Lodestone Compass
|spritename=lodestone-compass-be
|spritetype=item
|nameid=lodestone_compass
|aliasid=lodestonecompass
|id=602
|form=item
|translationkey=item.lodestonecompass.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/Compasses}}
</div>

{{el|bedrock}}:
: See [[Bedrock Edition level format/Item format]].

== Advancements ==
{{load advancements|Country Lode}}

== History ==
{{History|java alpha}}
{{History||v1.1.0|[[File:Compass JE1.gif|32px]] Added compasses.
|They have 102 visually distinct frames due to how the texture is generated - see the section below.}}
{{History|java beta}}
{{History||1.8|snap=Pre-release|Compasses can now be found in library [[chest]]s in the new [[strongholds]].}}
{{History|java}}
{{History||1.3.1|snap=12w21a|Librarian [[villager]]s now [[trading|sell]] 1 compass for 10–11 [[emerald]]s, making them [[renewable]].}}
{{History||1.4.2|snap=12w34a|Since the mapping system has been changed, a compass can now be used to [[crafting|craft]] an empty [[map]].}}
{{History||1.5|snap=13w02a|[[File:Compass JE2 BE2.gif|32px]] Compasses now, instead of splitting two textures, use the new animation feature included in texture packs. As a result, they are considerably less precise, having only 29 visually distinct frames. }}
{{History||1.8|snap=14w02a|Librarian villagers now sell 1 compass for 10–12 emeralds.}}
{{History||1.9|snap=15w31a|Compasses are now broken up into individual textures, instead of having every individual frame on one vertical strip like with animated textures.}}
{{History|||snap=15w43a|The average yield of compasses in [[stronghold]] library [[chest]]s has been increased.}}
{{History||1.11|snap=16w39a|Cartographer [[villager]]s have been added, who [[trading|buy]] compasses as their tier 2 trade.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 345.}}
{{History|||snap=18w11a|Compasses can now generate in [[shipwreck]] [[chest]]s.}}
{{History||1.14|snap=18w48a|Compasses can now generate in chests in [[village]] cartographer houses.}}
{{History||1.16|snap=20w13a|[[File:Lodestone Compass JE1.gif|32px]] Compasses can now be used on [[lodestone]]s to make them point to the stones.
|Compasses now point to the center of the spawn point block, instead of its north-west corner.}}
{{History|||snap=20w14a|Compasses now have the <code>LodestonePos</code>, <code>LodestoneDimension</code>, and <code>LodestoneTracked</code> data fields. If <code>LodestoneTracked</code> is zero, the game skips checking for a lodestone in the specified position.
|Compasses can now have the [[Curse of Vanishing]] [[enchantment]] on them.}}
{{History|||snap=20w19a|Compasses no longer work in the [[recipe book]].<ref>{{bug|MC-116293}}</ref>}}
{{History|||snap=20w22a|Compasses no longer work in the villager trading GUI.<ref>{{bug|MC-182888}}</ref>}}
{{History||1.17|snap=20w48a|[[File:Compass JE3.gif|32px]] [[File:Lodestone Compass JE2.gif|32px]] The textures of compass and lodestone compass have been changed.}}
{{History||1.19|snap=22w13a|Compasses may now be found in [[ancient city]] [[chest]]s.}}
{{History|||snap=22w14a|Compasses can now used to craft [[recovery compass]]es.}}

{{History|pocket alpha}}
{{History||v0.2.0|[[File:Compass BE1.png|32px]] Added compasses.
|Compasses currently have no function or legitimate method of obtaining them.}}
{{History||v0.8.0|snap=build 1|[[File:Compass JE2 BE2.gif|32px]] Added animated texture to compasses.
|Compasses are now functional and [[crafting|craftable]]. They have been added into the Creative Inventory.}}
{{History||v0.14.0|snap=build 1|Compasses must now be added to a [[map]] using an [[anvil]] to add the location marker.}}
{{History|pocket}}
{{History||1.0.0|snap=?|[[Windows 10 Edition]] can now use the [[anvil]], as well as the [[crafting table]], to apply position markers, with compasses just as [[Pocket Edition]] can in general.}}
{{History||1.0.4|snap=alpha 1.0.4.0|Librarian [[villager]]s now [[trading|sell]] 1 compass for 10–12 [[emerald]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.3|Cartographer villagers have been added, who [[trading|buy]] compasses as part of their tier 2 trade.
|Compasses used with emeralds can be used to buy explorer maps as part of cartographer villagers' fourth tiers trade.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Compasses can now be found inside map room [[chest]]s in [[shipwreck]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|Compasses can now be found in [[village]] cartographer house chests.}}
{{History||1.11.0|snap=beta 1.11.0.4|[[Trading]] has been changed, cartographer [[villager]]s now [[trading|buy]] compassess as part of their fourth tier trades.
|Compasses used with [[emerald]]s can now be used to buy explorer maps as part of cartographer and fletcher villagers' third tier trades.
|Librarian villagers now have a {{frac|1|3}} chance to [[trading|sell]] compasses for 4 emeralds as part of their fourth tier trades.}}
{{History||1.16.0|snap=beta 1.16.0.57|[[File:Lodestone Compass BE1.gif|32px]] Compasses can now be used on [[lodestone]]s to make them point to the stones.
|Compasses now have the <code>LodestonePos</code>, <code>LodestoneDimension</code>, and <code>LodestoneTracked</code> data fields. If <code>LodestoneTracked</code> is zero, the game skips checking for a lodestone in the specified position.
|Compasses can now have the [[Curse of Vanishing]] [[enchantment]] on them.}}
{{History||1.16.100|snap=beta 1.16.100.56|Changed the ID {{code|lodestonecompass}} to {{code|lodestone_compass}}.}}
{{History||1.17.0|snap=beta 1.17.0.54|[[File:Compass JE3.gif|32px]] The texture of compass has been changed.}}
{{History||1.18.10|snap=beta 1.18.10.20|[[File:Lodestone Compass JE2.gif|32px]] The texture of lodestone compass has been changed.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Compass JE2 BE2.gif|32px]] Added compasses.}}

{{History|New Nintendo 3DS Edition}}
{{History||0.1.0|[[File:Compass JE2 BE2.gif|32px]] Added compasses.}}
{{History|foot}}
	
=== Texture generation prior to Java Edition 13w02a ===
{{:Procedural animated texture generation/Compasses}}

== Issues ==
{{issue list}}

== Gallery ==

<gallery>
12w21a CompassPurchase.png|Purchasing a compass from a librarian [[villager]].
</gallery>

== See also ==
*[[Clock]]
*[[Tutorials/Navigation|Navigation]]

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--compass Taking Inventory: Compass] – Minecraft.net on August 15, 2019

{{Items}}

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

[[cs:Kompas]]
[[de:Kompass]]
[[es:Brújula]]
[[fr:Boussole]]
[[hu:Iránytű]]
[[it:Bussola]]
[[ja:コンパス]]
[[ko:나침반]]
[[nl:Kompas]]
[[pl:Kompas]]
[[pt:Bússola]]
[[ru:Компас]]
[[uk:Компас]]
[[zh:指南针]]</li><li>[[Cooked Cod|Cooked Cod]]<br/>{{redirect|Cooked Fish|cooked salmon|Cooked Salmon}}
{{Item
| title = Cooked Cod
| image = Cooked Cod.png
| renewable = Yes
| heals = {{hunger|5}}
| stackable = Yes (64)
}}
'''Cooked cod''' is a food item obtained by cooking [[raw cod]].

== Obtaining ==

=== Mob loot ===
====Cod====
[[Cod]] always drops 1 [[Raw Cod|raw cod]] when killed, unaffected by Looting.<ref>{{bug|MC-212795||Salmon & Fish mobs are not affected by Looting}}</ref> If it is killed while on [[fire]], it drops 1 cooked cod instead.
====Dolphins ====
When killed, [[Dolphin|dolphins]] drop 0–1 raw cod. The maximum amount is increased by 1 per level of [[Looting]], for a maximum of 0-4 with Looting III. If killed while on fire, they drop cooked cod instead.
====Guardians and elder guardians====
[[Guardian]]s and [[elder guardian]]s have a 40% and 50% chance, respectively, to drop raw cod when killed. {{IN|java}}, cooked cod is dropped if a guardian is on fire when killed.

Guardians and elder guardians also drop a 2.5% chance to drop a random fish, with 60% of them being raw cod, which drops as cooked if the guardian was on fire. The chance of getting the fish drop is increased by 1% per level with [[Looting]] (for a maximum of 5.5% with Looting III), but the type of fish is not affected.
====Polar bears====
[[Polar bear]]s have a 75% chance of dropping 0–2 raw cod when killed. The maximum amount can be increased by 1 per level of Looting, for a maximum of 0-5 with Looting III. If killed while on fire, they drop cooked cod instead.
===Chest loot===
{{LootChestItem|cooked-cod}}

===Cooking===

Cooked cod can be obtained by cooking [[raw cod]] in a [[furnace]], [[smoker]], or [[campfire]]. 

{{smelting|Raw Cod|Cooked Cod|0,35}}

===Trading===

Novice-level Fisherman [[Villager|villagers]] have a 50% chance to sell 6 cooked cod for 6 raw cod and 1 [[emerald]].

== Usage ==

=== Food ===

To eat cooked cod, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|5}} [[hunger]] and 6 hunger [[Hunger#Mechanics|saturation]].

=== Wolves ===

{{IN|Bedrock}}, cooked cod can be used to feed a wolf not at full health, healing by {{hp|5|mob=1}}. However, unlike other wolf food, cooked cod cannot be used to speed up the growth of baby wolves nor used to breed them.

==Sounds==
{{Sound table/Entity/Food}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Cooked Cod
|spritetype=item
|nameid=cooked_cod
|itemtags=fishes
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|showaliasids=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Cooked Cod
|spritetype=item
|nameid=cooked_cod
|aliasid=cooked_fish
|id=268
|form=item
|translationkey=item.cooked_fish.name
|foot=1}}

== Achievements ==

{{load achievements|Delicious Fish}}

== Advancements ==
{{load advancements|Husbandry;A Balanced Diet}}

== Video ==
<div style="text-align:center">{{yt|nPl0HUGPMcA}}</div>

== History ==

{{History|java alpha}}
{{History||v1.2.0|snap=<nowiki>?|slink=:Category:Information needed requiring unarchived version|[[File:Cooked Cod JE1 BE1.png|32px]] Added cooked fish, which restores {{hp|5}}.}}
{{History|java beta}}
{{History||1.5|Cooking fish now gives the '''Delicious Fish''' [[achievement]].}}
{{History||1.8|snap=Pre-release|Cooked fish is now stackable to 64.
|Cooked fish now fills {{hunger|5}} instead of {{hp|5}}.}}
{{History|java}}
{{History||1.3.1|snap=12w21a|Farmer [[villager]]s now [[trading|buy]] 9–12 cooked fish for 1 [[emerald]].}}
{{History||1.8|snap=14w02a|[[Trading]] has been changed: fisherman [[villager]]s now [[trading|sell]] 6 cooked fish for 1 [[emerald]] plus 6 [[raw cod|raw fish]].
|Farmer villagers no longer buy cooked fish.}}
{{History|||snap=14w04a|The name of cooked fish has been corrected from <code>cooked_fished</code> to <code>cooked_fish</code>.}}
{{History|||snap=14w25a|Cooked fish are now obtainable rare [[drops]] from [[guardian]]s and [[elder guardians]].}}
{{History||1.13|snap=17w47a|The different data values for the <code>cooked_fish</code> IDs have been split up into their own IDs.
|"Cooked Fish" have been renamed to "Cooked Cod".
|Prior to [[1.13/Flattening|''The Flattening'']], these [[item]]s' numeral ID were 349 and 350.}}
{{History|||snap=18w08b|[[Cod]], and other [[fish]], have been added as [[mob]]s, which [[drops|drop]] their cooked [[item]] form when killed with [[fire]].
|[[File:Cooked Cod JE2 BE2.png|32px]] The texture of cooked cod has been changed.}}
{{History|||snap=18w10a|Cooked cod now generates in [[buried treasure]] [[chest]]s.}}
{{History||1.14|snap=18w43a|[[File:Cooked Cod JE3.png|32px]] The texture of cooked cod has been changed.}}
{{History|||snap=18w47b|[[File:Cooked Cod JE4 BE3.png|32px]] The texture of cooked cod has been changed, once again to match {{el|be}}.}}

{{History|pocket alpha}}
{{History||v0.11.0|snap=build 1|[[File:Cooked Cod JE1 BE1.png|32px]] Added cooked fish.}}
{{History||v0.12.1|snap=build 1|Cooked fish now restores [[hunger]] instead of [[health]].}}
{{History||v0.16.0|snap=build 1|Cooked fish is now [[drops|dropped]] by [[guardian]]s and [[elder guardian]]s.}}
{{History|pocket}}
{{History||1.0.4|snap=alpha 1.0.4.0|Fisherman [[villager]]s now [[trading|sell]] 6 cooked fish for 1 [[emerald]] plus 6 [[raw cod|raw fish]].}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|[[Cod]] and other [[fish]] have been added as [[mob]]s, which [[drops|drop]] their cooked [[item]] form when killed with [[fire]].
|[[File:Cooked Cod JE2 BE2.png|32px]] The texture of cooked fish has been changed.}}
{{History||1.5.0|snap=beta 1.5.0.4|[[File:Cooked Cod JE4 BE3.png|32px]] The texture of cooked fish has been changed.}}
{{History||1.7.0|snap=beta 1.7.0.2|"Cooked Fish" has been renamed to "Cooked Cod".}}
{{History||1.11.0|snap=beta 1.11.0.4|Fisherman [[villager]]s now have a 50% chance to [[trading|sell]] 6 cooked cod for 6 [[raw cod]] and 1 [[emerald]].}}
{{History||1.16.100|snap=beta 1.16.100.52|Cod now drop their cooked cod when killed with fire.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|[[File:Cooked Cod JE1 BE1.png|32px]] Added cooked fish.}}
{{History||xbox=TU5|Cooked fish is now stackable to 64.
|Cooked fish now fills [[hunger]] instead of [[health]].}}
{{History||xbox=TU69|ps=1.76|wiiu=Patch 38|"Cooked Fish" has been renamed to "Cooked Cod".
|[[File:Cooked Cod JE2 BE2.png|32px]] The texture of cooked cod has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Cooked Cod JE1 BE1.png|32px]] Added cooked fish.}}
{{History|foot}}

== Issues ==

{{Issue list}}

{{Items}}

[[Category:Food]]
[[Category:Renewable resources]]

[[de:Gebratener Kabeljau]]
[[es:Bacalao cocinado]]
[[ko:익힌 대구]]
[[pt:Bacalhau assado]]
[[ru:Жареная треска]]
[[th:Cod (ไอเทม)]]
[[zh:熟鳕鱼]]</li></ul></nowiki>
Removed all commands.