{"title":"Minecraft Snapshot 24w12a","version":"24w12a","type":"snapshot","image":{"title":"24w12a 540x540.jpg","url":"/v2/images/24w12a540x540.jpg"},"body":"<p>Here's snapshot 24w12a with new advancements and several tweaks.<p>Happy Mining!<h1>Experimental Features</h1><h2>Trial Chambers</h2><p>Trial Chambers now generate slightly more rarely and a bit more spaced out from each other<h2>Trial Chambers Explorer Map</h2><ul><li>Struggle no more to locate a Trial Chamber - level up your nearest Cartographer to Journeyman for the opportunity to trade for an Explorer Map pointing to a nearby Trial Chamber</ul><h2>Heavy Core</h2><ul><li>Can now be waterlogged<li>Survives lava flows<li>Most efficient tool is now the pickaxe<li>Adjusted destroy time and explosion resistance</ul><h2>Advancements</h2><ul><li>Added the following advancements:<ul><li><code>Minecraft: Trial(s) Edition</code> - Step foot in a Trial Chamber<li><code>Under Lock &#38 Key</code> - Unlock a Vault using a Trial Key<li><code>[Challenge - 40 exp] Blowback</code> - Kill a Breeze with a deflected Wind Charge<li><code>Who Needs Rockets?</code> - Use a Wind Charge to launch yourself upward at least 8 blocks<li><code>Crafters Crafting Crafters</code> - Be near a Crafter when it crafts a Crafter<li><code>Lighten Up</code> - Scrape a Copper Bulb with an Axe to make it brighter<li><code>Over-Overkill</code> - Deal 50 hearts of damage in a single hit using the Mace</ul></ul><h1>Technical Changes</h1><ul><li>The Data Pack version is now 36<li>The Resource Pack version is now 30<li><ul><li>Particle <code>entity_effect</code> takes color argument when spawned from command<li><code>/particle entity_effect &#60r> &#60g> &#60b> &#60a></code><li>4 float values ranging from 0.0 to 1.0 representing RGBA</ul></ul><h1>Data Pack Version 36</h1><ul><li>Added a <code>crafter_recipe_crafted</code> trigger which is triggered when a Crafter ejects a successfully crafted item into the world.<ul><li><code>&#60player></code> an entity predicate matching the player who is nearby<li><code>&#60recipe_id></code> is the ID of the recipe being crafted<li><code>&#60ingredients></code> is a list of item predicates matching the ingredients that form the recipe being crafted</ul><li>Added a <code>fall_after_explosion</code> trigger which is triggered when a player begins falling after being knocked upwards by an explosion or wind burst<ul><li><code>&#60player></code> an entity predicate matching the player who is falling<li><code>&#60start_position></code> a location predicate matching the position the player was at when they were hit by the explosion or burst<li><code>&#60distance></code> a distance predicate matching how far the player must be from <code>start_position</code> to cause the trigger to activate<li><code>&#60cause></code> an entity predicate matching the entity which caused the explosion or burst to happen</ul><li>Added <code>storage</code> loot number provider to access values from command storage<li>New Entity Type Tag: <code>sensitive_to_smite</code> - for Entity Types that take extra damage from the Smite Enchantment<li>Expanded item predicate syntax used in <code>execute if|unless items</code> and <code>clear</code> commands<li>Removed redundant custom data section (<code>{...}</code>) from item arguments (it's fully replaced by <code>[custom_data={...}]</code>)<ul><li>To make this transition easier, <code>custom_data</code> item sub-predicate has been changed to allow unquoted SNBT</ul><li>Added <code>wolf</code> entity sub-predicate for matching wolf variants<li><code>wolf</code>, <code>cat</code>, <code>frog</code> and <code>painting</code> entity sub-predicates now accept tags and plain lists instead of just single elements<li>Changed texture asset paths in <code>wolf_variant</code> to better match other formats<li>Command arguments that previously accepted namespaced ids of loot tables, modifiers and predicates can now also accept inline definitions<li>Added new item stack components<li>Added new loot functions</ul><h2><code>wolf_variant</code> definitions</h2><ul><li>Field <code>texture</code> has been renamed to <code>wild_texture</code><li><code>wild_texture</code>, <code>tame_texture</code> and <code>angry_texture</code> no longer require values to be prefixed with <code>textures/</code> and suffixed with <code>.png</code></ul><h2>Commands</h2><h3>Inline loot values</h3><p>Arguments in following commands that previously accepted namespaced ids of loot tables, modifiers and predicates can now also accept inline definitions:<ul><li><code>loot</code><li><code>item</code><li><code>execute if predicate</code> Values have same structure as matching JSON files, though they are encoded as SNBT. Example: <code>execute if predicate {condition:weather_check, raining:true}</code></ul><h2>Loot tables</h2><h3><code>storage</code> number provider</h3><ul><li>This number provider is able to access numeric values from command storage directly<li>If selected storage does not exist or tag selected by path is not numeric or does not exist, provider returns 0<li>Fields:<ul><li><code>storage</code> - namespaced id of command storage<li><code>path</code> - NBT path to field</ul></ul><h3><code>set_lore</code> function</h3><ul><li>The <code>replace</code> field has been removed<li>Now has <code>mode</code> like <code>set_fireworks</code> and <code>set_written_book_pages</code></ul><h3><code>set_written_book_pages</code> function</h3><ul><li><code>pages</code> is now a JSON Object rather than a string containing JSON</ul><h3><code>toggle_tooltips</code> loot function</h3><ul><li>This function can be used to modify item component tooltip visiblity<li>It works by setting fields like <code>show_in_tooltip</code> without changing other values<li>Format:<ul><li><code>toggles</code> - a map of supported item component type to boolean value</ul><li>Supported components: <code>trim</code>, <code>dyed_color</code>, <code>enchantments</code>, <code>stored_enchantments</code>, <code>unbreakable</code>, <code>can_break</code>, <code>can_place_on</code>, <code>attribute_modifiers</code><li>Example:<ul><li><code>{function:\"toggle_tooltips\",\"toggles\":{\"enchantments\":false}}</code> will hide enchantments tooltip</ul></ul><h3>Functions</h3><ul><li>Nested lists are no longer supported in function lists</ul><h2>Item predicate argument</h2><p>The item predicate syntax (used in <code>execute if|unless items</code> and <code>clear</code> commands) has been significantly expanded.<ul><li>The general syntax is: <code>&#60type> [comma-separated list of &#60test>]</code><li><code>&#60type></code> can be one of:<ul><li>item id<li>item tag id prefixed with <code>#</code><li><code>*</code> to match any item</ul><li><code>&#60test></code> can have one of 3 forms:<ul><li><code>&#60component_id>=&#60value></code> - match exact value of component (same as in previous format)<ul><li><code>&#60value></code> is a representation of component value in SNBT format (same as in <code>item give</code> argument)</ul><li><code>&#60component_id></code> - check if component exists<li><code>&#60predicate_id>~&#60value></code> - check item sub-predicate<ul><li><code>&#60value></code> is a representation of item sub-predicate in SNBT format (but otherwise same as one used for advancement and loot table JSON files)<li>Example: <code>*[damage~{durability:{min:3}}]</code> will match any stack with at least 3 uses left</ul></ul><li>The special name <code>minecraft:count</code> can be used for matching the stack size<ul><li><code>count=&#60positive int></code> will pass only when the stack size equals the given value<li><code>count~&#60int range></code> will pass when the stack size is in the specified range<ul><li>Example: <code>*[count~{max:2}]</code> will match any stack with count &#60= 2</ul><li><code>count</code> will always pass</ul><li>Any <code>&#60test></code> entry can be negated by prefixing with <code>!</code><ul><li>Example: <code>*[!count=1]</code> will match any stack that has count other than 1</ul><li><code>&#60test></code> elements can be also joined with <code>|</code> to check multiple alternatives<ul><li>Example: <code>*[!damage|damage=0]</code> will look for items without damage component or with <code>0</code> damage</ul><li>The syntax for custom data partial matching (<code>{}</code>) has been removed in favor of using <code>custom_data</code> predicates<ul><li>So <code>stick{a:2}</code> becomes <code>stick[custom_data~{a:2}]</code></ul></ul><h2>Predicates</h2><h3>Item sub-predicates</h3><ul><li>Predicate <code>minecraft:custom_data</code> now accepts both SNBT data written as a string (existing format) and unflattened tags<ul><li>That means that <code>*[custom_data~{a:1}]</code> and <code>*[custom_data~\"{a:1}\"]</code> are equivalent<li>Flattened string format has been kept since NBT type information can't be expressed in JSON</ul></ul><h3>Entity sub-predicates</h3><h4><code>wolf</code></h4><p>New <code>wolf</code> sub-predicate has been added to match wolf variants Fields:<ul><li><code>variant</code> - wolf variant to match (single entry, list of entries or tag)</ul><h4><code>cat</code>, <code>frog</code>, <code>painting</code></h4><ul><li>Field <code>variant</code> now accepts single entries, list of entries or tags</ul><h2>New Item Stack Components</h2><h3><code>minecraft:food</code></h3><ul><li>When present, this item will behave as if a food (can be eaten)<li>Format: object with fields<ul><li><code>nutrition</code>: non-negative integer, number of food points to restore when eaten<li><code>saturation_modifier</code>: float, amount of saturation to restore when eaten<li><code>is_meat</code>: boolean (default: <code>false</code>)<ul><li>If <code>true</code>, can be fed to Wolves</ul><li><code>can_always_eat</code>: boolean (default: <code>false</code>)<ul><li>If <code>true</code>, this food can be eaten even if not hungry</ul><li><code>eat_seconds</code>: float (default: <code>1.6</code>)<ul><li>The number of seconds that it takes to eat this food item</ul><li><code>effects</code>: list of effects to apply when eaten (default: <code>[]</code>)<ul><li><code>effect</code>: effect instance (same format as <code>custom_effects</code> in <code>minecraft:potion_contents</code> component)<li><code>probability</code>: float between 0 and 1, chance for the effect to be applied (default: <code>1</code>)</ul><li>e.g: <code>food={nutrition:4,saturation_modifier:0.1}</code></ul><li>On food items, has an implicit default value for that food type</ul><h3><code>minecraft:max_stack_size</code></h3><ul><li>Controls the maximum stacking size of this item<li>Format: integer between 1 and 99<ul><li>e.g. <code>max_stack_size=4</code></ul><li>Has an implicit default value according to the item type (usually <code>64</code>)</ul><h3><code>minecraft:max_damage</code></h3><ul><li>Controls the maximum amount of damage than an item can take<li>If not present, the item cannot be damaged<li>Format: positive integer<ul><li>e.g. <code>max_damage=123</code></ul><li>Has an implicit default value for damageable items</ul><h3><code>minecraft:fire_resistant</code></h3><ul><li>If present, this item will not burn in fire<li>Format: empty object<ul><li>e.g. <code>fire_resistant={}</code></ul><li>Has an implicit default value for fire-resistant items such as Netherite</ul><h3><code>minecraft:rarity</code></h3><ul><li>Controls the color of the item name<li>Format: enumerated value, one of:<ul><li><code>common</code> (default): white name, or aqua when enchanted<li><code>uncommon</code>: yellow name, or aqua when enchanted<li><code>rare</code>: aqua name, or light purple when enchanted<li><code>epic</code>: light purple name<li>e.g. <code>rarity=rare</code></ul><li>Special items such as Golden Apples have an implicit default value</ul><h3><code>minecraft:tool</code></h3><ul><li>Controls the behavior of the item as a tool<li>Format: object with fields<ul><li><code>rules</code>: list of rule entries<ul><li><code>blocks</code>: single block, list of blocks, or <code>#</code>-prefixed block tag to match<li><code>speed</code> (optional): float, overrides the mining speed if present and matched<li><code>correct_for_drops</code> (optional): boolean, overrides whether this tool is considered 'correct' if present and matched<ul><li><code>true</code> will cause the block to mine at its most efficient speed, and drop items if the targeted block requires that</ul></ul><li><code>default_mining_speed</code>: float, mining speed to use if no rules match and override mining speed (default: <code>1.0</code>)<li><code>damage_per_block</code>: non-negative int, amount of durability to remove each time a block is mined with this tool<li>e.g. <code>tool={rules:[{blocks:\"#mineable/pickaxe\",speed:4.0,correct_for_drops:true}]}</code></ul><li>Vanilla tool items will have an implicit default value based on their tier and tool type</ul><h3><code>hide_tooltip</code></h3><ul><li>If present, it will completely hide whole item tooltip (that includes item name)<li>Tooltip will be still visible and searchable in creative mode<li>Format: empty object</ul><h2>New Tags</h2><ul><li>Added <code>incorrect_for_wooden_tool</code>, <code>incorrect_for_gold_tool</code>, <code>incorrect_for_stone_tool</code>, <code>incorrect_for_iron_tool</code>, <code>incorrect_for_diamond_tool</code>, <code>incorrect_for_netherite_tool</code> block tags<ul><li>These tags combine the existing <code>needs_diamond_tool</code>, <code>needs_iron_tool</code>, and <code>needs_stone_tool</code> tags for each specific tool tier</ul><li>Added <code>meat</code> collection item tag<ul><li>This is not used by the game directly, but may be included by other tags</ul><li>Added <code>piglin_food</code>, <code>fox_food</code>, <code>cow_food</code>, <code>goat_food</code>, <code>sheep_food</code>, <code>wolf_food</code>, <code>cat_food</code>, <code>horse_food</code>, <code>horse_tempt_items</code>, <code>camel_food</code>, <code>armadillo_food</code>, <code>bee_food</code>, <code>chicken_food</code>, <code>frog_food</code>, <code>hoglin_food</code>, <code>llama_food</code>, <code>llama_tempt_items</code>, <code>ocelot_food</code>, <code>panda_food</code>, <code>pig_food</code>, <code>rabbit_food</code>, <code>strider_food</code>, <code>strider_tempt_items</code>, <code>turtle_food</code>, <code>parrot_food</code>, <code>parrot_poisonous_food</code> item tags to control which items can be fed to or tempt the corresponding mobs<li><code>axolotl_tempt_items</code> has been renamed to <code>axolotl_food</code></ul><h1>Resource Pack Version 30</h1><ul><li>Map decoration icons have been split from the former <code>map_icons.png</code> to use an atlas loaded from the <code>textures/map/decorations/</code> directory<li>The process of upgrading your pack can be assisted by using this automated <a href=https://github.com/Mojang/slicer/releases/tag/v1.1.4 rel=\"noopener noreferrer\"target=_blank>Slicer</a> tool<li>Added <code>trial_chambers</code> map decoration icon</ul><h1>Fixed bugs in 24w12a</h1><ul><li><a href=https://bugs.mojang.com/browse/MC-266467 rel=\"noopener noreferrer\"target=_blank>MC-266467</a> Wind charges stutter when flying through the air<li><a href=https://bugs.mojang.com/browse/MC-267747 rel=\"noopener noreferrer\"target=_blank>MC-267747</a> Click and hover events don't work when viewing chat while F1 is enabled<li><a href=https://bugs.mojang.com/browse/MC-267933 rel=\"noopener noreferrer\"target=_blank>MC-267933</a> Silk Touch and Fortune enchanted books cannot be found in Creative inventory<li><a href=https://bugs.mojang.com/browse/MC-267943 rel=\"noopener noreferrer\"target=_blank>MC-267943</a> Anvil exclusive enchantments can be obtained from enchanting tables<li><a href=https://bugs.mojang.com/browse/MC-268068 rel=\"noopener noreferrer\"target=_blank>MC-268068</a> Pieces of text in the \"Reset World\" realm menu can intersect when using some resolutions<li><a href=https://bugs.mojang.com/browse/MC-268171 rel=\"noopener noreferrer\"target=_blank>MC-268171</a> Some GUI textures can no longer be transparent in Minecraft<li><a href=https://bugs.mojang.com/browse/MC-268311 rel=\"noopener noreferrer\"target=_blank>MC-268311</a> Bane of arthropods enchantment uses #arthropods tag instead of #sensitive_to_bane_of_arthropods<li><a href=https://bugs.mojang.com/browse/MC-268312 rel=\"noopener noreferrer\"target=_blank>MC-268312</a> Impaling enchantment uses #aquatic tag instead of #sensitive_to_impaling<li><a href=https://bugs.mojang.com/browse/MC-268343 rel=\"noopener noreferrer\"target=_blank>MC-268343</a> Breeze charge has laggy unnatural flightpaths when punched<li><a href=https://bugs.mojang.com/browse/MC-268510 rel=\"noopener noreferrer\"target=_blank>MC-268510</a> Items with \"Unbreakable:1b\" NBT can no longer have the unbreaking enchant applied<li><a href=https://bugs.mojang.com/browse/MC-268556 rel=\"noopener noreferrer\"target=_blank>MC-268556</a> Wind charges go through non-full blocks instead of colliding<li><a href=https://bugs.mojang.com/browse/MC-269083 rel=\"noopener noreferrer\"target=_blank>MC-269083</a> Effect background texture in inventory renders translucent pixels as opaque<li><a href=https://bugs.mojang.com/browse/MC-269085 rel=\"noopener noreferrer\"target=_blank>MC-269085</a> Experience bar and jump bar render translucent pixels as opaque<li><a href=https://bugs.mojang.com/browse/MC-269169 rel=\"noopener noreferrer\"target=_blank>MC-269169</a> Wolf variant not present in advancement criteria<li><a href=https://bugs.mojang.com/browse/MC-269268 rel=\"noopener noreferrer\"target=_blank>MC-269268</a> components don't work on the smithing table<li><a href=https://bugs.mojang.com/browse/MC-269280 rel=\"noopener noreferrer\"target=_blank>MC-269280</a> The right side of incompatible resource or data packs isn't rendered correctly when the scroll bar is present<li><a href=https://bugs.mojang.com/browse/MC-269299 rel=\"noopener noreferrer\"target=_blank>MC-269299</a> The red text within the \"Experiments\" menu cannot be narrated or selected<li><a href=https://bugs.mojang.com/browse/MC-269336 rel=\"noopener noreferrer\"target=_blank>MC-269336</a> Crash with set_enchantments item modifier above level 255<li><a href=https://bugs.mojang.com/browse/MC-269354 rel=\"noopener noreferrer\"target=_blank>MC-269354</a> The subtitle for the \"minecraft:item.mace.smash_air\" sound event displays as a raw translation string<li><a href=https://bugs.mojang.com/browse/MC-269355 rel=\"noopener noreferrer\"target=_blank>MC-269355</a> Heavy Core has no required tool<li><a href=https://bugs.mojang.com/browse/MC-269356 rel=\"noopener noreferrer\"target=_blank>MC-269356</a> Heavy Core cannot be oriented despite its blockstates suggesting otherwise<li><a href=https://bugs.mojang.com/browse/MC-269361 rel=\"noopener noreferrer\"target=_blank>MC-269361</a> Weird Wind Charge behavior when deflecting<li><a href=https://bugs.mojang.com/browse/MC-269373 rel=\"noopener noreferrer\"target=_blank>MC-269373</a> /datapack disable doesn't work<li><a href=https://bugs.mojang.com/browse/MC-269393 rel=\"noopener noreferrer\"target=_blank>MC-269393</a> Game crashes when wind charge hits entity<li><a href=https://bugs.mojang.com/browse/MC-269401 rel=\"noopener noreferrer\"target=_blank>MC-269401</a> The minecraft:set_written_book_pages item modifier is inconsistent with minecraft:set_name and minecraft:set_lore<li><a href=https://bugs.mojang.com/browse/MC-269409 rel=\"noopener noreferrer\"target=_blank>MC-269409</a> Unable to execute /particle entity_effect<li><a href=https://bugs.mojang.com/browse/MC-269419 rel=\"noopener noreferrer\"target=_blank>MC-269419</a> Heavy Core cannot be waterlogged<li><a href=https://bugs.mojang.com/browse/MC-269422 rel=\"noopener noreferrer\"target=_blank>MC-269422</a> Carpet on powder snow no longer negates fall damage<li><a href=https://bugs.mojang.com/browse/MC-269452 rel=\"noopener noreferrer\"target=_blank>MC-269452</a> Crash when using item modifier with replace_section mode and very large size field<li><a href=https://bugs.mojang.com/browse/MC-269457 rel=\"noopener noreferrer\"target=_blank>MC-269457</a> Crash with set_lore item modifier setting more than 256 lores<li><a href=https://bugs.mojang.com/browse/MC-269513 rel=\"noopener noreferrer\"target=_blank>MC-269513</a> Maces can break cobwebs</ul>","id":"cb09d1401b829475e3478b7b59ace620a4e2b940feb1a5dade4625fb13bbec93","date":"2024-03-20T14:38:37.000Z","needsTranslation":null}