{{Infobox version
| edition = bedrock
| type = Preview
| image = Bedrock 1.20.20.21 PatchNotes.jpg
| image2 = Bedrock 1.20.20.21.png
| build = 16310717
| editorver = 0.4.1
| internal = '''Windows''': 1.20.2021.0<br>'''Android, iOS, iPadOS''': 1.20.20.21<br>'''Xbox One''': 1.20.2021.70<br>
| server = 1.20.20.21
| versioncode = '''Android''':<br>
952002021（armeabi-v7a，33）<br>
962002021（x86，33）<br>
972002021（arm64-v8a，33）<br>
982002021（x86_64，33）<br>
| date = July 12, 2023
| serverdl = '''Server'''<br>[https://minecraft.azureedge.net/bin-win-preview/bedrock-server-1.20.20.21.zip Windows]<br>[https://minecraft.azureedge.net/bin-linux-preview/bedrock-server-1.20.20.21.zip Linux]
| parent = 1.20.30
| prevparent = 1.20.15
| prev = Preview 1.20.20.20
| next = Preview 1.20.20.22
| nextparent = 1.20.31
}}<onlyinclude>

'''Beta 1.20.20.21''' (Android) or '''Preview 1.20.20.21''' (Windows, iOS, iPadOS, Xbox) is the second beta/''Preview'' version for [[Bedrock Edition 1.20.30]]{{efn|Bedrock Edition 1.20.20 is not a version of the game and its betas are instead part of [[Bedrock Edition 1.20.30|1.20.30]].<ref>{{tweet|cornerhardmc|1691973191923806387|We're actually going to move all the 1.20.20 changes into 1.20.30. More info to come in an upcoming changelog.|August 16, 2023}}</ref>}}, released on July 12, 2023<ref>https://feedback.minecraft.net/hc/en-us/articles/17540689688589-Minecraft-Beta-Preview-1-20-20-21</ref>, which brings more parity from {{JE}} and fixes bugs.

== Additions ==
=== Gameplay ===
; [[Game rule]]s
* Added <code>playersSleepingPercentage</code>, set to <code>100</code> by default.
** Controls what percentage of players must sleep to skip the night.
** When set to <code>0</code> or a negative value, a single player is sufficient to skip the night, and night is skipped immediately without the falling asleep transition.
** When set over <code>100</code>, the night cannot be skipped.
* Added <code>recipesUnlock</code>, controlling whether the player needs to collect items to unlock recipes in the [[recipe book]], defaults to <code>true</code>.

=== General ===
; [[Options]]
* Added "Recipes Unlock" game option. (<code>recipesUnlock</code> game rule)
** For enable/disable the new recipe unlocking system and its features.
* Added alerts for iOS and iPadOS users who have run out of disk space.

=== Technical ===
; [[Add-on]]
* Move ''PlacementDirection'' (<code>minecraft:placement_direction</code>) and ''PlacementPosition'' (<code>minecraft:placement_position</code>) block traits out of experimental. These traits can be used for blocks with <code>format_version >= 1.20.20</code>.

; [[JSON]]
* Released the following components in JSON formats 1.20.30 and higher:
** <code>minecraft:use_animation</code> item component.
** <code>minecraft:allow_off_hand</code> item component.
** <code>minecraft:should_despawn</code> item component.
** <code>minecraft:liquid_clipped</code> item component.
** <code>minecraft:damage</code> item component.
* Added support for Efficiency enchantment for data driven items using the <code>minecraft:digger</code> component.

== Changes ==
=== Blocks ===
; [[Breaking|Block Breaking]]
* Changed the hardness and blast resistance of 188 blocks to match {{JE}}.
{|class="mw-collapsible mw-collapsed wikitable"
! Block
! Old Hardness
! New Hardness
! Old Blast Resistance
! New Blast Resistance
|-
| {{BlockLink|Activator Rail}}
| 0.5
| 0.7
| 0.5
| 0.7
|-
| {{BlockLink|Ancient Debris}}
|
|
| 720
| 1200
|-
| {{BlockLink|Andesite Stairs}}
| 2
| 1.5
| 
| 
|-
| {{BlockLink|Bamboo}}
| 2
| 1
| 2
| 1
|-
| {{BlockLink|Block of Bamboo}} (Both Normal & Stripped)
| 
| 
| 3
| 2
|-
| {{BlockLink|Bamboo Shoot}}
| 0
| 1
| 0
| 1
|-
| {{BlockLink|Bee Nest}}
| 
| 
| 2.7
| 0.3
|-
| {{BlockLink|Beehive}}
| 
| 
| 5.4
| 0.6
|-
| {{BlockLink|Bell}}
| 1
| 5
| 3
| 5
|-
| {{BlockLink|Big Dripleaf}}
| 0
| 0.1
| 0
| 0.1
|-
| {{BlockLink|Campfire}} (All Variants)
| 5
| 2
| 5
| 2
|-
| {{BlockLink|Chain}}
| 
| 
| 3
| 6
|-
| {{BlockLink|Chiseled Deepslate}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Cobbled Deepslate}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Cobbled Deepslate Slab}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Cobbled Deepslate Stairs}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Cobbled Deepslate Wall}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Composter}}
| 2
| 0.6
| 2
| 0.6
|-
| {{BlockLink|id=all-copper-blocks|Block of Copper}} (All Variants)
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Copper Ore}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Coral Blocks}}
| 7
| 1.5
| 0.9
| 6
|-
| {{BlockLink|Coral Fans}}
| 
| 
| 0.9
| 0
|-
| {{BlockLink|Dead Coral Fans}}
| 
| 
| 0.9
| 0
|-
| {{BlockLink|Cracked Deepslate Bricks}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Cracked Deepslate Tiles}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Crimson Hyphae}}
| 0.3
| 2
| 0.3
| 2
|-
| {{BlockLink|Crimson Stem}}
| 
| 
| 0.3
| 2
|-
| {{BlockLink|id=all-cut-copper-blocks|Cut Copper}} (All Variants)
| 
| 
| 3.6
| 6
|-
| {{BlockLink|id=all-cut-copper-slabs|Cut Copper Slab}} (All Variants)
| 
| 
| 3.6
| 6
|-
| {{BlockLink|id=all-cut-copper-stairs|Cut Copper Stairs}} (All Variants)
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate Bricks}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate Brick Slab}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate Brick Stairs}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate Brick Wall}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate Coal Ore}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Deepslate Copper Ore}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Deepslate Diamond Ore}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Deepslate Gold Ore}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Deepslate Iron Ore}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Deepslate Lapis Lazuli Ore}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Deepslate Redstone Ore}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Deepslate Tiles}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate Tile Slab}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate Tile Stairs}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Deepslate Tile Wall}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Diorite Stairs}}
| 2
| 1.5
| 
| 
|-
| {{BlockLink|Dragon Egg}}
| 
| 
| 3
| 9
|-
| {{BlockLink|Dried Kelp Block}}
| 
| 
| 0.5
| 2.5
|-
| {{BlockLink|End Stone Bricks}}
| 0.8
| 3
| 0.8
| 9
|-
| {{BlockLink|End Stone Brick Stairs}}
| 2
| 3
| 6
| 9
|-
| {{BlockLink|Granite Stairs}}
| 2
| 1.5
| 
| 
|-
| {{BlockLink|Infested Blocks}} (All Variants)
| 
| 
| 1.8
| 0.75
|-
| {{BlockLink|Jukebox}}
| 0.8
| 2
| 0.8
| 6
|-
| {{BlockLink|Lantern}} (All Variants)
| 5
| 3.5
| 5
| 3.5
|-
| {{BlockLink|Lectern}}
| 2
| 2.5
| 2
| 2.5
|-
| {{BlockLink|Light Block}}
| 
| 
| 3600000
| 3600000.8
|-
| {{BlockLink|Light Gray Candle}}
| 0
| 0.1
| 0
| 0.1
|-
| {{BlockLink|Lightning Rod}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Lodestone}}
| 2
| 3.5
| 2
| 3.5
|-
| {{BlockLink|Magma Block}}
| 
| 
| 1.5
| 0.5
|-
| {{BlockLink|Mossy Cobblestone Stairs}}
| 2
| 1.5
| 
| 
|-
| {{BlockLink|Mud Bricks}}
| 2
| 1.5
| 2
| 3
|-
| {{BlockLink|Mud Brick Slab}}
| 2
| 1.5
| 6
| 3
|-
| {{BlockLink|Mud Brick Stairs}}
| 2
| 1.5
| 6
| 3
|-
| {{BlockLink|Mud Brick Wall}}
| 2
| 1.5
| 6
| 3
|-
| {{BlockLink|Block of Netherite}}
| 
| 
| 720
| 1200
|-
| {{BlockLink|Piston}}
| 0.5
| 1.5
| 0.5
| 1.5
|-
| {{BlockLink|Sticky Piston}}
| 0.5
| 1.5
| 0.5
| 1.5
|-
| {{BlockLink|Pointed Dripstone}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Polished Andesite Stairs}}
| 2
| 1.5
| 
| 
|-
| {{BlockLink|Polished Blackstone}}
| 1.5
| 2
| 
| 
|-
| {{BlockLink|Polished Blackstone Stairs}}
| 1.5
| 2
| 
| 
|-
| {{BlockLink|Polished Blackstone Wall}}
| 1.5
| 2
| 
| 
|-
| {{BlockLink|Polished Deepslate}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Polished Deepslate Slab}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Polished Deepslate Stairs}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Polished Deepslate Wall}}
| 
| 
| 3.6
| 6
|-
| {{BlockLink|Polished Diorite Stairs}}
| 2
| 1.5
| 
| 
|-
| {{BlockLink|Polished Granite Stairs}}
| 2
| 1.5
| 
| 
|-
| {{BlockLink|Reinforced Deepslate}}
| 
| 
| 720
| 1200
|-
| {{BlockLink|Respawn Anchor}}
| 
| 
| 720
| 1200
|-
| {{BlockLink|Scaffolding}}
| 0.6
| 0
| 0.9
| 0
|-
| {{BlockLink|Sculk}}
| 0.6
| 0.2
| 0.6
| 0.2
|-
| {{BlockLink|Sculk Catalyst}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Sculk Shrieker}}
| 
| 
| 1.8
| 3
|-
| {{BlockLink|Shulker Box}} (All Variants)
| 2.5
| 2
| 2.5
| 2
|-
| {{BlockLink|Smooth Quartz Stairs}}
| 0.8
| 2
| 0.8
| 2
|-
| {{BlockLink|Smooth Stone}}
| 1.5
| 2
| 
| 
|-
| {{BlockLink|Sniffer Egg}}
| 0.4
| 0.5
| 0.4
| 0.5
|-
| {{BlockLink|Soul Soil}}
| 1
| 0.5
| 1
| 0.5
|-
| {{BlockLink|Stripped Crimson Hyphae}}
| 0.3
| 2
| 0.3
| 2
|-
| {{BlockLink|Stripped Crimson Stem}}
| 
| 
| 0.3
| 2
|-
| {{BlockLink|Stripped Warped Hyphae}}
| 0.3
| 2
| 0.3
| 2
|-
| {{BlockLink|Stripped Warped Stem}}
| 
| 
| 0.3
| 2
|-
| {{BlockLink|Sweet Berry Bush}}
| 0.2
| 0
| 0.2
| 0
|-
| {{BlockLink|Turtle Egg}}
| 0.4
| 0.5
| 0.4
| 0.5
|-
| {{BlockLink|Warped Hyphae}}
| 0.3
| 2
| 0.3
| 2
|-
| {{BlockLink|Warped Stem}}
| 
| 
| 0.3
| 2
|}
{{Collapse|tail=1}}

; [[Glass|Stained Glass]]
* The IDs of <code>stained_glass</code> have now been split up into their own IDs.
{|class="mw-collapsible mw-collapsed wikitable"
! [[Bedrock Edition data values|Old ID]]
! [[Bedrock Edition data values|New ID]]
|-
| rowspan="16" | {{BlockSprite|stained-glass}} <code>stained_glass</code>
| {{BlockSprite|white-stained-glass}} <code>white_stained_glass</code>
|-
| {{BlockSprite|orange-stained-glass}} <code>orange_stained_glass</code>
|-
| {{BlockSprite|magenta-stained-glass}} <code>magenta_stained_glass</code>
|-
| {{BlockSprite|light-blue-stained-glass}} <code>light_blue_stained_glass</code>
|-
| {{BlockSprite|yellow-stained-glass}} <code>yellow_stained_glass</code>
|-
| {{BlockSprite|lime-stained-glass}} <code>lime_stained_glass</code>
|-
| {{BlockSprite|pink-stained-glass}} <code>pink_stained_glass</code>
|-
| {{BlockSprite|gray-stained-glass}} <code>gray_stained_glass</code>
|-
| {{BlockSprite|light-gray-stained-glass}} <code>light_gray_stained_glass</code>
|-
| {{BlockSprite|cyan-stained-glass}} <code>cyan_stained_glass</code>
|-
| {{BlockSprite|purple-stained-glass}} <code>purple_stained_glass</code>
|-
| {{BlockSprite|blue-stained-glass}} <code>blue_stained_glass</code>
|-
| {{BlockSprite|brown-stained-glass}} <code>brown_stained_glass</code>
|-
| {{BlockSprite|green-stained-glass}} <code>green_stained_glass</code>
|-
| {{BlockSprite|red-stained-glass}} <code>red_stained_glass</code>
|-
| {{BlockSprite|black-stained-glass}} <code>black_stained_glass</code>
|}

; [[Glass Pane|Stained Glass Pane]]
* The IDs of <code>stained_glass_pane</code> have now been split up into their own IDs.
{|class="mw-collapsible mw-collapsed wikitable"
! [[Bedrock Edition data values|Old ID]]
! [[Bedrock Edition data values|New ID]]
|-
| rowspan="16" | {{BlockSprite|stained-glass-panes}} <code>stained_glass_pane</code>
| {{BlockSprite|white-stained-glass-pane}} <code>white_stained_glass_pane</code>
|-
| {{BlockSprite|orange-stained-glass-pane}} <code>orange_stained_glass_pane</code>
|-
| {{BlockSprite|magenta-stained-glass-pane}} <code>magenta_stained_glass_pane</code>
|-
| {{BlockSprite|light-blue-stained-glass-pane}} <code>light_blue_stained_glass_pane</code>
|-
| {{BlockSprite|yellow-stained-glass-pane}} <code>yellow_stained_glass_pane</code>
|-
| {{BlockSprite|lime-stained-glass-pane}} <code>lime_stained_glass_pane</code>
|-
| {{BlockSprite|pink-stained-glass-pane}} <code>pink_stained_glass_pane</code>
|-
| {{BlockSprite|gray-stained-glass-pane}} <code>gray_stained_glass_pane</code>
|-
| {{BlockSprite|light-gray-stained-glass-pane}} <code>light_gray_stained_glass_pane</code>
|-
| {{BlockSprite|cyan-stained-glass-pane}} <code>cyan_stained_glass_pane</code>
|-
| {{BlockSprite|purple-stained-glass-pane}} <code>purple_stained_glass_pane</code>
|-
| {{BlockSprite|blue-stained-glass-pane}} <code>blue_stained_glass_pane</code>
|-
| {{BlockSprite|brown-stained-glass-pane}} <code>brown_stained_glass_pane</code>
|-
| {{BlockSprite|green-stained-glass-pane}} <code>green_stained_glass_pane</code>
|-
| {{BlockSprite|red-stained-glass-pane}} <code>red_stained_glass_pane</code>
|-
| {{BlockSprite|black-stained-glass-pane}} <code>black_stained_glass_pane</code>
|}

=== Command format ===
; {{cmd|recipe}}
* Now is available without using the "Recipe Unlocking" experimental toggle.

=== Gameplay ===
; [[Recipe book]]
* The new recipe unlocking system and its features are now available without using the "Recipe Unlocking" experimental toggle.
** Now are behind the "Recipes Unlock" game option.
* The recipe book search has been updated when playing in Survival, with the following changes:
** The search will only match the beginning of any word in the item's name. For example, searching for "tor" will now show [[torch]] and [[redstone torch]] but not the [[daylight detector]].
** Recipes that haven't been unlocked will show up in search results.

=== General ===
; [[Experiments]]
* Removed the "Recipe Unlocking" experimental toggle.

; [[Options]]
* Renamed the "Extra Large GUI Scaling" accessibility and video option to "Extra Large New UI".

== Experimental ==
These additions and changes are accessible by enabling the "Beta APIs" and "Molang Features" experimental toggle.
=== Changes ===
==== Technical ====
; API
* Moved <code>Direction</code> to <code>1.4.0</code>.
* Moved <code>EntityDamageSource</code> to <code>1.4.0</code>.
* Moved <code>EntityDieAfterEvent</code> to <code>1.4.0</code>.
* Moved <code>EntityEventOptions</code> to <code>1.4.0</code>.
* Moved <code>EntityHitBlockAfterEvent</code> to <code>1.4.0</code>.
* Moved <code>EntityHitEntityAfterEvent</code> to <code>1.4.0</code>.
* Moved <code>EntityHurtAfterEvent</code> to <code>1.4.0</code>.
* Moved <code>EntityHealthChangedAfterEvent</code> to <code>1.4.0</code>.
* Moved <code>Dimension.getBlockFromRay</code> method to <code>1.4.0</code>.
* Moved <code>Dimension.getEntitiesFromRay</code> method to <code>1.4.0</code>.
* Moved <code>Entity.getBlockFromViewDirection</code> method to <code>1.4.0</code>.
* Moved <code>Entity.getEntitiesFromViewDirection</code> method to <code>1.4.0</code>.
* Moved <code>BlockRaycastHit</code> to <code>1.4.0</code>.
* Moved <code>BlockRaycastOptions</code> to <code>1.4.0</code>.
* Moved <code>EntityRaycastHit</code> to <code>1.4.0</code>.
* Moved <code>EntityRaycastOptions</code> to <code>1.4.0</code>.
* Moved <code>PressurePlatePushEvent</code> to <code>1.4.0</code>.
* Moved <code>PressurePlatePopEvent</code> to <code>1.4.0</code>.
* Moved <code>TripWireTripEvent</code> to <code>1.4.0</code>.
* Moved <code>TargetBlockHitEvent</code> to <code>1.4.0</code>.
** Made property <code>id</code> accessible even if entity is not valid.
** Made property <code>typeId</code> accessible even if entity is not valid.
** Changed item event <code>source</code> properties from type <code>Entity</code> to <code>Player</code>.

; [[JSON]]
* <code>minecraft:entity_placer</code> will now content error when invalid blocks are named in the <code>use_on</code> and <code>dispense_on</code> lists.
* Removed <code>MinecraftEntityTypes</code> from <code>@minecraft/server</code> and replaced with version from <code>@minecraft/vanilla-data</code>.
* Exposed <code>MoonPhase</code> and <code>World.getMoonPhase</code> to script.
* Removed the <code>minecraft:animates_in_toolbar</code> component.
* Removed the <code>minecraft:explodable</code> component.
* Extra damage hover text now appears on all component items that have an applied Sharpness enchantment.
* The <code>minecraft:shooter</code> component now supports the Quick Charge enchantment with <code>minecraft:enchantable</code> when <code>charge_on_draw</code> is true.
* Remove nonfunctional entity slot options from <code>minecraft:wearable</code> component, ie. saddle, entity armor, and chest.
* Custom items with <code>minecraft:wearable</code> component auto-equip when dropped from a dispenser, matching parity with vanilla armor items.
* Added <code>Scoreboard.addScore</code> and improved <code>Scoreboard.setScore</code> to return the updated score.

; [[Molang]]
* Renamed <code>block_property</code> and <code>has_block_property</code> to <code>block_state</code> and <code>has_block_state</code>.

== Fixes ==
{{fixes|project=MCPE|fixedin=1.20.20.21 Preview
|;old
|52452|Coral blocks take too long to break.
|68721|Scaffolding and sweet berry bushes cannot be broken instantly in Survival.
|101180|Hyphae mining speed is faster than stems.
|101644|Crimson and warped stems/hyphae lower blast resistance than other types of wood.
|114425|There is no {{cmd|gamerule playerssleepingpercentage}} in {{BE}}.
|114602|The mining speed of end stone bricks does not match the speed of end stone.
|130070|Stuck swimming down/falling issue.
|132408|Deepslate variants have a significantly lower blast resistance than stone variants.
|137449|End stone bricks has a lower blast resistance, compared to normal end stones.
|138995|Potion trajectory is broken.
|139242|Copper and cut copper blocks have a weaker blast resistance compared to {{JE}}.
|139246|Copper ore blast resistance is weaker compared to other ores.
|154428|Large enchants on table are blocked by overlayed items.
|160889|Warden does not detect falling items.
|161165|Sculk sensor does not send a signal to shrieker when player drops item.
|163050|Xbox: Error says I'm out of storage space, quits to menu with weird background.
|163497|Camels don't make sand sounds on red sand or concrete powder.
|166565|Crouching and then swimming makes player constantly descend.
|;From 1.20.0
|170033|Campfires are lit up instead of extinguished inside the trail ruins structure.
|171254|Character creator features do not match preview icon.
|171383|Bone meal not working underwater after 1.20.
|171461|Sleep fade black screen turns completely black.
|171560|Pink petals cannot be farmed using bone meal in a dispenser.
|;From 1.20.10
|171112|Recipe unlocking UI can appear in pause menu or world settings.
|171141|Translated toast recipe unlocked content is cut off and unreadable.
|otherissuescount=5}}
;Others
* Fixed an issue where players would disappear temporarily when joining a game for the first time.
* Fixed crash in blocks JSON loading on iOS and iPadOS.
* Fixed a crash that could occur when the game lost focus while entering a world.
* Fixed an issue where screen narration would read recipe book folder items as the first item in the folder.
* Fixed held map not being centered when playing on narrow aspect ratio screens.</onlyinclude>

== Notes ==
{{fnlist}}

== References ==
{{reflist}}

== Navigation ==
{{Navbox Bedrock Edition versions|1.2x}}

[[Category:Bedrock Edition 1.20.30 betas]]
[[Category:Betas released in 2023]]

[[de:Bedrock Edition beta 1.20.20.21]]
[[es:Bedrock Edition beta 1.20.20.21]]
[[pt:Edição Bedrock Preview 1.20.20.21]]
[[uk:Preview 1.20.20.21 (Bedrock Edition)]]
[[zh:基岩版1.20.20.21]]
