Java Edition 23w31a

23w31a is the first snapshot for Java Edition 1.20.2, released on August 2, 2023, which adds Villager Trade Rebalance experimental toggle and fixes bugs.

Command Format

 * Syntax:  or
 * Syntax:  or

General

 * Experiments
 * Added "Villager Trade Rebalance" experimental toggle.
 * Attributes
 * Added the  attribute.
 * Acts similar to, but instead of being the upper bound for  , it is the upper bound for.


 * Tag
 * Added the  block tag.
 * Contains every concrete powder.
 * Added the  block tag.
 * Contains.
 * Added the  tag.
 * Contains entities that don't override their vehicles movement control.
 * Added the  tag.
 * Causes knockback to not be caused by the damage itself.
 * Used for damage that is caused by events, such as explosions, which apply knockback separately.

Blocks

 * Barrier
 * No longer produce fall particles when entities fall on them
 * Now won't create particles when player brushes them
 * Can now be waterlogged


 * Chorus Flower
 * No longer provides support for hanging or standing blocks


 * Decorated Pots
 * Now have creative mode tooltips


 * Diamond Ore
 * Now generated more frequently in the Deepslate layers of the Overworld


 * Smithing Table
 * Now in the custom recipes, the upgrade material can be sent to the GUI instantly with the shift+left click shortcut


 * Sculk Sensor and Calibrated Sculk Sensor
 * Can now detect following events
 * Turtles clearing away sand
 * Camels standing up or sitting down
 * Camels dashing
 * Witch drinking a potion
 * Added the  game event.
 * It replaces  and

Mobs

 * Frogs, Camels, Goats and Sniffers
 * Now panic when got damage during attached to leads


 * Villagers
 * The discount for curing a villager now isn't multiplied if the villager is reinfected and cured again

Command Format

 * Can now replace items in jukeboxes
 * Can now remove items in chiseled bookshelves
 * Can now remove items in chiseled bookshelves


 * Added  subcommand
 * Added  subcommand

Gameplay

 * Advancements
 * The "Smithing with Style" advancement now grant experience upon completion

General

 * Data pack
 * The version is now.


 * Resource pack
 * The version is now.
 * New features have been added to datapacks and resource packs to allow creation of packs that are compatible with multiple versions of game.


 * Pack Metadata
 * Pack metadata now includes an optional field supported_formats which describes a range for pack formats that this pack supports
 * Examples:,  ,
 * field is still required and its format remains unchanged, to allow older game versions to read pack data
 * If  is present, it must contain the value declared in
 * Since this new information is ignored by older versions of the game, they will always see a "normal", single-version pack, without any extended compatibility.

Experimental
These changes are accessible by enabling the "Villager Trade Rebalance" experimental toggle.

Changes

 * Villager
 * Librarians from different biomes now sell different Enchanted Books
 * Each village biome has one special enchantment that is only available from Master Librarians with full XP and players must visit all seven village biomes to get the full set of villager enchantments
 * Player must build two secret village biomes villages do not generate to access their trades!
 * Some enchantments have been removed from village trading and must be found in other ways


 * Wandering Trader
 * Wandering Traders now have lower prices and have a higher amount of each item in stock
 * Wandering Traders now sell Logs
 * Wandering Traders can now buy many items, instead of only selling