{"title":"Minecraft Snapshot 24w21a","version":"24w21a","type":"snapshot","image":{"title":"24w21a_540x540.jpg","url":"/v2/images/24w21a540x540.jpg"},"body":"<p>This week we're bringing a Snapshot you can vibe out to! This time around we're bringing data-driven jukeboxes, a new gamerule, and a bunch of fixes.<p>Happy vibing!<h1>Changes</h1><ul><li>It seems we cooked a bit too hard with the new Piston sounds last week, which is why we're reverting back to the old sounds again<li>Lowered volume of original sounds to address initial feedback of Pistons being too loud<li>Pause menu now can include a list of links provided by server<li>Improvements to the disconnection screen<li>Any member of a Realm can now upgrade a world<li>In the Realms main screen, all online players of a Realm are displayed<ul><li>When hovered, a tooltip is shown with each player's head and name</ul></ul><h2>Vault</h2><ul><li>Added sound effect to help players understand they've already looted a vault</ul><h2>Trial Chambers</h2><ul><li>Trial Chambers are less likely to generate in the Deep Dark</ul><h2>Animal Panic</h2><ul><li>Animals now panic based on the damage caused by predefined Damage Source Types<li>The panic lasts for 2 seconds after the damage is dealt. The following damage type tags are used by vanilla animals:<ul><li><code>panic_environmental_causes</code>: Used by Wolves, Polar Bears (adults) and Pandas<li><code>panic_causes</code>: Used by all other animals and baby Polar Bears</ul></ul><h2>Server links</h2><ul><li>Servers can now provide a list of links to clients<li>If client has received any links, a new button called \"Server Links...\" will show up in pause game screen<ul><li>To make space for that button, \"Report Bugs\" and \"Give Feedback\" buttons might be moved into a sub-screen if necessary</ul></ul><h2>Disconnection screen improvements</h2><ul><li>In some cases client will now store detailed information about disconnection (similar to crash reports)<li>When that happens, new \"Open Disconnection Report Directory\" button will be added to the disconnection screen<li>When server provides link for bug reporting, it will be also be added as a button to the disconnection screen</ul><h1>Technical Changes</h1><ul><li>Resource Pack version is now 34<li>Data Pack version is now 45<li>Server can now provide list of links to client<li>Servers can add custom details to crash and disconnection reports</ul><h2>Gamerules</h2><ul><li>Added new <code>entitiesWithPassengersCanUsePortals</code> gamerule<ul><li>When <code>true</code>, entities with passengers can use Nether Portals, End Portals and End Gateways<li>Defaults to <code>false</code></ul></ul><h2>Server links</h2><ul><li>New clientbound packet <code>server_links</code> is available in <code>configuration</code> and <code>game</code> protocols<li>On receival, client will make links available from pause menu<li>Link labels can be built-in or custom (i.e. any text)<li>Some built-ins also have special fuctionality:<ul><li><code>report_bug</code>:<ul><li>link will be displayed on disconnection screen, if disconnection was caused by packet handling error<li>link will be included as a comment in disconnection report</ul></ul><li>Added <code>bug-report-link</code> to <code>server.properties</code> to allow vanilla server to configure <code>report_bug</code> links<ul><li>If this field is non-empty, server will send that link to clients<li>This field should contain well-formed URL</ul></ul><h2>Custom server crash report details</h2><ul><li>New clientbound packet <code>custom_report_details</code> is available in <code>configuration</code> and <code>game</code> protocols<li>This packet contains a list of key-value text entries<li>If received, contents of this packet will be added in a separate section to any crash or disconnection report generated during connection to this server</ul><h1>Data Pack Version 45</h1><ul><li>Jukebox songs are now data-driven<li>Added new command syntax</ul><h2>Jukebox Songs</h2><ul><li>Added a jukebox song registry which is loaded from data packs<li>Path to jukebox song definition is <code>data/&#60namespace>/jukebox_song/&#60id>.json</code><li>Fields in definition:<ul><li><code>sound_event</code> - sound event that is streamed when played by a Jukebox<li><code>description</code> - the name of the song that will be displayed in the hover tooltip represented as a Text Component<li><code>length_in_seconds</code> - length of the song in seconds as a positive float<li><code>comparator_output</code> - the redstone signal output by a comparator when played in a Jukebox, between 0 and 15</ul><li>Added <code>minecraft:jukebox_playable</code> item stack component</ul><h3><code>jukebox_playable</code> item component</h3><ul><li>If set, the item can be inserted into Jukeboxes to play a song<li>Format: object with fields<ul><li><code>song</code>: jukebox song id<ul><li>The song that will be played by the Jukebox when this item stack is inserted</ul><li><code>show_in_tooltip</code>: boolean (default: true)<ul><li>If false, the name of the song will not be shown in the tooltip<li>This was formerly controlled by the <code>hide_additional_tooltip</code> component on Music Discs</ul><li>e.g. <code>jukebox_playable={song:'minecraft:precipice'}</code>, <code>jukebox_playable={song:'minecraft:precipice', show_in_tooltip:false}</code></ul></ul><h2>Attributes</h2><ul><li>Attribute modifiers no longer have a UUID and name combination<li>Instead, attribute modifiers are now uniquely identified by a namespaced ID, similar to other resources<li>The ID of a modifier uniquely identifies it in the set of modifiers for a single attribute<ul><li>Using the same ID for different modifiers is allowed as long as the modifiers are for different attributes</ul><li>Existing built-in modifiers will be upgraded to new IDs<li>Existing custom modifiers will be upgraded to the GUID as an ID in the <code>minecraft</code> namespace</ul><h3><code>attribute</code> command</h3><ul><li>The <code>uuid</code> and <code>name</code> arguments have been replaced with a singular <code>id</code> argument</ul><h3>Item Stack Attribute Modifiers</h3><ul><li>The <code>uuid</code> and <code>name</code> fields have been removed.<li>Attribute Modifiers now have an <code>id</code> (namespaced ID) field<ul><li>This is a unique identifier per attribute for the modifier</ul></ul><h3>Entity Attributes</h3><ul><li>Attributes are now stored as <code>attributes</code><li>Attribute format:<ul><li><code>id</code>, renamed from <code>Name</code><li><code>base</code>, renamed from <code>Base</code><li><code>modifiers</code>, renamed from <code>Modifiers</code><ul><li>Now stores modifiers in the same format as modifiers in <code>attribute_modifiers</code> item stack components:<ul><li><code>id</code>, replaces <code>UUID</code> and <code>Name</code><li><code>amount</code>, renamed from <code>Amount</code><li><code>operation</code>, renamed from <code>Operation</code>, now a named constant instead of an int:<ul><li><code>add_value</code> - previously <code>0</code><li><code>add_multiplied_base</code> - previously <code>1</code><li><code>add_multiplied_total</code> - previously <code>2</code></ul></ul></ul></ul></ul><h2>Enchantments</h2><h3>Attribute Effects</h3><p>Fields:<ul><li><code>name</code> &#38 <code>uuid</code> have been removed, replaced by <code>id</code><li><code>id</code>: The namespaced ID of the Attribute Modifier to add<ul><li>This will be postfixed with the slot name when the enchanted item is equipped in a slot<li>Must be unique to avoid different Enchantments (or other systems) interfering with each others</ul></ul><h3>Entity Effect Types</h3><h4><code>damage_item</code></h4><p>The damage is not applied to items held by players in creative mode.<h4>Hit Block Parameters</h4><ul><li>Entities: <code>this</code><li>Enchantment Level<li>Origin<li>Block State</ul><h3>Effect Components</h3><ul><li><code>minecraft:hit_block</code>:<ul><li>Condition Context: changed to take a Hit Block Parameter - <code>this</code> is the entity hitting the Block</ul></ul><h2>Tags</h2><h3>Directory renames</h3><ul><li>Some registry types that used legacy datapack directory names (based on plural name of element) have been renamed to match registry name<li>Affected directories:<ul><li><code>structures</code> -> <code>structure</code><li><code>advancements</code> -> <code>advancement</code><li><code>recipes</code> -> <code>recipe</code><li><code>loot_tables</code> -> <code>loot_table</code><li><code>predicates</code> -> <code>predicate</code><li><code>item_modifiers</code> -> <code>item_modifier</code><li><code>functions</code> -> <code>function</code><li><code>tags/functions</code> -> <code>tags/function</code></ul></ul><h3>Item Tags</h3><ul><li>Removed <code>music_discs</code> item tag</ul><h3>Block Tags</h3><ul><li><code>air</code>: All blocks that resemble air</ul><h3>Damage Type Tags</h3><ul><li>Removed <code>breeze_immune_to</code> damage type tag<li>Added <code>panic_environmental_causes</code>: Damage types that cause panic in aggressive animals that can panic, i.e. mobs that retaliate when attacked<li>Added <code>panic_causes</code>: Damage types that cause panic in passive animals, i.e. mobs that run away when attacked</ul><h2>Predicates</h2><h3>Jukebox Playable Predicate</h3><p>New item sub-predicate available as <code>jukebox_playable</code>.<ul><li>Matcher for <code>jukebox_playable</code> component (like Music Discs)<li>Fields:<ul><li><code>song</code> - optional id, list of ids or tag for jukebox song to be matched</ul></ul><h3>Player Predicate</h3><ul><li>The <code>gamemode</code> field has been changed to accept a list of gamemodes</ul><h2>Commands</h2><ul><li>Added <code>@n</code> entity selector, selecting the nearest entity<ul><li>This functions as <code>@e[sort=nearest,limit=1]</code><li>Additional requirements may still be provided; for example: <code>@n[type=pig]</code> will select the closest Pig</ul></ul><h1>Resource Pack Version 34</h1><ul><li>Added the <code>block.vault.reject_rewarded_player</code> sound event<li>Changes to Shaders</ul><h2>Shaders</h2><ul><li>The <code>blend</code> block in core shader definitions has been removed, as it was not used<li>The <code>position_color_tex</code> shader has been removed, replaced with the pre-existing <code>position_tex_color</code><li>The <code>glint_direct</code> shader has been removed, replaced with the pre-existing <code>glint</code> shader<li>The <code>armor_glint</code> shader has been removed, as it was unused</ul><h1>Fixed bugs in 24w21a</h1><ul><li><a href=https://bugs.mojang.com/browse/MC-67 rel=\"noopener noreferrer\"target=_blank>MC-67</a> Entities with passengers cannot travel through portals<li><a href=https://bugs.mojang.com/browse/MC-31819 rel=\"noopener noreferrer\"target=_blank>MC-31819</a> Hunger saturation depletes on peaceful difficulty<li><a href=https://bugs.mojang.com/browse/MC-116279 rel=\"noopener noreferrer\"target=_blank>MC-116279</a> Non-player entities going through Nether portal do not generate portal in Nether if none exists<li><a href=https://bugs.mojang.com/browse/MC-151648 rel=\"noopener noreferrer\"target=_blank>MC-151648</a> Non-player entities cannot travel through unlinked nether portals<li><a href=https://bugs.mojang.com/browse/MC-170103 rel=\"noopener noreferrer\"target=_blank>MC-170103</a> Untamed wolves only beg for food while being angry and jumping<li><a href=https://bugs.mojang.com/browse/MC-260346 rel=\"noopener noreferrer\"target=_blank>MC-260346</a> Custom music discs cut off when vanilla disc would normally end<li><a href=https://bugs.mojang.com/browse/MC-266290 rel=\"noopener noreferrer\"target=_blank>MC-266290</a> Double doors do not automatically form between waxed and unwaxed copper doors, even of the same variant<li><a href=https://bugs.mojang.com/browse/MC-266586 rel=\"noopener noreferrer\"target=_blank>MC-266586</a> Trial chambers can spawn directly inside the deep dark biome<li><a href=https://bugs.mojang.com/browse/MC-266626 rel=\"noopener noreferrer\"target=_blank>MC-266626</a> Breeze doesn't stop attacking the player when it enters on the same team<li><a href=https://bugs.mojang.com/browse/MC-267967 rel=\"noopener noreferrer\"target=_blank>MC-267967</a> Breezes ignore the deflects_projectiles entity type tag<li><a href=https://bugs.mojang.com/browse/MC-268438 rel=\"noopener noreferrer\"target=_blank>MC-268438</a> Baby armadillos can still eat while rolled up<li><a href=https://bugs.mojang.com/browse/MC-269034 rel=\"noopener noreferrer\"target=_blank>MC-269034</a> Wolves no longer teleport while trying to pathfind out of Lava<li><a href=https://bugs.mojang.com/browse/MC-269351 rel=\"noopener noreferrer\"target=_blank>MC-269351</a> The Bolt Armor Trim cannot be duplicated with Waxed Copper Block<li><a href=https://bugs.mojang.com/browse/MC-269370 rel=\"noopener noreferrer\"target=_blank>MC-269370</a> Sharp lag spike caused by incorrect upper limit on particles created by mace smash attack<li><a href=https://bugs.mojang.com/browse/MC-269460 rel=\"noopener noreferrer\"target=_blank>MC-269460</a> Thorns enchantment doesn't work when entities are hit by wind charges<li><a href=https://bugs.mojang.com/browse/MC-269964 rel=\"noopener noreferrer\"target=_blank>MC-269964</a> Ominous item spawners are missing an NBT load for spawn_item_after_ticks<li><a href=https://bugs.mojang.com/browse/MC-269988 rel=\"noopener noreferrer\"target=_blank>MC-269988</a> New potion effects don't apply their respective behaviors when creeper explodes<li><a href=https://bugs.mojang.com/browse/MC-270024 rel=\"noopener noreferrer\"target=_blank>MC-270024</a> When drinking ominous bottles, bad omen of higher levels can be overriden by lower amplifiers<li><a href=https://bugs.mojang.com/browse/MC-270377 rel=\"noopener noreferrer\"target=_blank>MC-270377</a> Wind charges can be hit and redirected the moment they are thrown<li><a href=https://bugs.mojang.com/browse/MC-270573 rel=\"noopener noreferrer\"target=_blank>MC-270573</a> Mounted entities are immune to wind charge damage<li><a href=https://bugs.mojang.com/browse/MC-270808 rel=\"noopener noreferrer\"target=_blank>MC-270808</a> Any item in the armor.body slot protects wolves from taking damage<li><a href=https://bugs.mojang.com/browse/MC-271458 rel=\"noopener noreferrer\"target=_blank>MC-271458</a> Channeling tridents no longer summon lightning bolt every time hitting lightning rod under thunderstorm<li><a href=https://bugs.mojang.com/browse/MC-271573 rel=\"noopener noreferrer\"target=_blank>MC-271573</a> Attribute Enchantments Don't Behave Properly on Armor<li><a href=https://bugs.mojang.com/browse/MC-271634 rel=\"noopener noreferrer\"target=_blank>MC-271634</a> Custom enchantments don't appear in the creative menu<li><a href=https://bugs.mojang.com/browse/MC-271718 rel=\"noopener noreferrer\"target=_blank>MC-271718</a> Crash when randomized_int_state_provider is applied to blocks lacking the property<li><a href=https://bugs.mojang.com/browse/MC-271753 rel=\"noopener noreferrer\"target=_blank>MC-271753</a> Crash due to overflow inside cost calculation in by_cost_with_difficulty<li><a href=https://bugs.mojang.com/browse/MC-271856 rel=\"noopener noreferrer\"target=_blank>MC-271856</a> Crossbows enchanted with Quick Charge do not benefit from its effects when used in the offhand<li><a href=https://bugs.mojang.com/browse/MC-271868 rel=\"noopener noreferrer\"target=_blank>MC-271868</a> Frost walker replaces flowing water now<li><a href=https://bugs.mojang.com/browse/MC-271901 rel=\"noopener noreferrer\"target=_blank>MC-271901</a> Entity effect \"play_sound\" Field \"pitch\" value upper limit is 1.0 instead of 2.0<li><a href=https://bugs.mojang.com/browse/MC-271911 rel=\"noopener noreferrer\"target=_blank>MC-271911</a> Frost walker no longer works with void or cave air<li><a href=https://bugs.mojang.com/browse/MC-271914 rel=\"noopener noreferrer\"target=_blank>MC-271914</a> Soul speed enchantment doesn't emit particles when the entity is controlled by a player<li><a href=https://bugs.mojang.com/browse/MC-272039 rel=\"noopener noreferrer\"target=_blank>MC-272039</a> Soul Speed uses durability in creative mode<li><a href=https://bugs.mojang.com/browse/MC-272042 rel=\"noopener noreferrer\"target=_blank>MC-272042</a> If players have max health over 20 and die, when they respawn they will have 20 health instead of their max health<li><a href=https://bugs.mojang.com/browse/MC-272043 rel=\"noopener noreferrer\"target=_blank>MC-272043</a> The game crashes when entities die while having the oozing effect<li><a href=https://bugs.mojang.com/browse/MC-272075 rel=\"noopener noreferrer\"target=_blank>MC-272075</a> Attempting to step up while controlling entity and moving fast often glitches<li><a href=https://bugs.mojang.com/browse/MC-272084 rel=\"noopener noreferrer\"target=_blank>MC-272084</a> Creepers with potion effects no longer create area effect clouds upon exploding<li><a href=https://bugs.mojang.com/browse/MC-272182 rel=\"noopener noreferrer\"target=_blank>MC-272182</a> Knowledge Books no longer function properly with a stack size of 1 in survival/adventure mode</ul>","id":"fef32a2b844c49b70cc1a8351cdfe58accd736747e4ce172ecb79c14f5757954","date":"2024-05-22T14:18:26.000Z","needsTranslation":null}