Minecraft Wiki
m (Revert edits by 190.24.59.184 (talk))
Tag: Rollback
(6 intermediate revisions by 3 users not shown)
Line 7: Line 7:
 
Sets or queries a [[game rule]] value.
 
Sets or queries a [[game rule]] value.
   
==syntax==
+
==Syntax==
  +
  +
* '''Java Edition'''
  +
: <code>gamerule <''rule name''> [<value>]</code>
  +
  +
* '''Bedrock Edition'''
  +
: <code>gamerule <rule: BoolGameRule> [value: Boolean]</code>
  +
: <code>gamerule <rule: IntGameRule> [value: int]</code>
  +
: {{IN|bedrock}}, gamerules can also be changed in the world options and certain gamerules can be toggled on and off with the command without cheats enabled. This only works in singleplayer, server gamerules and server settings cannot be adjusted using the client settings, even if a player is opped.
  +
  +
The rule names are listed [[Game rule#List of game rules|here]].
   
 
==Arguments==
 
==Arguments==
  +
  +
Arguments {{in|java}} are case sensitive. Arguments {{in|bedrock}} are shown for tab autocompletion as lowercase, but when typed are case-insensitive.
  +
  +
<code><''rule name''></code> (BE: <code>''rule'': BoolGameRule</code> or <code>''rule'': IntGameRule</code>)
  +
: Specifies the game rule to set or query. Must be one of the predefined game rules; see [[Game rule]].
  +
  +
<code><''value''></code> (BE: <code>''value'': Boolean</code> or <code>value: int</code>) (optional)
  +
: Specifies the value to set the game rule to. Only <code>true</code> or <code>false</code> specified for predefined game rules can affect gameplay, except in the case of <code>maxEntityCramming</code>, <code>randomTickSpeed</code>, <code>spawnRadius</code>, and <code>maxCommandChainLength</code> where any integer 0 or greater affects gameplay; see [[Game rule]].{{needs testing|are negative values treated as 0?}}
   
 
==Result==
 
==Result==

Revision as of 19:45, 12 May 2021

Sets or queries a game rule value.

Syntax

  • Java Edition
gamerule <rule name> [<value>]
  • Bedrock Edition
gamerule <rule: BoolGameRule> [value: Boolean]
gamerule <rule: IntGameRule> [value: int]
In Bedrock Edition, gamerules can also be changed in the world options and certain gamerules can be toggled on and off with the command without cheats enabled. This only works in singleplayer, server gamerules and server settings cannot be adjusted using the client settings, even if a player is opped.

The rule names are listed here.

Arguments

Arguments in Java Edition are case sensitive. Arguments in Bedrock Edition are shown for tab autocompletion as lowercase, but when typed are case-insensitive.

<rule name> (BE: rule: BoolGameRule or rule: IntGameRule)

Specifies the game rule to set or query. Must be one of the predefined game rules; see Game rule.

<value> (BE: value: Boolean or value: int) (optional)

Specifies the value to set the game rule to. Only true or false specified for predefined game rules can affect gameplay, except in the case of maxEntityCramming, randomTickSpeed, spawnRadius, and maxCommandChainLength where any integer 0 or greater affects gameplay; see Game rule.[needs testing]

Result

Fails if the arguments are not specified correctly.

On success, returns the value of the game rule (if <value> is not provided) or sets the game rule to the specified value (if value is provided).

Examples

  • To stop the day-night cycle: gamerule doDaylightCycle false
  • To stop natural healing: gamerule naturalRegeneration false
  • To stop creepers, ghasts and other mobs from modifying blocks: gamerule mobGriefing false
  • To stop the natural cycle of weather: gamerule doWeatherCycle false
  • For the player, so that they can keep all of their valuables when they die: gamerule keepInventory true
  • To stop TNT from exploding:‌[BE only] gamerule tntExplodes false
  • To stop command blocks from showing what they do: gamerule commandblockoutput false

History

Java Edition
1.4.2
{{Extension DPL}}<ul><li>[[Brush|Brush]]<br/>{{Item
|image=Brush.png
|rarity=Common
|renewable=Yes
|durability=64
|stackable=No
}}
A '''brush''' is a [[tool]] used in [[archaeology]] to excavate [[suspicious block]]s for different items.

==Obtaining==
===Crafting===
{{Crafting
|head=1
|showname=0
|showdescription=1
|B1=Feather
|B2=Copper Ingot
|B3=Stick
|Output=Brush
|type=Tool
}}
{{crafting
|foot=1
|ignoreusage=1
|Damaged Brush
|Damaged Brush
|Output=Brush
|description=The durability of the two brushes is added together, plus an extra 5% durability.
|type=Tool
}}

==Usage==
{{Main|Suspicious Block}}
{{Control|Using}} the brush on any block displays a brushing animation, slowing down the player and creating breaking [[particles]], but not actually damaging the block or brush. When continuously brushing a [[suspicious block]], a random item slowly emerges from it until it drops out, and the block turns into regular [[sand]] or regular [[gravel]], depleting 1 [[durability]] point on the brush. It takes 96 [[game tick]]s (4.8 seconds) to brush a single suspicious block. 

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

== Sounds ==
{{Edition|Java}}:
{{Sound table
<!--All of these sounds are, in fact, different-->
|sound=Brushing sand1.ogg
|sound2=Brushing sand2.ogg
|sound3=Brushing sand3.ogg
|sound4=Brushing sand4.ogg
|subtitle=Brushing Sand
|source=block
|description=While a brush is brushing suspicious sand
|id=item.brush.brushing.sand
|translationkey=subtitles.item.brush.brushing.sand
|volume=0.6
|pitch=0.6
|distance=16}}
{{Sound table
|sound=Brushing gravel1.ogg
|sound2=Brushing gravel2.ogg
|sound3=Brushing gravel3.ogg
|sound4=Brushing gravel4.ogg
|subtitle=Brushing Gravel
|source=block
|description=While a brush is brushing suspicious gravel
|id=item.brush.brushing.gravel
|translationkey=subtitles.item.brush.brushing.gravel
|volume=0.6
|pitch=0.6
|distance=16}}
{{Sound table
|sound=Brushing generic1.ogg
|sound2=Brushing generic2.ogg
|sound3=Brushing generic3.ogg
|sound4=Brushing generic4.ogg
|subtitle=Brushing
|source=block
|description=While a brush is brushing any other block
|id=item.brush.brushing.generic
|translationkey=subtitles.item.brush.brushing.generic
|volume=0.6
|pitch=0.6
|distance=16}}
{{Sound table
|sound=Brushing sand completed1.ogg
|sound2=Brushing sand completed2.ogg
|sound3=Brushing sand completed3.ogg
|sound4=Brushing sand completed4.ogg
|sound5=Brushing sand completed5.ogg
|subtitle=Brushing Sand completed
|source=Players<ref group=sound name=badsource>{{Bug|MC-260202}}</ref>|overridesource=1
|description=When a brush finishes brushing suspicious sand
|id=item.brush.brushing.sand.complete
|translationkey=subtitles.item.brush.brushing.sand.complete
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Brushing gravel completed1.ogg
|sound2=Brushing gravel completed2.ogg
|sound3=Brushing gravel completed3.ogg
|sound4=Brushing gravel completed4.ogg
|subtitle=Brushing Gravel completed
|source=Players<ref group=sound name=badsource/>|overridesource=1
|description=When a brush finishes brushing suspicious gravel
|id=item.brush.brushing.gravel.complete
|translationkey=subtitles.item.brush.brushing.gravel.complete
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}

{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|sound=Brushing sand1.ogg
|sound2=Brushing sand2.ogg
|sound3=Brushing sand3.ogg
|sound4=Brushing sand4.ogg
|source=player
|description=While a brush is brushing suspicious sand
|id=brush.suspicious_sand
|volume=1.0
|pitch=0.8-1.0}}
{{Sound table
|sound=Brushing gravel1.ogg
|sound2=Brushing gravel2.ogg
|sound3=Brushing gravel3.ogg
|sound4=Brushing gravel4.ogg
|source=player
|description=While a brush is brushing suspicious gravel
|id=brush.suspicious_gravel
|volume=1.0
|pitch=0.8-1.0}}
{{Sound table
|sound=Brushing generic1.ogg
|sound2=Brushing generic2.ogg
|sound3=Brushing generic3.ogg
|sound4=Brushing generic4.ogg
|source=player
|description=While a brush is brushing any other block
|id=brush.generic
|volume=1.0
|pitch=0.8-1.0}}
{{Sound table
|sound=Brushing sand completed1.ogg
|sound2=Brushing sand completed2.ogg
|sound3=Brushing sand completed3.ogg
|sound4=Brushing sand completed4.ogg
|sound5=Brushing sand completed5.ogg
|source=player
|description=When a brush finishes brushing suspicious sand
|id=brush_completed.suspicious_sand
|volume=1.0
|pitch=0.8-1.0}}
{{Sound table
|sound=Brushing gravel completed1.ogg
|sound2=Brushing gravel completed2.ogg
|sound3=Brushing gravel completed3.ogg
|sound4=Brushing gravel completed4.ogg
|source=player
|description=When a brush finishes brushing suspicious gravel
|id=brush_completed.suspicious_gravel
|volume=1.0
|pitch=0.8-1.0
|foot=1}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Brush
|spritetype=item
|nameid=brush
|id=684
|form=item
|foot=1}}

== Advancements ==
{{load advancements|Respecting the Remnants}}

== History ==
{{History||October 3, 2020|link=https://youtu.be/DBvZ2Iqmm3M?t=2178|[[File:Brush (pre-release 1).png|32px]][[File:Brush 2.png|32px]] Brushes were announced at [[Minecraft Live 2020]] with two variants.}}
{{History||?|link=https://youtu.be/klP9SrJFDU8?t=206|[[File:Brush (pre-release 2).png|32px]] Changed the brush's item texture.}}
{{History||February 10, 2023|[[File:Brush JE1 BE1.png|32px]] [[Sofia Dankis]] posted an article about upcoming archaeology features, including brushes.|link=https://www.minecraft.net/en-us/article/archeology-coming-minecraft-120}}
{{History|java}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w07a|[[File:Brush JE1 BE1.png|32px]] Added brushes with an updated texture behind the [[Java Edition 1.20|Update 1.20 experimental datapack]].|The crafting recipe was originally three [[string]] and two [[stick]]s.
{{{!}} class{{=}}"collapsible collapsed" data-description{{=}}"Recipe"
! Recipe
{{!}}-
{{!}}{{Crafting Table
|A1 = String
|B1 = String
|C1 = String
|B2 = Stick
|B3 = Stick
|Output = Brush
|type = Tool
|ignoreusage=1}}
{{!}}}
}}
{{History|||snap=1.19.4 Pre-release 1|The crafting recipe for brushes has been changed:
{{{!}} class{{=}}"collapsible collapsed" data-description{{=}}"Recipe"
! Recipe
{{!}}-
{{!}}{{Crafting Table
|B1 = Feather
|B2 = Copper Ingot
|B3 = Stick
|Output = Brush
|type = Tool
|ignoreusage=1}}
{{!}}}
}}
{{History||1.20|snap=23w12a|Brushes are now available without using the "Update 1.20" experimental data pack.
|Brushes can now brush [[suspicious gravel]].}}
{{History|||snap=23w14a|The brushing sound of brush is now controlled by the "Blocks" sound slider instead of the "Players" sound slider.}}
{{History|||snap=23w17a|The player now gets the [[advancement]] "Respecting the Remnants" when they use a brush on a [[suspicious block]] to obtain a [[pottery sherd]].}}

{{History|bedrock}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.70|snap=beta 1.19.70.23|[[File:Brush JE1 BE1.png|32px]] Added brushes behind the "[[Bedrock Edition 1.20.0|Next Major Update]]" [[experimental]] toggle.
|The crafting recipe is originally three [[string]] and two [[stick]]s.
{{{!}} class{{=}}"collapsible collapsed" data-description{{=}}"Recipe"
! Recipe
{{!}}-
{{!}}{{Crafting Table
|A1 = String
|B1 = String
|C1 = String
|B2 = Stick
|B3 = Stick
|Output = Brush
|type = Tool
|ignoreusage=1}}
{{!}}}
}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.20|The crafting recipe for brushes has been changed:
{{{!}} class{{=}}"collapsible collapsed" data-description{{=}}"Recipe"
! Recipe
{{!}}-
{{!}}{{Crafting Table
|B1 = Feather
|B2 = Copper Ingot
|B3 = Stick
|Output = Brush
|type = Tool
|ignoreusage=1}}
{{!}}}
}}
{{History||1.20.0|snap=beta 1.20.0.21|Brushes are now available without using the "Next Major Update" experimental toggle.}}
{{History|foot}}

== Issues ==
{{Issue list}}

== References ==
{{Reflist}}

==External Links==
*[https://www.minecraft.net/en-us/article/brush Taking Inventory: Brush] – Minecraft.net on July 6, 2023

{{Items}}

[[Category:Renewable resources]]

[[de:Pinsel]]
[[es:Pincel]]
[[ja:ブラシ]]
[[pt:Pincel]]
[[pl:Pędzel]]
[[uk:Щітка]]
[[zh:刷子]]</li><li>[[Bed|Bed]]<br/>{{Block
| image = White Bed (N).png
| extratext = View [[#Gallery|all renders]]
| transparent = Yes
| tntres = 25
| hardness = 4
| light = No
| tool = any
| renewable = Yes
| stackable = No
| flammable = No
| lavasusceptible = {{jebe|Yes|No}}
}}
A '''bed''' is a [[Dye|dyeable]] [[block]] that allows a player to sleep and to reset their [[spawn]] point to within a few blocks of the bed in the [[Overworld]]. If the bed is obstructed or removed, the player spawns at the default world spawning location.

== Obtaining ==
=== Natural generation ===
;Igloo
A red bed naturally generates in each [[igloo]].
;Village
Beds of various colors generate in [[village]] houses, depending on the specific structure and [[biome]]:
* [[Desert]] village houses have cyan, green, or lime beds.
* [[Plains]] village houses have white or yellow beds.
* [[Savanna]] village houses have orange, red, or yellow beds.
* [[Snowy taiga]]{{only|bedrock|short=1}} and [[taiga]] village houses have blue or purple beds.
* [[Snowy tundra]] village houses have blue, red, or white beds.

=== Breaking ===
Beds can be mined with any [[tool]], or without a tool.<ref>{{bug|MC-192722||Beds have no assigned tool}}</ref>

{{breaking row|horizontal=1|Bed|sprite=red-bed|any}}

A bed also drops itself as an item when pushed by a [[piston]].

=== Crafting ===
{{Crafting
 |head=1
 |showname=0
 |showdescription=1
 |A2=Matching Wool
 |B2=Matching Wool
 |C2=Matching Wool
 |A3=Any Planks
 |B3=Any Planks
 |C3=Any Planks
 |Output= Matching Bed
 |type=Decoration block
 |description=The wool color must match. The planks can be different.
}}
<!--recipe removed
{{Crafting
 |showdescription=1
 |White Bed
 |Matching Colored Dye
 |Output= Matching Dyed Bed
 |type=Decoration block
 |description=White beds can be re-dyed using dyes.{{only|java}}{{until|JE 1.20}}
}}-->
{{Crafting
 |showdescription=1
 |Any Bed
 |Matching Dye
 |Output= Matching Bed
 |type=Decoration block
 |description=A bed of any color can be re-dyed using dyes.
}}
{{Crafting
 |showdescription=1
 |Any Dyed Bed
 |Bleach
 |Output=White Bed
 |type=Decoration block
 |description=This removes the color from the bed.{{only|bedrock|education}}
 |foot=1
}}
<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 Dye".
-->
{{Crafting
 |showdescription=1
 |Any Bed
 |Bone Meal; Lapis Lazuli; Cocoa Beans; Ink Sac
 |Output=White Bed; Blue Bed; Brown Bed; Black Bed
 |type=Decoration block
 |description={{only|bedrock|education}}
}}
</div>

=== Trading ===
Journeyman-level shepherd villagers sell 1 of 16 beds for 3 [[emerald]]s as part of their trades.

== Usage ==
=== Sleeping ===
[[File:Sleep Animation.gif|240px|thumb|Player falling asleep.]]

Beds are used by pressing the {{control|use item}} button while looking at the bed.

A player sleeps by {{control|using|using}} a bed during a [[thunderstorm]], or at [[night]] (between 12542 and 23459 ticks in clear weather, when stars appear in the sky, or between 12010 and 23991 ticks in rainy weather). Players can sleep during a thunderstorm even if they are in a biome where it does not rain (i.e. Desert). Attempting to use a bed at any other time results in the message "You can only sleep  at night or during thunderstorms". A player sleeps in a bed for 101 in-game [[tick]]s, or 5.05 seconds before the time skips to the next day. Sleeping in a bed with the {{cmd|gamerule doDaylightCycle}} set to <code>false</code> results in the player being kicked out of the bed after the 101 ticks, but does not change time of the world to day.

Sleeping in a bed is possible only in the [[Overworld]]. Attempting to sleep in a bed in [[the Nether]], [[the End]], and [[custom dimension]]s in which they are disabled causes it to [[explosion|explode]] and set [[fire]] to surrounding blocks; unless {{cmd|gamerule respawnBlocksExplode}}{{only|bedrock}} is set to {{cd|false}}.<ref>{{bug|mcpe-28723}} – "Exploding bed in the Nether" resolved as "Works As Intended". This is referenced {{in|je}} when a player is killed by "Intentional Game Design". </ref> The explosion has power 5, which is stronger than [[TNT]] (4), but not as strong as a charged [[creeper]] or [[End Crystal|end crystal]] (6). The explosion centers on the head part of the bed. [[Villager]]s can sleep normally in any dimension without the bed being blown up.<ref>{{bug|MC-146515|||WAI}}</ref> Upon death from a bed explosion, the [[death messages|message]] "'''(Player) was killed by [Intentional Game Design]'''" appears.

The player must be close to the bed to sleep. If the player is close enough to click on the bed, but not close enough to sleep in it, the message "You may not rest now, the bed is too far away"{{only|java|short=1}}/"Bed is too far away"{{only|bedrock|short=1}} appears. A player must be within 2 blocks of the bed {{in|JE}} or 3 blocks {{in|BE}} to use the bed.

If a "monster" is within 8 blocks of the bed horizontally (in the X- and Z-axis), and 5 blocks vertically (in the Y-axis), the message "You may not rest now, there are monsters nearby" appears and the player is prevented from sleeping until the monsters leave or are killed. Most hostile mobs, as well as some neutral mobs prevent players from sleeping, as shown in the table below.

{| class="wikitable mw-collapsible"
!Mob
!Prevent the player from sleeping 
|-
|{{EntityLink|Blaze}}
|{{Tc|yes}}
|-
|{{EntityLink|Chicken Jockey}}
|{{Tc|partial|when hostile{{Only|Java|short=1}}/Yes{{Only|Bedrock|short=1}}}}
|-
|{{EntityLink|Creeper}}
|{{Tc|yes}}
|-
|{{EntityLink|Drowned}}
|{{Tc|yes}}
|-
|{{EntityLink|Endermite}}
|{{Tc|yes}}
|-
|{{EntityLink|Enderman}}
|{{Tc|partial|when hostile}}
|-
|{{EntityLink|Ender Dragon}}
|{{Tc|no}}
|-
|{{EntityLink|Evoker}}
|{{Tc|yes}}
|-
|{{EntityLink|Ghast}}
|{{Tc|no}}
|-
|{{EntityLink|Giant}}
|{{Tc|yes}}
|-
|{{EntityLink|Guardian}}, {{EntityLink|Elder Guardian}}
|{{Tc|yes}}
|-
|{{EntityLink|Hoglin}}
|{{Tc|no}}
|-
|{{EntityLink|Illusioner}}
|{{Tc|yes}}
|-
|{{EntityLink|Killer Bunny}}
|{{Tc|no}}
|-
|{{EntityLink|Magma Cube}}
|{{Tc|partial|no{{Only|Java|short=1}}/Yes{{Only|Bedrock|short=1}}}}
|-
|{{EntityLink|Piglin}}
|{{Tc|no}}
|-
|{{EntityLink|Piglin Brute}}
|{{Tc|yes}}
|-
|{{EntityLink|Pillager}}
|{{Tc|yes}}
|-
|{{EntityLink|Phantom}}
|{{Tc|yes}}
|-
|{{EntityLink|Ravager}}
|{{Tc|yes}}
|-
|{{EntityLink|Shulker}}
|{{Tc|no}}
|-
|{{EntityLink|Silverfish}}
|{{Tc|yes}}
|-
|{{EntityLink|Skeleton}}, {{EntityLink|Skeleton Horseman}}, {{EntityLink|Stray}}, {{EntityLink|Wither Skeleton}}
|{{Tc|yes}}
|-
|{{EntityLink|Spider}}, {{EntityLink|Cave Spider}}, {{EntityLink|Spider Jockey}}
|{{Tc|yes}}
|-
|{{EntityLink|Slime}}
|{{Tc|partial|no{{Only|Java|short=1}}/Yes{{Only|Bedrock|short=1}}}}
|-
|{{EntityLink|Vex}}
|{{Tc|yes}}
|-
|{{EntityLink|Vindicator}}
|{{Tc|yes}}
|-
|{{EntityLink|Warden}}
|{{Tc|yes}}
|-
|{{EntityLink|Witch}}
|{{Tc|yes}}
|-
|{{EntityLink|Wither}}
|{{Tc|yes}}
|-
|{{EntityLink|Zoglin}}
|{{Tc|yes}}
|-
|{{EntityLink|Zombie}}, {{EntityLink|Zombie Villager}}, {{EntityLink|Husk}}
|{{Tc|yes}}
|-
|{{EntityLink|Zombified Piglin}}
|{{Tc|partial|when hostile{{Only|Java|short=1}}/Yes{{Only|Bedrock|short=1}}}}
|-
|}
{{notelist}}
If the player has not entered a bed and didn't die for 3 in-game days, [[phantom]]s can spawn unless {{cmd|gamerule doInsomnia}} is set to {{cd|false}}. {{in|java}}, this can be verified by checking if the "Time Since Last Rest" [[statistic]] is greater than 1.00 h.

A hostile mob can wake a player that is sleeping.

The player also cannot sleep in a bed occupied by another player, resulting in the message, "This bed is occupied".

A player can, however, sleep in a bed being used by a villager. The player may first wake the villager (pressing {{control|use}} on the villager) and then quickly enter the bed before the villager can lie down again. The villager reclaims the bed after the player wakes. The villager is kicked out of its bed when a player attempts to sleep there.

A player also cannot sleep while on fire, while poisoned, or while starving.

If all sleeping requirements are met and the player enters a bed, the player is positioned in the bed. The player falls asleep as the screen fades to black. {{IN|bedrock}}, the sleeping animation slowly lowers the player into bed.

Once all players in a world are asleep, after 5 seconds (100 ticks) the time of day changes to sunrise. (time 0)

During this time, the chat window is focused, and the player can leave the bed by clicking the {{btn|Leave Bed}} button.

[[Waterlogging|Waterlogged]] beds{{only|bedrock}} cannot be slept in unless the player or villager has the {{EffectLink|Water Breathing}} or {{EffectLink|Conduit Power}} status effects. Attempting to use a waterlogged bed otherwise does not display any message.<ref>{{bug|MCPE-35802}}</ref>

Beds displaying an error above the hotbar is a feature exclusive to beds; other blocks that cannot be used do not display such a message.<ref>{{bug|MC-160479}} resolved as "Works As Intended"</ref>

If there are two or more blocks of space above the bed, then the player can wake up on the bed. If there is less than two blocks above the bed and there is room on the side, then the player wakes up on the side of the bed. If there is no space on the side of the bed and there is less than two blocks above the bed, then the player still wakes up on top of the bed, but suffocates if it's a solid block. 

Villagers always wake up on top of the bed, meaning they can suffocate if there isn't enough room above the bed.

====Passing the night====
Sleeping changes the [[daylight cycle|time of day]] to sunrise and resets the [[weather]] cycle, changing the weather to clear conditions. {{IN|JE}}, the weather cycle is only reset if it is currently raining or snowing. The player wakes up next to the bed, facing the bed.

Sleeping does not accelerate processes that take place over time such as the growth of [[crops]] or [[smelting]]. If {{cmd|gamerule doDaylightCycle}} is <code>false</code>, the player instead wakes up in the night.

To skip the night in multiplayer, all players in the [[Overworld]] must be in bed at the same time. Pressing the {{btn|Leave Bed}} button is not necessary in this case. The percentage of players that need to sleep to skip the night can be customized with the game rule {{cd|playersSleepingPercentage}}.

Villagers are unable to skip the night by sleeping in beds, unlike players.

If the bed is destroyed while the player is in it, due to for example an explosion or by another player, the player wakes prematurely and the night does not pass.

====Setting the spawn point====
Once a player has entered a bed (or right clicked the bed during daytime), their spawn point is set to the location of that bed. {{IN|java}}, multiple players can set their spawn point on a single bed. {{IN|bedrock}}, the last player to use a specific bed is the only player who can respawn there, and players who had previously slept there respawn at the world spawn.

{{ctrl|Using}} a bed in the daytime likewise sets the spawn point, without actually entering the bed. 

When a bed explodes, it does not set the spawn point. 

The message "Respawn point set" is displayed in chat when the respawn point is successfully changed.

The check for a bed is made only when the player respawns. This means that the bed can be destroyed and replaced or even reoriented, but as long as there is a bed present in the same location, the player can respawn there. If a player's bed is absent, or if the area around the bed is made unsuitable for respawning (see below), a message is displayed saying ''You have no home bed or charged respawn anchor, or it was obstructed''{{only|je}}/''Your home bed was missing or obstructed''{{only|be}}, and the player respawns at the [[Spawn#World spawn|world spawn]] point. 

When choosing where to respawn the player, the northwesternmost (lowest X- and Z-coordinates) location of the seven blocks adjacent to the head of the bed is chosen first. If this location is obstructed, the next choice is to its south (+Z), rather than the east (+X). Only when all seven locations around the head are obstructed are the three remaining ones adjacent to the foot then to be considered. 

For a location to be unobstructed, the block at the level of the bed must be air or non-solid (e.g. torches, but not glass) and there must be a space with a solid block below it and two non-colliding blocks for the player to stand in 0-2 blocks below the bed. It does not matter if the bed itself has blocks above it. Putting a slab one block above a bed can act as a two block tall space, as the bed is half a block tall. The bed never spawns the player on or directly below itself even if all other locations are obstructed. If a bed is obstructed, the player's spawn point is cleared after they respawn. That is, even if the bed is subsequently made usable again, the player continues to respawn at the world spawn until interacting with the bed again. 

Specifically, when interacting with it, the location of the ''head'' of the bed is saved as the spawn point, and if a bed is in that space (whether it is the foot or the head) then the respawn works. This can be observed by reorienting the bed with its head in the same location. Interacting with it does not produce a "Respawn point set" message as the game doesn't change the saved spawn point. If a bed is reoriented so that its foot is in this space, it still functions on the next respawn, but it can also be interacted with to update the spawn point to the new head of the bed and cause a "Respawn point set" message. Attempting the reverse, reorienting the bed so that it overlaps the original location of the foot, results in a respawn at world spawn. However, the location of the foot of the bed is also saved. If the bed is moved so that part of it overlaps the original location of the head, it can be observed that the same locations need to be obstructed to stop spawning. It is possible to respawn 2 blocks away from the bed this way.

=== Bouncing===
Falling onto a bed bounces the player with 66% strength – the bouncing-up velocity is 66% of the impact velocity. The player also takes 50% of normal fall damage.

Baby villagers bounce on beds during the day.

If the player is falling while sleeping requirements are met, and presses {{control|use}} on a bed within reach before hitting the ground, the fall damage is delayed until the player wakes.

A player can bounce on a bed while another player or villager is sleeping on it without waking the player or the villager up.

Villagers can be pushed onto beds, as the bed is half a block tall.

=== Curing===
Each bed in the vicinity of a zombie villager has a chance to speed up the [[Zombie_Villager#Curing|process of curing the zombie villager]]. Iron bars (such as in a prison cell) also have this effect.

=== Placement===
Beds require two blocks of floor space. Placement requires at least 2 blocks from the player's facing direction. When placed, the foot of the bed is placed on the block selected and the head of the bed on the block farther away from the player. {{IN|bedrock}}, beds require solid blocks below them when placed. However, the bed remains in place if its supporting blocks are later removed. {{IN|java}}, beds do not require supporting blocks and can be placed anywhere, provided there is enough room. 

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

===Unique===
{{edition|java}}:
{{Sound table
|sound=Explosion1.ogg
|sound2=Explosion2.ogg
|sound3=Explosion3.ogg
|sound4=Explosion4.ogg
|subtitle=Explosion
|source=block
|description=When a player attempts to sleep while not in the Overworld
|id=entity.generic.explode
|translationkey=subtitles.entity.generic.explode
|volume=4.0
|pitch=0.56-0.84
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Explosion1.ogg
|sound2=Explosion2.ogg
|sound3=Explosion3.ogg
|sound4=Explosion4.ogg
|source=block
|description=When a player attempts to sleep while not in the Overworld
|id=random.explode
|volume=4.0
|pitch=1.0
|foot=1}}

==Data values==
===ID===
{{edition|java}}:
{{ID table|
|edition=java
|showblocktags=y
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=White Bed
|spritetype=block
|nameid=white_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Orange Bed
|spritetype=block
|nameid=orange_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Magenta Bed
|spritetype=block
|nameid=magenta_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Light Blue Bed
|spritetype=block
|nameid=light_blue_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Yellow Bed
|spritetype=block
|nameid=yellow_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Lime Bed
|spritetype=block
|nameid=lime_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Pink Bed
|spritetype=block
|nameid=pink_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Gray Bed
|spritetype=block
|nameid=gray_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Light Gray Bed
|spritetype=block
|nameid=light_gray_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Cyan Bed
|spritetype=block
|nameid=cyan_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Purple Bed
|spritetype=block
|nameid=purple_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Blue Bed
|spritetype=block
|nameid=blue_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Brown Bed
|spritetype=block
|nameid=brown_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Green Bed
|spritetype=block
|nameid=green_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Red Bed
|spritetype=block
|nameid=red_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Black Bed
|spritetype=block
|nameid=black_bed
|blocktags=beds
|itemtags=beds
|foot=1}}
{{ID table
|displayname=Block entity
|spritename=beds
|spritetype=block
|nameid=bed
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Bed
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Block
|spritename=Beds
|spritetype=block
|nameid=bed
|id=26
|form=block
|itemform=item.bed}}
{{ID table
|displayname=Item
|spritename=bed
|spritetype=item
|nameid=bed
|id=418
|form=item
|translationkey=item.bed.black.name,item.bed.red.name,item.bed.green.name,item.bed.brown.name,item.bed.blue.name,item.bed.cyan.name,item.bed.silver.name,item.bed.gray.name,item.bed.pink.name,item.bed.lime.name,item.bed.yellow.name,item.bed.lightBlue.name,item.bed.magenta.name,item.bed.orange.name,item.bed.white.name
|foot=1}}
{{ID table
|notnamespaced=y
|displayname=Block entity
|spritename=beds
|spritetype=block
|nameid=Bed
|foot=1}}

===Metadata===
{{see also|Data values}}
{{IN|be}}, bed items use the following data values:
{{/DV}}

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

===Block data===
A bed has a block entity associated with it that holds additional data about the block.

{{el|java}}:
{{see also|Block entity format}}
{{/BE}}

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

==Advancements==
{{load advancements|Sweet Dreams}}

==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||November 26, 2011|link={{tweet|jeb|140410431394160640}}|Originally, [[crying obsidian]] was intended to act as a block to reset spawn points, until beds were introduced.}}
{{History||1.3|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds. 
|The only color for beds is red.
|Beds can currently be crafted using any color combination of wool.
|Sleeping in an area potentially exposed to monsters can cause [[player]]s to wake up early, with a [[skeleton]] or [[zombie]] spawned next to them.
|Trying to sleep in a bed in [[the Nether]] does nothing.}}
{{History||1.4|Sleeping in a bed now resets the player's spawn position, though it does not work for most users. The spawn point unintentionally changes only if ''Leave Bed'' is clicked and the function is limited to [[multiplayer]].}}
{{History||1.4_01|Beds now act as a respawn point as intended.}}
{{History||1.6|snap=Test Build 3|Trying to sleep in a bed in the Nether now causes the bed to [[explosion|explode]].}}
{{History||1.7|As blocks now pull textures from the expected places for model application, this has resulted in the bed texture shifting downward in <samp>[[terrain.png]]</samp>. No visual difference has resulted for the actual bed.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 4|Bed explosions in the Nether now light nearby blocks on fire.}}
{{History|||snap=Beta 1.9 Prerelease 5|The bottom textures of beds have been changed to the texture of the new [[oak]] planks from [[File:Red Bed JE1 (facing NWU).png|32px]] to [[File:Red Bed JE2 BE1 (facing NWU).png|32px]].}}
{{History|||snap=Beta 1.9 Prerelease 6|Beds no longer spawn monsters. Instead, trying to sleep when monsters are around displays a message saying ''You may not rest now, there are monsters nearby''.}}
{{History||1.2.4|snap=release|[[Cat]]s while in standing position now purposely go and sit on beds.
|[[Spruce]], [[birch]], and [[jungle tree|jungle]] planks can now be used to craft beds.}}
{{History||1.5|snap=?|Beds now check their [[biome]] for detonation rather than just their dimension.}}
{{History||1.7.2|snap=1.7.1|[[Acacia]] planks and [[dark oak]] planks can now be used to craft beds.}}
{{History||1.8|snap=14w29a|Beds now display the cracking animation on top and bottom.}}
{{History|||snap=14w33a|Beds now make [[sound]]s when placed, and play logical sounds when stepped on and [[breaking|broken]].<ref>{{bug|MC-66347||Beds make incorrect sounds|Fixed}}</ref>}}
{{History||1.9|snap=15w43a|Bed now generates inside [[igloo]]s.}}
{{History||1.11|snap=16w32a|The messages "You can only sleep at night", "You may not rest now, there are monsters nearby", and "This bed is occupied" now appear on top of the hotbar, the place that the message "Press <whatever your sneak key is> to dismount" also appears when the player is riding a [[mob]].}}
{{History|||snap=16w33a|If the player is close enough to click on the bed, but not close enough to sleep in it, the message "You may not rest now, the bed is too far away" is now displayed.}}
{{History||1.12|snap=17w06a|Neutral [[zombie pigmen]] no longer prevent the player from sleeping in a bed.}}
{{History|||snap=March 13, 2017|slink={{tweet|jeb_|841311279784591361}}|[[Jeb]] mentions colored beds for [[Java Edition 1.12|1.12]].}}
{{History|||snap=17w15a|[[File:White Bed JE1.png|32px]] [[File:Light Gray Bed JE1.png|32px]] [[File:Gray Bed JE1.png|32px]] [[File:Black Bed JE1.png|32px]] [[File:Brown Bed JE1.png|32px]] [[File:Orange Bed JE1.png|32px]] [[File:Yellow Bed JE1.png|32px]] [[File:Lime Bed JE1.png|32px]] [[File:Green Bed JE1.png|32px]] [[File:Cyan Bed JE1.png|32px]] [[File:Light Blue Bed JE1.png|32px]] [[File:Blue Bed JE1.png|32px]] [[File:Purple Bed JE1.png|32px]] [[File:Magenta Bed JE1.png|32px]] [[File:Pink Bed JE1.png|32px]] [[Dye]]d beds have been added.
|The "Bed" has been renamed to "Red Bed".
|Beds can now only be crafted using wool of the same color.
|[[File:Red Bed JE2.png|32px]] The texture of red beds has been changed. The top of the beds are no longer mirrored. <!--- the numbers appear out of order but it is correct since it orders all beds in the current order in the Java Creative inventory --->
|{{Sprite|pos=1|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=9|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=8|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=16|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=13|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=15|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=2|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=5|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=6|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=14|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=10|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=4|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=12|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=11|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=3|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=7|image=Bed Icons 1.12.png|size=32|sheetsize=512}} Beds now appear 3D in the [[inventory]].
|[[File:Red Bed JE3 (facing NWU).png|32px]] Beds now have 3D legs.<ref>{{bug|MC-11963||bed hind legs not rendered|Fixed}}</ref>
|Beds have been made bouncy, though they do not completely reduce all [[fall damage]].
|Beds are now a [[block entity]].}}
{{History|||snap=17w17a|[[File:Red Bed JE4 BE2 (facing NWU).png|32px]] The four legs of a bed are now each textured separately, and their [[model]] is different.
|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Red Bed JE3 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br> <!--- the numbers appear out of order but it is correct since it orders all beds in the current order in the Java Creative inventory --->
{{Sprite|pos=17|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=25|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=24|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=32|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=29|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=31|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=18|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=21|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=22|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=30|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=26|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=20|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=28|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=27|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=19|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=23|image=Bed Icons 1.12.png|size=32|sheetsize=512}} The textures of beds have now also been changed.}}
{{History||1.13|snap=17w47a|Beds now require solid blocks below them, or they break into an item. Previously, a bed needed to be placed on solid blocks, but the blocks could later be removed.}}
{{History|||snap=18w07a|Sleeping in a bed is now important to keep [[phantom]]s from spawning.}}
{{History|||snap=18w20a|Players in [[Creative]] mode can now sleep even if monsters are nearby.}}
{{History|||snap=18w22a|Beds no longer require supporting blocks below them; they do not break into an [[item (entity)|item]] if said blocks are removed, and can be directly placed on top of non-solid blocks.}}
{{History|||snap=pre2|The "You can only sleep at night" message when using a bed has been changed to "You can sleep only at night and during [[thunderstorm]]s."}}
{{History||1.14|snap=18w43a|[[File:White Bed JE3 BE3.png|32px]] [[File:Light Gray Bed JE3 BE3.png|32px]] [[File:Gray Bed JE3 BE3.png|32px]] [[File:Black Bed JE3 BE3.png|32px]] [[File:Brown Bed JE3 BE3.png|32px]] [[File:Red Bed JE4 BE3.png|32px]] [[File:Orange Bed JE3 BE3.png|32px]] [[File:Yellow Bed JE3 BE3.png|32px]] [[File:Lime Bed JE3 BE3.png|32px]] [[File:Green Bed JE3 BE3.png|32px]] [[File:Cyan Bed JE3 BE3.png|32px]] [[File:Light Blue Bed JE3 BE3.png|32px]] [[File:Blue Bed JE3 BE3.png|32px]] [[File:Purple Bed JE3 BE3.png|32px]] [[File:Magenta Bed JE3 BE3.png|32px]] [[File:Pink Bed JE3 BE3.png|32px]]<br>{{InvSprite|White Bed}} {{InvSprite|Light Gray Bed}} {{InvSprite|Gray Bed}} {{InvSprite|Black Bed}} {{InvSprite|Brown Bed}} {{InvSprite|Red Bed}} {{InvSprite|Orange Bed}} {{InvSprite|Yellow Bed}} {{InvSprite|Lime Bed}} {{InvSprite|Green Bed}} {{InvSprite|Cyan Bed}} {{InvSprite|Light Blue Bed}} {{InvSprite|Blue Bed}} {{InvSprite|Purple Bed}} {{InvSprite|Magenta Bed}} {{InvSprite|Pink Bed}} The textures of all beds have been changed.
|[[File:Red Bed JE5 (facing NWU).png|32px]] The bottom textures of beds have been changed to new oak planks texture.}}
{{History|||snap=18w44a|Cats can now sleep in empty beds or sit on their owner when their owner is sleeping.}}
{{History|||snap=18w47a|[[File:Red Bed JE6 BE3 (facing NWU).png|32px]] The bottom textures of beds have been changed to the new oak planks to texture, once again.}}
{{History|||snap=18w48a|Beds now generate in the updated [[plains]] [[village]]s.}}
{{History|||snap=18w49a|Beds now generate in the updated [[savanna]] villages and the new [[snowy tundra]] villages.}}
{{History|||snap=18w50a|Beds now generate in the updated [[desert]] and [[taiga]] villages.}}
{{History|||snap=19w08a|All mobs can now sleep in beds using [[command]]s.}}
{{History|||snap=19w11a|[[Villager]]s now claim beds and sleep in them during the night.
|Shepherd villagers now [[trading|sell]] beds.}}
{{History||1.15|snap=19w35a|If a player tries to sleep in a bed that is occupied by a villager, that villager is now kicked out of the bed.}}
{{History|||snap=19w36a|Trying to sleep in a bed during the daytime now sets the player's spawn location to that bed.}}
{{History|||snap=pre2|Successfully changing a spawn point using a bed now displays a message in [[chat]].}}
{{History||1.16|snap=20w06a|Crimson and warped planks can now be used to craft beds.}}
{{History|||snap=20w12a|The message "Your home bed was missing or obstructed" has been changed to "You have no home bed or respawn anchor, or it was obstructed" due to the addition of the [[respawn anchor]], used to set the player's spawn in [[the Nether]].}}
{{History||1.16.2|snap=20w30a|Beds now prioritize the side of the bed the player or villager entered from and then spaces circling around the foot of the bed up to the head of the bed.}}
{{History||1.17|snap=20w51a|Added gamerules for sleeping in multiplayer.}}
{{History||1.18|snap=21w44a|Sleeping now only resets the weather cycle if it is currently raining or snowing.<ref>{{bug|MC-63340||Sleeping always resets time until rain|Fixed}}</ref>}}
{{History||1.19|snap=22w11a|[[Mangrove]] planks can now be used to craft beds.}}
{{History||1.19.3|snap=22w43a|Bed explosions can now be properly [[blocking|blocked]] by [[shield]]s.<ref>{{bug|MC-200006|||Fixed}}</ref>}}
{{History||1.20|snap=Pre-release 1|Beds of any color can now be dyed into any other color.}}

{{History|pocket alpha}}
{{History||v0.4.0|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
{{History||v0.5.0|Beds can now be obtained after activating the [[nether reactor]].}}
{{History||v0.9.0|snap=build 1|Beds no longer restore [[health]] in normal difficulty, making [[food]] a more required [[Survival]]-needed resource.
|Added smooth lighting to beds.}}
{{History||v0.11.0|snap=build 8|The lighting on beds has been improved.}}
{{History||v0.12.1|snap=build 1|Tamed [[cat|ocelots]] while standing now purposely go and sit on beds.
|Beds are no longer available from the [[nether reactor]].}}
{{History||v0.16.0|snap=build 1|Beds now make a [[sound]] when placed, identical to [[block]]s like [[stone]].<ref name="lazilycodedsounds">{{bug|MCPE-10077}} – "Incorrect sounds on beds" resolved as "Fixed".</ref>}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Beds are now generated in [[igloo]]s.}}
{{History|||snap=alpha 0.17.0.2|[[File:Leave Bed 1.0.jpg|36px]] The ''Leave Bed'' button now has a new texture.}}
{{History|||snap=alpha 1.0.0.0|Sleeping now ends [[weather]].}}
{{History||1.1.0|snap=alpha 1.1.0.0|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br>[[File:White Bed (item) BE1.png|32px]] [[File:Light Gray Bed (item) BE1.png|32px]] [[File:Gray Bed (item) BE1.png|32px]] [[File:Black Bed (item) BE1.png|32px]] [[File:Brown Bed (item) BE1.png|32px]] [[File:Orange Bed (item) BE1.png|32px]] [[File:Yellow Bed (item) BE1.png|32px]] [[File:Lime Bed (item) BE1.png|32px]] [[File:Green Bed (item) BE1.png|32px]] [[File:Cyan Bed (item) BE1.png|32px]] [[File:Light Blue Bed (item) BE1.png|32px]] [[File:Blue Bed (item) BE1.png|32px]] [[File:Purple Bed (item) BE1.png|32px]] [[File:Magenta Bed (item) BE1.png|32px]] [[File:Pink Bed (item) BE1.png|32px]] Added the other 15 colors of beds.
|The "Bed" has been renamed to "Red Bed".
|[[File:Red Bed JE3 BE2.png|32px]] The texture of red beds has been changed.
|A new animation when sleeping has been added to beds.
|Beds in [[igloo]]s are now white in [[ice plains]] and brown in [[cold taiga]]s.
|Beds now bounce the [[player]] two [[block]]s up, and have 3D legs.
|Placement, stepping and breaking [[sound]]s for beds are now correctly wooden.<ref name="lazilycodedsounds"/>}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Beds can now be [[waterlogging|waterlogged]] and require [[Water Breathing]] to sleep in.}}
{{History|||snap=beta 1.2.20.1|Colored beds can now be turned into white beds by adding [[bleach]]. This works only if {{el|ee}} features are turned on.}}
{{History||1.6.0|snap=beta 1.6.0.1|Sleeping in a bed is now important to keep [[phantom]]s from spawning.}}
{{History||1.8.0|snap=beta 1.8.0.8|[[Cat]]s can now sleep in empty beds or sit on their [[player|owner]] when their owner is sleeping.}} 
{{History||1.10.0|snap=beta 1.10.0.3|Various beds now generate in the new [[village]]s.
|[[Villager]]s can now sleep by occupying a bed, which prevent [[player]]s from using it.
|[[Igloo]]s now generate with red beds.
|Beds are now used to count the number of available houses in [[village]]s.
|[[File:White Bed JE3 BE3.png|32px]] [[File:Light Gray Bed JE3 BE3.png|32px]] [[File:Gray Bed JE3 BE3.png|32px]] [[File:Black Bed JE3 BE3.png|32px]] [[File:Brown Bed JE3 BE3.png|32px]] [[File:Red Bed JE4 BE3.png|32px]] [[File:Orange Bed JE3 BE3.png|32px]] [[File:Yellow Bed JE3 BE3.png|32px]] [[File:Lime Bed JE3 BE3.png|32px]] [[File:Green Bed JE3 BE3.png|32px]] [[File:Cyan Bed JE3 BE3.png|32px]] [[File:Light Blue Bed JE3 BE3.png|32px]] [[File:Blue Bed JE3 BE3.png|32px]] [[File:Purple Bed JE3 BE3.png|32px]] [[File:Magenta Bed JE3 BE3.png|32px]] [[File:Pink Bed JE3 BE3.png|32px]] The textures of all beds have been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Beds can now be [[trading|bought]] from shepherd [[villager]]s.}}
{{History||1.13.0|snap=?|[[Player]]s now succeed in attempting to sleep on villager-occupied beds, kicking the villager off.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
{{History||xbox=TU12|xbone=CU1|ps=1.00|wiiu= Patch 1|[[Cat]]s in standing position now purposely go and sit on beds, preventing [[player]]s from using them.}}
{{History||xbox=TU43|xbone=CU33|ps=1.36|wiiu=Patch 13|The sleeping animation while in beds has been changed.}}
{{History||xbox=TU54|xbone=CU44|ps=1.52|wiiu=Patch 24|switch=1.0.4|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br>[[File:White Bed (item) LCE.png|32px]] [[File:Light Gray Bed (item) LCE.png|32px]] [[File:Gray Bed (item) LCE.png|32px]] [[File:Black Bed (item) LCE.png|32px]] [[File:Brown Bed (item) LCE.png|32px]] [[File:Orange Bed (item) LCE.png|32px]] [[File:Yellow Bed (item) LCE.png|32px]] [[File:Lime Bed (item) LCE.png|32px]] [[File:Green Bed (item) LCE.png|32px]] [[File:Cyan Bed (item) LCE.png|32px]] [[File:Light Blue Bed (item) LCE.png|32px]] [[File:Blue Bed (item) LCE.png|32px]] [[File:Purple Bed (item) LCE.png|32px]] [[File:Magenta Bed (item) LCE.png|32px]] [[File:Pink Bed (item) LCE.png|32px]] Added the other 15 colors of beds. 
|The "Bed" has been now renamed to "Red Bed".
|[[File:Red Bed JE3 BE2.png|32px]] [[File:Red Bed (item) LCE.png|32px]] The textures of red beds has been changed. 
|Beds are now [[dye]]able and bounce the [[player]] two [[block]]s up, and have a single 3D legs.}}
{{History||xbox=TU60|xbone=CU51|ps=1.64|wiiu=Patch 30|switch=1.0.11|The sleeping animation in beds has been changed again.}}
{{History||xbox=TU69|xbone=none|ps=1.76|wiiu=Patch 38|switch=none|Sleeping in a bed is now important to keep [[phantom]]s from spawning.
|Beds can now be [[waterlogging|waterlogged]] and require {{EffectLink|Water Breathing}} to sleep in.}}
{{History||xbox=none|xbone=none|ps=1.83|wiiu=none|switch=none|The sleeping animation for beds has been reverted to how it was before [[Legacy Console Edition version history#ps-1.64|1.64]].}}
{{History||xbox=none|xbone=none|ps=1.91|wiiu=none|switch=none|Various beds now generate in the new [[village]]s.
|[[Villager]]s can now sleep by occupying a bed, which prevents [[player]]s from using it.
|Beds are now used to count the number of available houses in villages.
|Beds can now be [[trading|bought]] from shepherd [[villager]]s.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
{{History||1.9.19|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br>[[File:White Bed (item) BE1.png|32px]] [[File:Light Gray Bed (item) BE1.png|32px]] [[File:Gray Bed (item) BE1.png|32px]] [[File:Black Bed (item) BE1.png|32px]] [[File:Brown Bed (item) BE1.png|32px]] [[File:Orange Bed (item) BE1.png|32px]] [[File:Yellow Bed (item) BE1.png|32px]] [[File:Lime Bed (item) BE1.png|32px]] [[File:Green Bed (item) BE1.png|32px]] [[File:Cyan Bed (item) BE1.png|32px]] [[File:Light Blue Bed (item) BE1.png|32px]] [[File:Blue Bed (item) BE1.png|32px]] [[File:Purple Bed (item) BE1.png|32px]] [[File:Magenta Bed (item) BE1.png|32px]] [[File:Pink Bed (item) BE1.png|32px]] Added the other 15 colors of beds.
|The "Bed" has been renamed to "Red Bed".
|[[File:Red Bed JE3 BE2.png|32px]] The texture of red beds has been changed.
|Beds now bounce the [[player]] two [[block]]s up and have 3D legs.}}

{{History|Education}}
{{History||1.0|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
{{History||1.0.1|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br>[[File:White Bed (item) BE1.png|32px]] [[File:Light Gray Bed (item) BE1.png|32px]] [[File:Gray Bed (item) BE1.png|32px]] [[File:Black Bed (item) BE1.png|32px]] [[File:Brown Bed (item) BE1.png|32px]] [[File:Orange Bed (item) BE1.png|32px]] [[File:Yellow Bed (item) BE1.png|32px]] [[File:Lime Bed (item) BE1.png|32px]] [[File:Green Bed (item) BE1.png|32px]] [[File:Cyan Bed (item) BE1.png|32px]] [[File:Light Blue Bed (item) BE1.png|32px]] [[File:Blue Bed (item) BE1.png|32px]] [[File:Purple Bed (item) BE1.png|32px]] [[File:Magenta Bed (item) BE1.png|32px]] [[File:Pink Bed (item) BE1.png|32px]] Added the other 15 colors of beds.
|The "Bed" has been renamed to "Red Bed".
|[[File:Red Bed JE3 BE2.png|32px]] The texture of red beds has been changed.
|Beds now bounce the [[player]] two [[block]]s up, and have 3D legs.}}
{{History||1.0.27|Colored beds can now be turned into white beds by adding [[bleach]].}}
{{History||1.12|[[File:White Bed JE3 BE3.png|32px]] [[File:Light Gray Bed JE3 BE3.png|32px]] [[File:Gray Bed JE3 BE3.png|32px]] [[File:Black Bed JE3 BE3.png|32px]] [[File:Brown Bed JE3 BE3.png|32px]] [[File:Red Bed JE4 BE3.png|32px]] [[File:Orange Bed JE3 BE3.png|32px]] [[File:Yellow Bed JE3 BE3.png|32px]] [[File:Lime Bed JE3 BE3.png|32px]] [[File:Green Bed JE3 BE3.png|32px]] [[File:Cyan Bed JE3 BE3.png|32px]] [[File:Light Blue Bed JE3 BE3.png|32px]] [[File:Blue Bed JE3 BE3.png|32px]] [[File:Purple Bed JE3 BE3.png|32px]] [[File:Magenta Bed JE3 BE3.png|32px]] [[File:Pink Bed JE3 BE3.png|32px]] The textures of all beds have been changed.}}
{{History|foot}}

=== Data history ===
{{History|java}}
{{History||1.13|snap=17w47a|The different block states for the <code>bed</code> ID have been split up into their own IDs.
|Prior to [[1.13/Flattening|''The Flattening'']], this block's numeral ID was 26, and the item's 355.}}
{{History|foot}}

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

==Issues==
{{Issue list}}

== Trivia==
* The reason beds explode in the Nether and the End is because Notch found it was the easiest solution to dimension-unique respawning.<ref>{{tweet|Notch|1259681657793077250|duh|11 May 2020}}, in response to {{tweet|NoahBandito|1259681319392550912|So you're telling me the "Inteded Game Design" should actually be "Sorry, I was too lazy to code"?|11 May 2020}}</ref>
** Dimension-unique respawning was eventually implemented via the [[respawn anchor]], and gained command support at the same time. Despite this, beds and respawn anchors still explode in invalid dimensions.
* If the player quits the game while sleeping, upon return the player wakes up beside the bed.
* Using the {{cmd|teleport}} command while another player is sleeping still teleports the sleeping player, but the player wakes immediately.{{only|java}}
* If the player places a bed on [[ice]], running over the bed acts like running over ice, similar to slabs.
* When placed using the {{cmd|setblock}} command, only one half of a bed is placed, because beds are two blocks long. A single half can be slept in like a whole bed.
* Villagers can sleep in the Nether and the End without causing the bed to explode.<ref>{{bug|MC-146515}} Resolved as Works As Intended</ref>
* While the block state used to determine the half of a two-block block such as [[door]]s and double-tall [[flower]]s is called ''half'', in the case of beds this is called ''part''.
* Players and villagers do not drown or take damage from lava while in a bed, even if the bed is covered in lava.
*The red bed was the original default bed color. In [[Java Edition 1.12]] and [[Pocket Edition 1.1.0]] version of the game, the default color was changed to white.

== Gallery ==

=== All renders ===
<gallery>
White Bed.png|White
Light Gray Bed.png|Light gray
Gray Bed.png|Gray
Black Bed.png|Black
Brown Bed.png|Brown
Red Bed.png|Red
Orange Bed.png|Orange
Yellow Bed.png|Yellow
Lime Bed.png|Lime
Green Bed.png|Green
Cyan Bed.png|Cyan
Light Blue Bed.png|Light blue
Blue Bed.png|Blue
Purple Bed.png|Purple
Magenta Bed.png|Magenta
Pink Bed.png|Pink
</gallery>

=== Screenshots ===
<gallery>
Multiplayer Sleeping.png|A sleeping player in multiplayer.
Missing Bed.png|The message that can be seen after a failed attempt to respawn at the spawn point set by a bed.
Nether Bed.png|A crater created by attempting to sleep in the Nether.
Ender Bed.png|A crater created by attempting to sleep in the End.
16 color beds.png|All the different color variants.
Old Village New Village VillagerSleeping MCEE.png|An unemployed [[villager]] and a [[butcher]] villager goes to sleep, unaware of the zombies outside.
Stackedbeds.png|A stack of beds.
Mob wakeup.png|Player being awakened by a [[zombie]].
Day Sleeping.png|The message that can be seen when any players attempt to sleep during daytime.
Sleeping.png|A player going to sleep in a bed on the first day of a ''Minecraft'' world.
CobwebVillage.png|A bed in an abandoned village has its bottom half replaced by wheat crops.
</gallery>

=== In other media ===
<gallery>
File:Rainbow Bed.png|The [[MCE:Rainbow Bed|rainbow bed]], a unique coloration featured in [[Minecraft Earth]].
File:The Sham.jpg|The Sham, a villainous, sentient bed featured in the [[skin pack|Campfire Tales]] skin pack.
</gallery>

==References==
{{Reflist}}

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

[[Category:Utility blocks]]
[[Category:Manufactured blocks]]
[[Category:Generated structure blocks]]
[[Category:Block entities]]

[[cs:Postel]]
[[de:Bett]]
[[es:Cama]]
[[fr:Lit]]
[[hu:Ágy]]
[[it:Letto]]
[[ja:ベッド]]
[[ko:침대]]
[[nl:Bed]]
[[pl:Łóżko]]
[[pt:Cama]]
[[ru:Кровать]]
[[th:เตียง]]
[[uk:Ліжко]]
[[zh:床]]</li></ul>
12w32aAdded /gamerule.
1.8
{{Extension DPL}}<ul><li>[[Raw Iron|Raw Iron]]<br/>{{Item
| image = Raw Iron.png
| renewable = No
| stackable = Yes (64)
}}
'''Raw iron''' is a raw metal resource obtained from mining [[iron ore]].

== Obtaining ==
=== Mining ===
[[Iron ore]] and [[deepslate iron ore]] mined with a [[stone pickaxe]] or higher drops 1 unit of raw iron. If the pickaxe is enchanted with [[Fortune]], it can drop an extra unit per level of Fortune, allowing for a maximum of 4 with Fortune III. If the ore is mined using a pickaxe enchanted with [[Silk Touch]], it drops the ore block instead.

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

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

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

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

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Raw Iron
|spritetype=item
|nameid=raw_iron
|form=item
|id=505
|foot=1}}

== History ==
{{History|java}}
{{History||1.17|snap=21w14a|[[File:Raw Iron JE1.png|32px]] Added raw iron.}}
{{History|||snap=April 13, 2021|slink={{Tweet|JasperBoerstra|1381991999952277513}}|[[File:Raw Iron JE2.png|32px]] [[JAPPA]] shows a new raw iron texture.}}
{{History|||snap=21w15a|[[File:Raw Iron JE2.png|32px]] The texture of raw iron has been changed.
|Raw iron can now be used to craft [[block of raw iron]].}}
{{History|||snap=April 16, 2021|slink={{Tweet|JasperBoerstra|1383047666037325829}}|[[File:Raw Iron (pre-release).png|32px]] [[JAPPA]] shows a new raw iron texture again.}}
{{History|||snap=21w16a|[[File:Raw Iron JE3.png|32px]] The texture of raw iron has been changed.}}
{{History|Bedrock}}
{{History||1.17.0|snap=beta 1.17.0.50|[[File:Raw Iron JE2.png|32px]] Added raw iron.}}
{{History|||snap=beta 1.17.0.52|Raw iron are now available without enabling [[experimental gameplay]].}}
{{History|||snap=beta 1.17.0.54|[[File:Raw Iron JE3.png|32px]] The texture of raw iron has been changed.}}
{{History|foot}}

== Issues ==
{{Issue list}}

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

{{Items}}

[[Category:Non-renewable resources]]

[[de:Roheisen]]
[[es:Hierro en bruto]]
[[fr:Fer brut]]
[[it:Ferro grezzo]]
[[ja:鉄の原石]]
[[lzh:砂鐵]]
[[pl:Surowe żelazo]]
[[pt:Ferro bruto]]
[[ru:Необработанное железо]]
[[uk:Необроблене залізо]]
[[zh:粗铁]]</li><li>[[Dupe Hack|Dupe Hack]]<br/>{{for|the method to duplicate items and blocks|Tutorials/Block and item duplication}}
{{stub}}
{{Joke feature}}
{{exclusive|java}}{{item
| image = Missing Texture.png
| rarity=Common
| stackable=No
|title=minecraft:dupe_hack|renewable=Yes}}
'''minecraft:dupe_hack''' is a joke item from [[Java Edition 23w13a_or_b]].

==Obtaining==

Once the <code>dupe_hack_occurrence_chance</code> vote is approved the '''dupe hack''' item has a random chance of dropping whenever an entity with chests is killed by a player, e.g. when destroying a [[Minecart with Chest|minecart with chest]] with a [[sword]].

It doesn't appear in the [[creative]] menu, not even when the [[Options#Controls|option]] "Operator Items Tab" is enabled, but can be given to the player with [[Commands/give|<code>/give</code>]] and other commands.

==Usage==
The dupe hack item can be used to create a limited amount of duplicate items by placing it on a [[crafting table]] with any other item. It has a random chance of breaking, controlled by the <code>dupe_hack_break_chance</code> vote. This limitation can be mostly bypassed by putting the items in an [[Ender Chest|ender chest]] first and duplicating the chest.

When using the Dupe Hack, it has a random chance of breaking, which is often decided by votes.

===Crafting ingredient===

{{Crafting
  |Any Item
  |Dupe Hack
  |Output=Any Item, 2
  |showdescription=1
  |description=The dupe hack item remains in the crafting grid after duplicating an item.
  |foot=1
}}

==Data values==
===ID===
{{edition|java}}:{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=minecraft:dupe_hack
|spritetype=item
|nameid=dupe_hack
|form=item|foot=1|spritename=missingno}}

==History==
{{History|java}}
{{History||23w13a_or_b|[[File:Missing Texture JE4.png|32px]] Added minecraft:dupe_hack.}}
{{History|foot}}

{{items}}
{{Jokes}}

<references />

[[Category:Joke items]]

[[ja:Dupe Hack]]
[[pt:Dupe Hack]]</li></ul>
14w03aAdded the ability to create custom dummy gamerules.
1.13
{{Extension DPL}}<ul><li>[[Medicine|Medicine]]<br/>{{Redirect|Elixir", "Antidote", "Eye Drops", and "Tonic|s=1|the brewable items|Potion}}
{{Education feature}}
{{Exclusive|bedrock|education}}
{{Item
| image = <gallery>
Antidote.png | Antidote
Elixir.png | Elixir
Eye Drops.png | Eye Drops
Tonic.png | Tonic
</gallery>
| renewable = Yes
| stackable = No
}}
A '''medicine''' is a type of [[potion]] that cures the specified [[effect]] instead of applying it.

== Obtaining ==

=== Brewing ===
Cures are brewed from awkward potions using different [[element]]s.{{only|bedrock|education}} These drinks remove the specified effect when drank, and cannot be modified into splash, lingering, extended or enhanced versions.

{| class="wikitable" style="text-align: center;" data-description="Remedies"
! Potion
! Reagent, base
! Effect
! Notes
|-
! {{Inventory slot|Antidote}}<br>Antidote
| {{Brewing Stand
 |Input= Silver
 |Output2= Awkward Potion
 }}
| Cures [[Poison]]
| Silver detects poison {{w|Silver#Symbolic role|in folklore}}, and possesses anti-microbial properties.
|-
! {{Inventory slot|Elixir}}<br>Elixir
| {{Brewing Stand
 |Input= Cobalt
 |Output2= Awkward Potion
 }}
| Cures [[Weakness]]
|
|-
! {{Inventory slot|Eye Drops}}<br>Eye Drops
| {{Brewing Stand
 |Input= Calcium
 |Output2= Awkward Potion
 }}
| Cures [[Blindness]]
|
|-
! {{Inventory slot|Tonic}}<br>Tonic
| {{Brewing Stand
 |Input= Bismuth
 |Output2= Awkward Potion
 }}
| Cures [[Nausea]]
| In real life, {{w|bismuth subsalicylate}} is used as a nausea treatment.
|}

== Usage ==

Each type of medicine has an associated effect that it can cure (see {{slink||Brewing}} for details). Players can drink the medicine only if they have the corresponding effect. Drinking the medicine eliminates the effect. Although medicine does not resemble [[potion]]s, the player still gets the [[glass bottle]] back.

== Sounds ==
{{Sound table
|type=bedrock
|sound=Drink.ogg
|source=player
|description=When a player drinks medicine
|id=random.drink
|foot=1}}

== Data values ==
=== ID ===
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Medicine
|spritetype=item
|nameid=medicine
|id=599
|form=item
|notshowbeitemforms=y
|translationkey=item.medicine.poison.name,item.medicine.weakness.name,item.medicine.blindness.name,item.medicine.nausea.name
|foot=1}}

== History ==

{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.20.1|[[File:Antidote BE1.png|32px]] [[File:Elixir BE1.png|32px]] [[File:Eye Drops BE1.png|32px]] [[File:Tonic BE1.png|32px]] Added medicines.}}

{{History|education}}
{{History||1.0.27|[[File:Antidote BE1.png|32px]] [[File:Elixir BE1.png|32px]] [[File:Eye Drops BE1.png|32px]] [[File:Tonic BE1.png|32px]] Added medicines.}}
{{History|foot}}

== Issues ==

{{issue list|Cures|Medicine}}

== See also ==

* [[Potion]]
* [[Splash Potion]]
* [[Lingering Potion]]

{{Items}}
{{Education Edition}}

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

[[de:Medizin]]
[[it:Medicinale]]
[[ja:治療薬]]
[[lzh:藥]]
[[pl:Leki]]
[[pt:Remédio]]
[[zh:药物]]</li><li>[[Bone Meal|Bone Meal]]<br/>{{Item
| image = Bone Meal.png
| renewable = Yes
| stackable =  Yes (64)
}}
'''Bone meal''' is a material that can be used as a fertilizer for most plants and fungi, as well as a crafting ingredient for [[dye]]s.

== Obtaining ==

=== Crafting ===

{{Crafting
|Bone
|Output=Bone Meal,3
|type=Material
|showname=0
|head=1
}}
{{Crafting
|Bone Block
|Output= Bone Meal,9
|type=Material
|foot=1
}}

=== Mob loot ===

==== Fish ====
All fish mob variants ([[cod]], [[salmon]], [[tropical fish]], and [[pufferfish]]) have a 5% chance to drop 1 bone meal upon death.{{only|java}} In [[Bedrock Edition]], they drop [[bones]] instead.

=== Composters ===

When a [[composter]] is completely filled, a single bone meal drops the next time the composter is {{ctrl|used}}.

=== Trading ===

[[Wandering trader]]s sell 3 bone meal for an [[emerald]].{{only|bedrock}}

== Usage ==

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

{{IN|bedrock}}, bone meal can be also used in [[banner pattern]]s:
{{banner crafting usage}}

=== Loom ingredient === 
{{Banner loom usage|Bone Meal}}

=== Dye ===
{{Dye usage}}

=== Fertilizer ===
Bone meal can also be used on the following [[plants]] to have a chance to increase their growth stage:
{| class="wikitable"
|+
!Plant
!Action
|-
|{{BlockLink|Wheat}}<br>{{BlockLink|Carrots}}<br>{{BlockLink|Potatoes}}
|The plant matures 2–5 growth stages.
|-
|{{BlockLink|Beetroots}}
|The plant has a 75% chance of growing to the next growth stage.
|-
|{{BlockLink|Bamboo}}
|Grows the [[bamboo]] by 1-2 stems.
|-
|{{BlockLink|Melon Stem|link=Melon seeds|text=Melon Seeds}}<br>{{BlockLink|Pumpkin Stem|link=Pumpkin seeds|text=Pumpkin Seeds}}
|The planted stem matures 2–5 growth stages. Bone meal affects only the stem's growth; it does not cause [[melon]]s or [[pumpkin]]s to sprout from a mature stem.
|-
|{{BlockLink|Saplings}}<br>{{BlockLink|Azalea}}<br>{{BlockLink|Flowering Azalea}}<br>{{BlockLink|Mangrove Propagule}} (not hanging)
|The [[sapling]] has a 45% chance of growing to the next growth stage, if possible. Saplings have two growth stages (with no visible difference between them) before growing into trees as the third stage. A tree cannot grow unless the sapling is planted in proper ground and sufficient space is available. Using bone meal on such an obstructed sapling with no chance of growing wastes the bone meal.
|-
|{{BlockLink|Sunflower}}s<br>{{BlockLink|Lilac}}s<br>{{BlockLink|Rose Bush}}es<br>{{BlockLink|Peony|Peonies}}
|The corresponding item form drops, without destroying the original plant.
|-
|{{BlockLink|Grass}}<br>{{BlockLink|Fern}}s<br>{{BlockLink|Seagrass}}
|A one-block-high tall [[grass]], [[fern]], or [[seagrass]] (that is on [[grass block]], [[dirt]], [[coarse dirt]], [[rooted dirt]], [[farmland]], [[podzol]], [[mycelium]], [[moss block]], [[mud]], or [[muddy mangrove roots]] (only exception is seagrass, will need to on a full surface)) grows into a two-block-high tall grass, fern or seagrass.
|-
|{{BlockLink|Mushrooms}}
|Has a 40% chance of growing into a {{EnvLink|huge mushroom}} if on [[grass block]], [[dirt]], [[coarse dirt]], [[rooted dirt]], [[farmland]], [[podzol]], [[mycelium]], [[moss block]], [[mud]], or [[muddy mangrove roots]].
|-
|{{BlockLink|Cocoa}}
|The cocoa plant matures 1 growth stage.
|-
|{{BlockLink|Sweet Berry Bush}}
|Grows every stage.
|-
|{{BlockLink|Sea Pickle}}
|If the [[sea pickle]] is on a [[coral block]] and in [[water]] at least 2 blocks deep, the sea pickle colony grows, and additional sea pickles generate nearby.
|-
|{{BlockLink|Sugar Cane}}{{only|bedrock|short=1}}
|The sugar cane grows to maximum height (three blocks tall).
|-
|{{BlockLink|Kelp}}
|The kelp plant grows by 1 block per bone meal used, up to its maximum height.
|-
|{{BlockLink|Flower|id=poppy}} (excluding wither roses){{only|bedrock|short=1}}
|One-block-high flowers make more flowers of the same type grow in the surrounding area.
|-
|{{BlockLink|Fungus|id=fungi}}
|Grows into [[huge fungi]], but only if on the respective [[nylium]].
|-
|{{BlockLink|Weeping Vines}}
|Grows the [[weeping vine]]s a few blocks downward.
|-
|{{BlockLink|Twisting Vines}}
|Grows the [[twisting vine]]s a few blocks upward.
|-
|{{BlockLink|Cave Vines}}
|Produces [[glow berries]] if the vine did not have any [[glow berries]] on it already.
|-
|{{BlockLink|Glow Lichen}}
|The [[glow lichen]] spreads to a random adjacent block.
|-
|{{BlockLink|Moss Block}}
|The [[moss block]] causes nearby [[stone]], [[cave vine]]s, and [[dirt]] to become moss blocks.
|-
|{{BlockLink|Big Dripleaf}}<br>{{BlockLink|Small Dripleaf}}
|A [[big dripleaf]] grows one block higher, and a [[small dripleaf]] becomes a big dripleaf.
|-
|{{BlockLink|Rooted Dirt}}
|Causes [[hanging roots]] to grow underneath the [[rooted dirt]] if there is space.
|-
|{{BlockLink|Mangrove Leaves}}
|Creates a hanging [[mangrove propagule]] under the [[mangrove leaves]].
|-
|{{BlockLink|Mangrove Propagule}} (hanging)
|The [[mangrove propagule]] matures 1 growth age.
|-
|{{BlockLink|Pink Petals}}
|Produces another pink petal in the block. If there are already four pink petals in the block, it will drop a pink petal as an item.
|-
|{{BlockLink|Torchflower Crop}}<br>{{BlockLink|Pitcher Crop}}
|Grows every stage.
|}

Bone meal does not affect:
* [[Cactus]]
* [[Vines]]
* [[Nether wart]]
* [[Sugar cane]]{{only|JE}}
* [[Chorus plant]]s, or other plants not listed above.

==== Wasting bone meal ====
Bone meal can be used on the following objects in the following situations, consuming it without any real effect:

* On [[grass]], [[fern]]s, and [[seagrass]] that do not have enough space to grow.<ref>{{bug|MC-125642}}</ref>
* On [[seagrass]] that doesn't have [[water]] above.
* On a [[dark oak sapling]] that is not in a group of four.<ref>{{bug|MC-168446}}</ref>
* On a [[mushroom]] that is not on a block that allows it to grow into a huge mushroom.<ref>{{bug|MC-173213}}</ref>
* On a [[sea pickle]] that is already in a group of four and has no valid locations to expand to.<ref>{{bug|MC-127995}}</ref>
* On a [[bamboo]] (not [[bamboo shoot]]) that is blocked in the way.
* On a [[sea pickle]] that is not on a [[coral block]].
* On a [[fungus]] that is not on its respective [[nylium]].
* Any plants that can't grow due to being block by the [[build limit]].

=== Creating new plants ===

If bone meal is {{ctrl|used}} on a [[grass block]]; [[tall grass]], [[grass]], [[flower]]s, and [[pink petals]] form on the targeted block and on random adjacent grass blocks in an 15×5×15{{only|java|short=1}}/7×5×7{{only|bedrock|short=1}} area centered on the targeted block. The flowers/pink petals that appear depend on the biome, meaning that in order to obtain specific flowers, the player must travel to biomes where the flowers are found naturally. See {{slink|Flower|Flower biomes}} for more information.

Using bone meal on a 2-block flower (rose bushes, sunflowers, lilacs or peonies) will cause one of the same type of flower to drop, without breaking the original. This is the only way to reproduce these flowers, since they cannot generate from using bone meal on grass blocks.

Using bone meal on a non-transparent block that is underwater generates [[seagrass]] on that block and surrounding blocks. Sometimes, if in a [[warm ocean]] biome, [[coral]] and [[coral fan]]s may have a chance to generate as well, and in Bedrock Edition, coral (not coral fan) can be generated in any biome. In order for this to work, there must be 2 water blocks above the block the bone meal is being used on, and the lower one must be non-flowing water.

Using bone meal on a [[sea pickle]] on a [[coral block]] creates sea pickles. This generates sea pickles up to 3 [[block]]s (of coral) away, so a 7+ × 7+ block (49+ blocks) of coral may be necessary, to return the most sea pickles per given bone meal attempt (more attempts grows them more numerously, exactly - including the range of it growing, like grass with heights on grass blocks - as coral and coral fans, though those others being non-solid blocks).

Using bone meal on [[netherrack]] adjacent to [[nylium]] converts the netherrack into nylium of the same type. If both crimson and warped nylium are adjacent to the netherrack that was applied with bone meal, there is a 50% chance that either type of nylium is created.

Using bone meal on [[nylium]] causes the corresponding [[roots]] and both types of [[fungi]] to appear on the nylium block and other nylium nearby, with the type of fungi matching the type of nylium being more common. In addition, using bone meal on the side of warped nylium creates [[nether sprouts]] and [[twisting vines]].

=== Farmer villagers ===
[[Villager]]s with the farmer profession can collect bone meal from a full [[composter]], with which they can make their crops grow faster.

== Sounds ==
{{edition|java}}:
{{Sound table
|sound=Bonemeal1.ogg
|sound2=Bonemeal2.ogg
|sound3=Bonemeal3.ogg
|sound4=Bonemeal4.ogg
|sound5=Bonemeal5.ogg
|subtitle=Bone Meal crinkles
|description=When bone meal is successfully used
|source=block
|id=item.bone_meal.use
|translationkey=subtitles.item.bone_meal.use
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}

{{edition|be}}:
{{Sound table
|type=bedrock
|sound=Bonemeal1.ogg
|sound2=Bonemeal2.ogg
|sound3=Bonemeal3.ogg
|sound4=Bonemeal4.ogg
|sound5=Bonemeal5.ogg
|description=When bone meal is successfully used
|source=block
|id=item.bone_meal.use
|volume=1.0
|pitch=0.9-1.1
|foot=1}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Bone Meal
|spritetype=item
|nameid=bone_meal
|aliasid=dye / 15
|id=411
|form=item
|translationkey=item.dye.white.name
|foot=1}}

== History ==

{{History|java beta}}
{{History||1.2|[[File:Bone Meal JE1 BE1.png|32px]] Added bone meal.
|Bone meal can now only be applied to [[sapling]]s and [[wheat]].}}
{{History||1.6.6|Bone meal can now be applied on [[grass block]]s.}}
{{History||1.8|snap=Pre-release|Bone meal can now be used on [[mushroom]]s to make [[huge mushroom]]s, and the block the mushroom is on changes to [[dirt]].}}
{{History|||snap=Pre-release 2 ;)|Bone meal can now be applied on [[pumpkin seeds|pumpkin]] and [[melon seed]]s.}}
{{History|java}}
{{History||1.3.1|snap=12w19a|Bone meal can now be applied on [[cocoa bean]]s.}}
{{History|||snap=1.3|[[File:Bone Meal JE2 BE2.png|32px]] The texture of bone meal has been changed.}}
{{History||1.4.2|snap=12w34a|Bone meal can now be used to dye [[leather armor]] and [[tamed wolf]]'s collar.}}
{{History||1.4.6|snap=12w49a|Bone meal can now be [[crafted]] with [[gunpowder]] to create a [[firework star]].}}
{{History||1.5|snap=13w04a|Bone meal has been significantly nerfed.<br>
[[Wheat]], [[melon seeds|melon]] and [[pumpkin seed]]s, [[potato]]es and [[carrot]]s: one bone meal is now consumed for all seven stages of growth (melon and pumpkin seeds do not spawn right away).<br>
[[Sapling]]s: one bone meal is now consumed for each of the two growth stages, then it grows into a tree.<br>
[[Cocoa]]s: one bone meal is now consumed for each of the three stages of growth.
|Green [[particle]]s are now displayed when bone meal is used.
|Bone meal can now be used from [[dispenser]]s.}}
{{History|||snap=13w05a|The balancing of bone meal has been adjusted. Growing a plant to its last state now takes on average 2-5 uses of bone meal (results vary from plant to plant).<ref>https://web.archive.org/web/20220921040940/https://imgur.com/a/gOngk</ref>}}
{{History||1.6.1|snap=13w19a|Bone meal can now be used to craft white [[stained clay]].}}
{{History||1.7.2|snap=13w36a|The [[flower]]s generated when using bone meal on grass blocks is now biome dependent.}}
{{History|||snap=13w41a|Bone meal can now be used to craft white [[stained glass]].}}
{{History||1.8|snap=14w30a|Added [[banner]]s, which can be dyed with [[bone meal]].}}
{{History||1.10|snap=16w20a|Bone meal can now be used to craft [[bone block]]s.}}
{{History||1.11|snap=16w39b|Bone meal can now be used to dye [[shulker box]]es.}}
{{History||1.12|snap=17w06a|Bone meal can now be used to craft white [[concrete powder]].}}
{{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 [[item]]'s numeral ID was 351.}}
{{History|||snap=18w07a|Bone meal can now be used underwater to create [[seagrass]].}}
{{History|||snap=18w14b|Bone meal can now be used for spreading [[sea pickle]]s.}}
{{History||1.13.1|snap=18w31a|Bone meal used in [[water]] of warm ocean biomes now has a chance of growing [[coral]].
|[[Cod]], [[salmon]], [[tropical fish]], and [[pufferfish]] now have a chance of dropping bone meal upon death.}}
{{History|||snap=18w32a|Bone meal used in [[water]] of warm ocean biomes now has a chance of growing [[coral fan]]s.}}
{{History||1.14|snap=18w43a|Bone meal can now used to craft [[white dye]].
|Bone meal can no longer be used as a [[dye]].
|All of the dye-related functions and crafting recipes of bone meal (except bone blocks) have been transferred to white dye.
|[[File:Bone Meal JE3 BE3.png|32px]] The texture of bone meal has been changed.
|Bone meal can now be used on [[bamboo]] and [[bamboo shoot]].}}
{{History|||snap=19w03a|Bone meal can now be obtained from [[composter]]s.}}
{{History||1.16|snap=20w06a|Bone meal can now be used to grow [[fungi]] into [[huge fungi]].
|Bone meal can now be used to spread [[nylium]] onto netherrack.}}
{{History|||snap=20w09a|Using bone meal to grow fungi now works only on the respective [[nylium]].}}
{{History|||snap=20w11a|Bone meal can now grow [[kelp]], [[weeping vines]], and [[twisting vines]].}}
{{History|||snap=20w12a|Bone meal can now be used to grow [[roots]], [[fungi]], and [[nether sprouts]] on nylium.}}
{{History|||snap=20w13a|Farmers can now use bone meal to grow crops.}}
{{History||1.17|snap=21w03a|Bone meal can now be used to spread [[glow lichen]]s.}}
{{History|||snap=21w05a|Bone meal can now be used on [[moss block]]s, [[small dripleaf]], [[big dripleaf]], and [[cave vines]].}}
{{History|||snap=21w11a|Bone meal can now be used on [[rooted dirt]].}}
{{History|||snap=21w15a|Bone meal now makes a sound when used.}}
{{History|||snap=21w16a|Moss patches obtained from fertilizing moss blocks contain less vegetation and are now smaller and more irregular in shape.
|Bone meal can now be used on [[azalea]] and [[flowering azalea]].}}
{{History||1.19|snap=22w11a|Bone meal can now be used on [[mangrove propagule]]s and [[mangrove leaves]].}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w07a|Bone meal can now be used on [[pink petals]] and [[torchflower crop]]s.|Using bone meal on [[cherry grove]]s now have a chance to generate [[pink petal]]s.}}
{{History||1.20|snap=23w12a|Bone meal can now be used on [[pitcher crop]]s.}}

{{History|pocket alpha}}
{{History||v0.3.0|[[File:Bone Meal JE1 BE1.png|32px]] Added bone meal. It is currently unobtainable and serves no purpose.}}
{{History||v0.3.3|Bone meal can now be crafted from bones.
|Bone meal can now be applied to grass blocks and saplings.}}
{{History||v0.4.0|Added the first [[crop]]s, which bone meal can be applied to.}}
{{History||v0.8.0|snap=build 1|[[File:Bone Meal JE2 BE2.png|32px]] The texture of bone meal has been changed.
|Bone meal no longer instantly grows [[crop]]s to full size.
|Bone meal can now be used to craft white [[wool]].}}
{{History|||snap=build 5|[[Pumpkin]] and [[melon]] stems now grow by only one stage when bone meal is used.
|Some [[flower]]s now spawn certain other flowers when bone meal is used on them.
|Bone meal can now grow [[fern]]s and [[tall grass]] in [[survival]] and [[creative]].
|Bone meal can now grow [[sugar cane]]s to maximum height.}}
{{History||v0.9.0|snap=build 11|Bone meal can now be used to dye tamed [[wolf]] collars.}}
{{History||v0.14.0|snap=build 1|Bone meal can now be used from [[dispenser]]s.
|Bone meal can now be used to dye [[water]] in [[cauldron]]s.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Bone meal can now be used to dye [[shulker]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Bone meal can now be used to craft white [[concrete powder]], white [[bed]]s and white [[shulker box]]es.}}
{{History||1.1.3|snap=alpha 1.1.3.0|Bone meal can now be used to craft [[bone block]]s.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Bone meal can now be used to craft white [[stained glass]].
|Bone meal can now be used to craft [[firework star]]s.
|Bone meal can now be used to create [[banner]] patterns.}}
{{History||1.4.0|snap=beta 1.2.14.2|Bone meal can now be used underwater for growing [[seagrass]] and [[coral]].}}
{{History|||snap=beta 1.2.20.1|Bone meal can now be used for spreading [[sea pickle]]s.
|Bone meal can now be used to craft white [[balloon]]s and white [[glow stick]]s.}}
{{History||1.8.0|snap=beta 1.8.0.8|Bone meal can now be used to grow [[bamboo]].}}
{{History|||snap=beta 1.8.0.10|Bone meal can now be used to craft [[white dye]].}}
{{History||1.10.0|snap=beta 1.10.0.3|Bone meal are now sold by [[wandering trader]]s.
|[[File:Bone Meal JE3 BE3.png|32px]] The texture of bone meal has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Bone meal can now be obtained from [[composter]]s.}}
{{History||1.16.0|snap=beta 1.16.0.51|Bone meal can now grow [[fungus|fungi]] into [[huge fungi]].
|Bone meal can now be used to turn [[netherrack]] into [[nylium]].
|Bone meal can now be used to grow [[roots]], [[fungi]], and [[nether sprouts]] on nylium.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of bone meal has been changed from <code>dye/15</code> to <code>bone_meal</code>.}}
{{History||1.16.210|snap=beta 1.16.210.51|Bone meal used in [[water]] now has a chance of growing [[coral fan]]s.}}
{{History||1.16.220|snap=beta 1.16.220.52|Bone meal can now be used on [[moss block]]s, [[small dripleaf]], [[big dripleaf]], [[cave vines]] and [[rooted dirt]].}}
{{History||1.17.0|snap=beta 1.16.230.50|Bone meal can now be used to spread [[glow lichen]]s.}}
{{History|||snap=beta 1.16.230.54|Bone meal can be used to grow [[azalea]]s into azalea trees.}}
{{History|||snap=beta 1.17.0.50|Bone meal now makes a sound when used.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Bone Meal JE1 BE1.png|32px]] Added bone meal.}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|Bone meal no longer instantly grows [[crop]]s to full size.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Bone Meal JE3 BE3.png|32px]] The texture of bone meal has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Bone Meal JE2 BE2.png|32px]] Added bone meal.}}
{{History|foot}}

== Issues ==

{{issue list}}

== Trivia ==

* Bone meal can be used on the sides or bottom of a [[grass block]], as well as on a grass block with [[plant]]s already on top of it.
* Regardless of if it succeeds in fertilizing, bone meal makes green sparkles. However, like smoke from a [[torch]], the sparkles appear only if the [[player]] has [[particles]] set All or Decreased.
* In real life, [[Wikipedia:bone meal|bone meal]] is used as a fertilizer to provide nitrogen and phosphorus to plants.

==Gallery==

<gallery>
File:Bone Meal On Grass.png|Bone meal used on [[grass block]]s.
</gallery>

== See also ==

* [[Farming]]

== References ==
{{reflist}}

{{Items}}

[[Category:Dyes]]
[[Category:Plants]]
[[Category:Renewable resources]]

[[cs:Kostní moučka]]
[[de:Knochenmehl]]
[[es:Polvo de hueso]]
[[fr:Poudre d'os]]
[[hu:Csontliszt]]
[[ja:骨粉]]
[[ko:뼛가루]]
[[nl:Beendermeel]]
[[pl:Mączka kostna]]
[[pt:Farinha de osso]]
[[ru:Костная мука]]
[[th:ผงกระดูก]]
[[zh:骨粉]]</li></ul>
17w45a/gamerule no longer accepts unknown values (dummy gamerules).
Values to /gamerule are now type-checked.
Pocket Edition
1.0.5
{{Extension DPL}}<ul><li>[[Green Dye|Green Dye]]<br/>{{redirect|Cactus Green|the plant|Cactus}}{{Item
| title = Green Dye
| renewable = Yes
| stackable = Yes (64)
}}
'''Green dye''' is a [[primary color dye]].

== Obtaining ==

=== Chest loot ===
{{LootChestItem|green-dye}}

=== Smelting ===
{{Smelting
|head=1
|showdescription=1
|Cactus
|Green Dye
|1
|description={{only|Java}}<ref>{{bug|MC-210211||Smelting cactus gives too much experience since 1.13}}</ref>
}}
{{Smelting
|head=0
|showdescription=1
|Cactus
|Green Dye
|0,2
|description={{only|Bedrock}}
|foot=1
}}

=== Trading ===

[[Wandering trader]]s sell 3 green dye for an [[emerald]].

== Usage ==

{{dye usage}}

=== Crafting ingredient ===

{{crafting usage|ignore=Banner|continue=1}}
{{banner crafting usage}}

=== Loom ingredient ===
{{Banner loom usage|Green Dye}}

=== Trading ===
Expert level shepherd villagers have {{frac|1|6}} chance to buy 12 green dye for an emerald.{{only|bedrock}} Expert level shepherds have a {{frac|2|7}} chance to buy 12 green dye for 1 emerald.{{only|java}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Green Dye
|spritetype=item
|nameid=green_dye
|aliasid=dye / 2
|id=397
|form=item
|translationkey=item.dye.green.name
|foot=1}}

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

== History ==

{{History|java beta}}
{{History||1.2|[[File:Green Dye JE1 BE1.png|32px]] Added cactus green, together with all other dyes.}}
{{History|java}}
{{History||1.3.1|snap=1.3|[[File:Green Dye JE2 BE2.png|32px]] The texture of cactus green has been changed.}}
{{History||1.4.2|snap=12w34a|Added the ability to [[Armor#Dyeing|dye]] leather [[armor]] and [[wolf]] collars.}}
{{History||1.4.6|snap=12w49a|Cactus green can be crafted with [[gunpowder]] to create a [[firework star]].}} 
{{History||1.6.1|snap=13w19a|[[Stained clay]] can now be [[crafting|crafted]].}}
{{History||1.7.2|snap=13w41a|[[Stained glass]] can now be crafted.}}
{{History||1.8|snap=14w30a|Added [[banner]]s, which can be dyed.}}
{{History||1.11|snap=16w39a|Added the ability to dye [[shulker box]]es.}}
{{History||1.12|snap=17w06a|Cactus green can now be used to craft green [[concrete powder]].}}
{{History||1.12|snap=17w15a|Added the ability to dye [[bed]]s.}}
{{History||1.13|snap=17w47a|The different data values for the <code>dye</code> ID have now been split up into their own IDs.
|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 351.}}
{{History||1.14|snap=18w43a|"Cactus Green" has been renamed to "Green Dye".
|[[File:Green Dye JE3 BE3.png|32px]] The texture of green dye has been changed.}}
{{History|||snap=18w44a|Green dye can now change the text color on [[sign]]s to green.}}
{{History|||snap=18w50a|Green dye can now be found in [[chest]]s in [[desert]] [[village]] houses.}}
{{History|||snap=19w05a|Added the [[wandering trader]], which sells green dye.}}
{{History|||snap=19w11a|Green dye can now be [[trading|bought]] by shepherd villagers.}}
{{History||1.17|snap=20w45a|Green dye can now be used to craft [[green candle]]s.}}
{{History|||snap=21w19a|Green dye can no longer be used to craft green candles.}}
{{History|||snap=Pre-release 1|Green dye can once again be used to craft green candles.}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|Green dye can now change the text color on [[hanging sign]]s to green.}}

{{History|pocket alpha}}
{{History||v0.3.0|[[File:Green Dye JE1 BE1.png|32px]] Added cactus green. It is currently unobtainable and has no usage.}}
{{History||v0.3.2|Cactus green is now obtainable by [[smelting]] cacti in a [[furnace]]. It still has no usage.}}
{{History||v0.4.0|Cactus green can now be used to craft [[cyan dye]], [[lime dye]], and [[green wool]].}}
{{History||v0.8.0|snap=build 1|[[File:Green Dye JE2 BE2.png|32px]] The texture of cactus green has been changed.}}
{{History||v0.14.0|snap=build 1|Cactus green can now be used to dye [[water]] in [[cauldron]]s.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Cactus green can now be used to dye [[shulker]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Cactus green can now be used to dye [[bed]]s, [[shulker box]]es, and craft [[concrete powder]].}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Cactus green can now be used to craft [[stained glass]], patterns on [[banner]]s, and [[firework star]]s.}}
{{History||1.4.0|snap=beta 1.2.20.1|Cactus green can now be used to craft [[balloon]]s and [[glow stick]]s.}}
{{History||1.8.0|snap=beta 1.8.0.10|"Cactus Green" has been renamed to "Green Dye".}}
{{History||1.10.0|snap=beta 1.10.0.3|Green dye is now sold by [[wandering trader]]s.
|[[File:Green Dye JE3 BE3.png|32px]] The texture of green dye has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Green dye can now be found in [[desert]] [[village]] house [[chest]]s.}}
{{History|||snap=beta 1.11.0.4|Green dye can now be [[trading|sold]] to shepherd [[villager]]s.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of green dye has been changed from <code>dye/2</code> to <code>green_dye</code>.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.00|wiiu=Patch 1|[[File:Green Dye JE1 BE1.png|32px]] Added cactus green.}}
{{History|PS4}}
{{History||1.83|"Cactus Green" has been renamed to "Green Dye".}}
{{History||1.90|[[File:Green Dye JE3 BE3.png|32px]] The texture of green dye has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Green Dye JE1 BE1.png|32px]] Added cactus green.}}
{{History|foot}}

== Issues ==

{{issue list}}

{{Items}}

[[cs:Kaktusová zeleň]]
[[de:Grüner Farbstoff]]
[[es:Tinte verde]]
[[fr:Teinture verte]]
[[hu:Kaktuszzöld]]
[[ja:緑色の染料]]
[[ko:초록색 염료]]
[[nl:Cactusgroen]]
[[pl:Zielony barwnik]]
[[pt:Corante verde]]
[[ru:Зелёный краситель]]

[[Category:Items]]
[[Category:Dyes]]
[[Category:Renewable resources]]</li><li>[[Slimeball|Slimeball]]<br/>{{about|the item|the mob|Slime|the block constructed with slimeballs|Slime Block|other uses|Slime (disambiguation)}}
{{Item
| image = Slimeball.png
| renewable = Yes
| stackable = Yes (64)
}}

A '''slimeball''' is a [[crafting]] ingredient commonly dropped by [[slime]]s, and can be sneezed out by [[panda]]s.

== Obtaining ==

=== Mob loot ===

==== Slimes ====
{{see also|Tutorials/Slime farming}}

If a [[slime]]'s size is 1, it drops 0–2 slimeballs when killed. The maximum number of slimeballs is increased by 1 per level of [[Looting]], for a maximum of 5 slimeballs with Looting III.

==== Pandas ====

Baby [[panda]]s have a {{frac|1|700}} chance of [[drop]]ping one slimeball when sneezing.

=== Crafting ===

{{Crafting
  |Slime Block
  |Output= Slimeball,9
  |type= Miscellaneous
}}

=== Trading ===

[[Wandering trader]]s sometimes offer to sell a slimeball for 4 [[emerald]]s.

== Usage ==

=== Crafting ingredient ===

{{crafting usage}}

=== Breeding ===

Slimeballs can be used to breed [[frog]]s and reduce the remaining growth duration of [[tadpole]]s by 10%. Both also follow a player holding a slimeball.

==Video==
{{Video note|This video is outdated, as slimeballs can now also be used to craft [[lead]]s and [[slime block]]s, breed [[frog]]s, and can now be obtained from baby [[panda]]s and [[wandering trader]]s.}}
{{yt|J6oR3fdbbjY}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Slimeball
|spritetype=item
|nameid=slime_ball
|id=388
|form=item
|foot=1}}

==History==

{{History|java alpha}}
{{History||v1.0.11|[[File:Slimeball JE1 BE1.png|32px]] Added slimeballs, which are dropped from [[slime]]s. At the moment, they serve no purpose.}}
{{History|java beta}}
{{History||1.7|Slimeballs are now used to craft [[sticky piston]]s.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|Slimeballs are used to craft [[magma cream]].}}
{{History||1.6.1|snap=13w18a|[[Lead]]s, which were originally implemented in the [[13w16a]] snapshot, now have a [[crafting]] recipe that includes slimeballs.}}
{{History||1.8|snap=14w02a|Nine slimeballs are now used to [[crafting|craft]] a [[slime block]]. Slime blocks also act as storage [[block]]s, being able to craft back into 9 slimeballs.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 341.}}
{{History||1.14|snap=18w43a|[[File:Slimeball JE2 BE2.png|32px]] The texture of slimeballs has been changed.
|Slimeballs can now be obtained when a [[panda|baby panda]] sneezes.}}
{{History|||snap=19w05a|Slimeballs can now be bought from [[wandering trader]]s.}}
{{History||1.19|snap=22w11a|Slimeballs can now be used to breed [[frog]]s.}}

{{History|pocket alpha}}
{{History||v0.9.0|snap=build 1|[[File:Slimeball JE1 BE1.png|32px]] Added slimeballs. They are currently unobtainable and serve no purpose.}}
{{History||v0.12.1|snap=build 1|Added slimeballs to the [[creative]] [[inventory]].
|Slimeballs can now be obtained by killing [[slime]]s.
|Slimeballs are now used to craft [[magma cream]].}}
{{History||v0.14.0|snap=build 1|Slimeballs are now used to craft [[slime block]]s.}}
{{History||v0.15.0|snap=build 1|Slimeballs are now used to craft [[sticky piston]]s and [[lead]]s.}}
{{History|bedrock}}
{{History||1.8.0|snap=beta 1.8.0.8|Slimeballs can now be obtained when a [[panda|baby panda]] sneezes.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Slimeball JE2 BE2.png|32px]] The texture of slimeballs has been changed.
|Slimeballs can now be obtained via [[trading]] with [[wandering trader]]s.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Slimeball JE1 BE1.png|32px]] Added slimeballs.}}
{{History||xbox=TU3|Slimeballs are now used to craft [[sticky piston]]s.}}
{{History||xbox=TU5|Slimeballs are found in the Miscellaneous tab in the [[Creative inventory]].}}
{{History||xbox=TU9|Moved slimeballs to the Materials tab in the Creative inventory.}}
{{History||xbox=none|xbone=none|ps=1.83|wiiu=none|switch=none|Slimeballs can now be obtained when a [[panda|baby panda]] sneezes.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Slimeball JE2 BE2.png|32px]] The texture of slimeballs has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Slimeball JE1 BE1.png|32px]] Added slimeballs.}}
{{History|foot}}

==Issues ==
{{issue list}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--slimeball Taking Inventory: Slimeball] – Minecraft.net on June 24, 2021

{{Items}}

[[Category:Renewable resources]]

[[cs:Sliz]]
[[de:Schleimball]]
[[es:Bola de slime]]
[[fr:Boule de Slime]]
[[hu:Nyálkagolyó]]
[[it:Palla di slime]]
[[ja:スライムボール]]
[[ko:슬라임볼]]
[[nl:Slijmbal]]
[[pl:Kula szlamu]]
[[pt:Bola de slime]]
[[ru:Слизь]]
[[th:ลูกเมือก]]
[[uk:Слизова кулька]]
[[zh:黏液球]]</li></ul>
alpha 1.0.5.0Added /gamerule.
Bedrock Edition
?Command segments rule: BoolGameRule or rule: IntGameRule no longer accept dummy gamerules.

See also