Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Java Edition 24w12a

From SAS Gaming Wiki

Template:Infobox version

24w12a is the thirteenth Minecraft:snapshot for Minecraft:Java Edition 1.20.5, released on March 20, 2024,<ref>Template:Snap</ref> which fixes bugs, changes the Minecraft:heavy core, adds 7 new Minecraft:advancements and adds the Minecraft:trial chambers map.

Additions

Command format

Minecraft:Item stack components

  • Added new item stack components.
  • Added food item stack component.
    • When present, this item behaves as if a food (can be eaten)
    • Format: object with fields:
      • nutrition: non-negative integer, number of food points to restore when eaten.
      • saturation_modifier: float, amount of saturation to restore when eaten.
      • can_always_eat: boolean (default: false)
        • If true, this food can be eaten even if not hungry.
      • eat_seconds: float (default: 1.6)
        • The number of seconds that it takes to eat this food item.
      • effects: list of effects to apply when eaten (default: [])
        • effect: effect instance (same format as custom_effects in minecraft:potion_contents component)
        • probability: float between 0 and 1, chance for the effect to be applied (default: 1)
      • Example: food={nutrition:4,saturation_modifier:0.1}
    • On food items, has an implicit default value for that food type.
  • Added max_stack_size.
    • Controls the maximum stacking size of this item.
    • Format: integer between 1 and 99.
      • Example: max_stack_size=4
    • Has an implicit default value according to the item type (usually 64 but can also be 16 and 1)
  • Added max_damage.
    • Controls the maximum amount of damage than an item can take.
    • If not present, the item cannot be damaged.
    • Format: positive integer.
      • Example: max_damage=123
    • Has an implicit default value for damageable items.
  • Added fire_resistant.
    • If present, this item doesn't burn in fire.
    • Format: empty object.
      • Example: fire_resistant={}
    • Has an implicit default value for fire-resistant items, such as netherite tools.
  • Added rarity.
    • Controls the color of the item name.
    • Format: enumerated value, one of:
      • common (default): white name, or aqua when enchanted.
      • uncommon: yellow name, or aqua when enchanted.
      • rare: aqua name, or light purple when enchanted.
      • epic: light purple name.
      • Example: rarity=rare.
    • Special items such as Minecraft:golden apples have an implicit default value.
  • Added tool.
    • Controls the behavior of the item as a tool.
    • Format: object with fields.
      • rules: list of rule entries.
        • blocks: single block, list of blocks, or #-prefixed block tag to match.
        • speed (optional): float, overrides the mining speed if present and matched.
        • correct_for_drops (optional): boolean, overrides whether this tool is considered 'correct' if present and matched.
          • true causes the block to mine at its most efficient speed, and drop items if the targeted block requires that.
      • default_mining_speed: float, mining speed to use if no rules match and override mining speed (default: 1.0).
      • damage_per_block: non-negative int, amount of durability to remove each time a block is mined with this tool.
      • Example: tool={rules:[{blocks:"#mineable/pickaxe",speed:4.0,correct_for_drops:true}]}
    • Vanilla tool items have an implicit default value based on their tier and tool type.
  • Added hide_tooltip.
    • If present, it completely hides whole item tooltip (that includes item name).
    • Tooltip is still visible and searchable in Creative mode.
    • Format: empty object.
      • Example: hide_tooltip={}

Minecraft:Loot functions

  • Added toggle_tooltips loot function.
    • This function can be used to modify item component tooltip visiblity.
    • It works by setting fields like show_in_tooltip without changing other values.
    • Format: toggles - a map of supported item component type to boolean value.
    • Supported components: trim, dyed_color, enchantments, stored_enchantments, unbreakable, can_break, can_place_on, attribute_modifiers.
    • Example: {function:"toggle_tooltips","toggles":{"enchantments":false}} hides enchantments tooltip.

Minecraft:Loot tables

  • Added storage loot number provider to access values from command storage.
    • This number provider is able to access numeric values from command storage directly.
    • If selected storage does not exist or tag selected by path is not numeric or does not exist, provider returns 0.
    • Fields:
      • storage: namespaced id of command storage.
      • path: NBT path to field.

Gameplay

Minecraft:Advancements

  • Added a crafter_recipe_crafted trigger which is triggered when a Minecraft:crafter ejects a successfully crafted item into the world.
    • <player> an entity predicate matching the player who is nearby.
    • <recipe_id> is the ID of the recipe being crafted.
    • <ingredients> is a list of item predicates matching the ingredients that form the recipe being crafted.
  • Added a fall_after_explosion trigger which is triggered when a player begins falling after being knocked upwards by an explosion or wind burst.
    • <player> an entity predicate matching the player who is falling.
    • <start_position> a location predicate matching the position the player was at when they were hit by the explosion or burst.
    • <distance> a distance predicate matching how far the player must be from start_position to cause the trigger to activate.
    • <cause> an entity predicate matching the entity which caused the explosion or burst to happen.

General

Minecraft:Tags

  • Added incorrect_for_wooden_tool, incorrect_for_gold_tool, incorrect_for_stone_tool, incorrect_for_iron_tool, incorrect_for_diamond_tool, incorrect_for_netherite_tool block tags.
    • These tags combine the existing needs_diamond_tool, needs_iron_tool, and needs_stone_tool tags for each specific tool tier.
  • Added meat collection item tag.
    • Contains Template:Cd
    • This is not used by the game directly, but may be included by other tags.
  • Added Template:Cd item tags to control which items can be fed to or tempt the corresponding mobs.
  • Added sensitive_to_smite entity type tag.
    • For entity types that take extra damage from the Minecraft:Smite enchantment.

Changes

Command format

General

  • Command arguments that previously accepted namespaced ids of loot tables, modifiers and predicates can now also accept inline definitions:
    • loot
    • item
    • execute if predicate
    • Values have same structure as matching JSON files, though they are encoded as SNBT. Example: execute if predicate {condition:weather_check, raining:true}

Minecraft:Entity sub-predicates

  • wolf
    • New wolf sub-predicate has been added to match wolf variantsFields: variant - wolf variant to match (single entry, list of entries or tag)
  • cat, frog, painting
    • Field variant now accepts single entries, list of entries or tags.
  • wolf, cat, frog and painting entity sub-predicates now accept tags and plain lists instead of just single elements.

Minecraft:Loot functions

  • set_lore function:
    • The replace field has been removed.
    • Now has mode like set_fireworks and set_written_book_pages.
  • set_written_book_pages function:
    • pages is now a JSON object rather than a string containing JSON.
  • Nested lists are no longer supported in function lists.

Minecraft:Item predicate argument

  • The item predicate syntax (used in execute if|unless items and clear commands) has been significantly expanded.
  • The general syntax is: <type> [comma-separated list of <test>]
  • <type> can be one of:
    • item id
    • item tag id prefixed with #
    • * to match any item.
  • <test> can have one of 3 forms:
    • <component_id>=<value> - match exact value of component (same as in previous format)
      • <value> is a representation of component value in SNBT format (same as in item give argument)
    • <component_id> - check if component exists.
    • <predicate_id>~<value> - check item sub-predicate.
      • <value> is a representation of item sub-predicate in SNBT format (but otherwise same as one used for advancement and loot table JSON files)
      • Example: *[damage~{durability:{min:3}}] matches any stack with at least 3 uses left.
  • The special name minecraft:count can be used for matching the stack size.
    • count=<positive int> passes only when the stack size equals the given value.
    • count~<int range> passes when the stack size is in the specified range.
      • Example: *[count~{max:2}] matches any stack with count <= 2.
    • count always passes.
  • Any <test> entry can be negated by prefixing with !
    • Example: *[!count=1] matches any stack that has count other than 1.
  • <test> elements can be also joined with | to check multiple alternatives.
    • Example: *[!damage|damage=0] looks for items without damage component or with 0 damage.
  • Removed redundant custom data section ({...}) from item arguments (it's fully replaced by [custom_data={...}])
    • To make this transition easier, custom_data item sub-predicate has been changed to allow unquoted SNBT.
  • The syntax for custom data partial matching ({}) has been removed in favor of using custom_data predicates.
    • So stick{a:2} becomes stick[custom_data~{a:2}]

Minecraft:Item sub-predicates

  • Predicate minecraft:custom_data now accepts both SNBT data written as a string (existing format) and unflattened tags.
    • That means that *[custom_data~{a:1}] and *[custom_data~"{a:1}"] are equivalent.
    • Flattened string format has been kept since NBT type information can't be expressed in JSON.

General

Minecraft:Data packs

  • The data pack version is now 36.

Minecraft:Resource packs

  • The resource pack version is now 30.
  • Changed texture asset paths in wolf_variant to better match other formats.
    • Field texture has been renamed to wild_texture
    • wild_texture, tame_texture and angry_texture no longer require values to be prefixed with textures/ and suffixed with .png.
  • Particle entity_effect takes color argument when spawned from command /particle entity_effect Template:Cd Template:Cd Template:Cd Template:Cd.
    • 4 float values ranging from 0.0 to 1.0 representing RGBA.
  • Removed map_icons.pngTemplate:More info
    • Map decoration icons have been split from the former map_icons.png to use an atlas loaded from the textures/map/decorations/ directory.
    • The atlas is now generated upon loading resources: Minecraft:map_decorations.png-atlas
  • The process of upgrading a pack can be assisted by using an automated Slicer tool.<ref>https://github.com/Mojang/slicer/releases/tag/v1.1.4</ref>
  • Added trial_chambers map decoration icon.

Minecraft:Tags

  • axolotl_tempt_items has been renamed to axolotl_food.

Experimental

Additions

Items

File:Trial Chambers Map JE1.png Minecraft:Trial chambers map

Gameplay

Minecraft:Advancements

  • Added seven new advancements:
    • Minecraft: Trial(s) Edition
      • Step foot in a Trial Chamber
    • Under Lock & Key
      • Unlock a Vault using a Trial Key
    • Blowback
      • Kill a Breeze with a deflected Wind Charge
    • Who Needs Rockets?
      • Use a Wind Charge to launch yourself upward at least 8 blocks
    • Crafters Crafting Crafters
      • Be near a Crafter when it crafts a Crafter
    • Lighten Up
      • Scrape a Copper Bulb with an Axe to make it brighter
    • Over-Overkill
      • Deal 50 hearts of damage in a single hit using the Mace

General

Minecraft:Tags

  • Added the #on_trial_chambers_maps structure tag.
    • Contains trial_chambers.

Changes

Blocks

Minecraft:Heavy core

  • Can now be waterlogged.
  • Can now survive lava flowing into them.
  • Adjusted destroy time and explosion resistance.
    • It now takes 15 seconds to mine (down from 45).
    • Blast resistance now matches the one from Minecraft:obsidian.
  • Pushing a heavy core with a Minecraft:piston now moves the block, instead of popping it off.
  • Minecraft:Map color is now silver.
  • Removed the unused orientation block state.

Items

Minecraft:Mace

  • No longer counts as an efficient tool for breaking Minecraft:cobwebs.
  • Maces now have a unique sound when hitting an entity from a fall of more than five blocks.

World generation

Minecraft:Trial chambers

  • Now generate slightly more rarely and a bit more spaced out from each other.

Fixes

Template:Fixes

Videos

Template:Slicedlime

References

Template:Reflist

Navigation

Template:Navbox Java Edition versions

Minecraft:de:24w12a Minecraft:es:Java Edition 24w12a Minecraft:fr:Édition Java 24w12a Minecraft:ja:Java Edition 24w12a Minecraft:lzh:爪哇版二四週一二甲 Minecraft:pt:Edição Java 24w12a Minecraft:ru:24w12a (Java Edition) Minecraft:uk:24w12a (Java Edition) Minecraft:zh:Java版24w12a