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 24w21a

From SAS Gaming Wiki

Template:Infobox version

24w21a is the fifth Minecraft:snapshot for Minecraft:Java Edition 1.21, released on May 22, 2024,<ref>Template:Snap</ref> which introduces custom Minecraft:jukebox music and fixes bugs.

Additions

Command format

Minecraft:Target selectors

  • Added @n entity selector, selecting the nearest entity.
    • This functions as @e[sort=nearest,limit=1].
    • Additional requirements may still be provided; for example: @n[type=pig] selects the closest pig.

General

Minecraft:Game rules

  • Added new entitiesWithPassengersCanUsePortals gamerule.
    • Defaults to false.
    • When true, entities with passengers can use nether portals, end portals and end gateways, and the waiting time for being transported through the portal is completely skipped.

Minecraft:Tags

  • Added the following block tag:
    • air: Template:Cd
      • Contains all blocks that resemble air.
  • Added the following damage type tags:
    • panic_causes: contains Template:Cd
      • Contains damage types that cause panic in passive animals, i.e. mobs that run away when attacked.
    • panic_environmental_causes: contains Template:Cd
      • Contains damage types that cause panic in aggressive animals that can panic, i.e. mobs that retaliate when attacked (wolves, polar bears (adults) and pandas).

Changes

Blocks

Minecraft:Doors

  • Doors of different materials now default to being placed oriented together to form a double door instead of both being placed with the hinge on the same side of the block.

Minecraft:Piston

  • Reverted to the old sounds.
  • Lowered volume of original sounds to address the initial feedback of pistons being too loud.

Minecraft:Vault

  • Added a new sound on vault to help players understand they've already looted a vault.

Items

Minecraft:Bolt armor trim

Mobs

General

  • Animals now panic for 2 seconds after taking damage (down from 4).
  • Animals now panic based on the damage caused by predefined damage source types.

Minecraft:Pandas, Minecraft:wolves and adult Minecraft:polar bears

World generation

Trial chambers

Command format

Template:Cmd

  • The uuid and name arguments have been replaced with a singular id argument.

General

Minecraft:Attributes

  • Attribute modifiers no longer have a UUID and name combination.
  • Instead, attribute modifiers are now uniquely identified by a namespaced ID, similar to other resources.
  • The ID of a modifier uniquely identifies it in the set of modifiers for a single attribute.
    • Using the same ID for different modifiers is allowed as long as the modifiers are for different attributes.
  • Existing built-in modifiers are upgraded to new IDs.
  • Existing custom modifiers are upgraded to the GUID as an ID in the minecraft namespace.

Item stack attribute modifiers

  • The uuid and name fields have been removed.
  • Attribute modifiers now have an id (namespaced ID) field.
    • This is a unique identifier per attribute for the modifier.

Entity attributes

  • Are now stored in attribute format:
    • id, renamed from Name.
    • base, renamed from Base.
    • modifiers, renamed from Modifiers.
      • Now stores modifiers in the same format as modifiers in attribute_modifiers item stack components:
        • id, replaces UUID and Name.
        • amount, renamed from Amount.
        • operation, renamed from Operation, now a named constant instead of an int:
          • add_value - previously 0.
          • add_multiplied_base - previously 1.
          • add_multiplied_total - previously 2.

Enchantments

  • Attribute effects
    • Fields:
      • name & uuid have been removed, replaced by id.
      • id: the namespaced ID of the attribute modifier to add.
        • This will be postfixed with the slot name when the enchanted item is equipped in a slot.
        • Must be unique to avoid different enchantments (or other systems) interfering with each others.

Entity effect types

  • damage_item.
  • The damage is not applied to items held by players in creative mode.
    • Hit block parameters.
      • Entities: this.
      • Enchantment level.
      • Origin.
      • Block state.

Effect components

  • minecraft:hit_block:
    • Condition context: changed to take a hit block parameter - this is the entity hitting the block.

Minecraft:Tags

  • Some registry types that used legacy data pack directory names (based on plural name of element) have been renamed to match registry name.
    • Affected directories:
      • structures -> structure
      • advancements -> advancement
      • recipes -> recipe
      • loot_tables -> loot_table
      • predicates -> predicate
      • item_modifiers ->item_modifier
      • functions -> function
      • tags/functions -> tags/function
  • Removed breeze_immune_to damage type tag.
  • Removed music_discs item tag.

Predicates

  • New item sub-predicate available as jukebox_playable.
    • Matcher for jukebox_playable component (like music discs).
    • Fields:
      • song - optional id, list of ids or tag for jukebox song to be matched.
  • Player predicate
    • The gamemode field has been changed to accept a list of gamemodes.

Minecraft:Data pack

Minecraft:Item components

  • Added the jukebox_playable item component.
    • If set, the item can be inserted into jukeboxes to play a song.
    • Format: object with fields.
      • song: jukebox song id.
        • The song that is played by the jukebox when this item stack is inserted.
      • show_in_tooltip: boolean (default: true).
        • If false, the name of the song isn't shown in the tooltip.
        • This was formerly controlled by the hide_additional_tooltip component on music discs.
      • e.g. jukebox_playable={song:'minecraft:precipice'} jukebox_playable={song:'minecraft:precipice', show_in_tooltip:false}.

Minecraft:Jukebox

  • Added a jukebox song registry which is loaded from data packs.
  • Path to jukebox song definition is data/<namespace>/jukebox_song/<id>.json.
  • Fields in definition:
    • sound_event - sound event that is streamed when played by a jukebox.
    • description - the name of the song that is displayed in the hover tooltip represented as a text component.
    • length_in_seconds - length of the song in seconds as a positive float.
    • comparator_output - the redstone signal output by a comparator when played in a jukebox, between 0 and 15.

Performance

  • Improvements to the disconnection screen.
  • In some cases client now stores detailed information about disconnection (similar to crash reports).
  • When that happens, new "Open Disconnection Report Directory" button is added to the disconnection screen.
  • When server provides link for bug reporting, it's also added as a button to the disconnection screen.

Minecraft:Realms

  • Any member of a realm can now upgrade a world.
  • In the realms main screen, all online players of a realm are displayed.
    • When hovered, a tooltip is shown with each player's head and name.

Minecraft:Resource pack

Minecraft:Server

  • Pause menu now can include a list of links provided by server.
  • Server can now provide list of links to client.
  • Servers can add custom details to crash and disconnection reports.
  • New clientbound packet custom_report_details is available in configuration and game protocols.
  • This packet contains a list of key-value text entries.
  • If received, contents of this packet are added in a separate section to any crash or disconnection report generated during connection to this server.

Server link

  • Servers can now provide a list of links to clients.
  • If client has received any links, a new button called "Server Links..." shows up in pause game screen.
    • To make space for that button, "Report Bugs" and "Give Feedback" buttons might be moved into a sub-screen if necessary.
  • New clientbound packet server_links is available in configuration and game protocols.
  • On receival, client makes links available from pause menu.
  • Link labels can be built-in or custom (i.e. any text).
  • Some built-ins also have special functionality:
    • report_bug:
      • Link is displayed on disconnection screen, if disconnection was caused by packet handling error.
      • Link is included as a comment in disconnection report.
  • Added bug-report-link to server.properties to allow vanilla server to configure report_bug links.
    • If this field is non-empty, server sends that link to clients.
    • This field should contain well-formed URL.

Minecraft:Shaders

  • The blend block in core shader definitions has been removed, as it was not used.
  • The position_color_tex shader has been removed, replaced with the pre-existing position_tex_color.
  • The glint_direct shader has been removed, replaced with the pre-existing glint shader.
  • The armor_glint shader has been removed, as it was unused.

Minecraft:Armor

  • Burn time reduction effect now stacks on multiple armor pieces.
  • Blast knockback reduction effect now stacks on multiple armor pieces.

Fixes

Template:Fixes

Videos

Template:Slicedlime

References

Template:Reflist

Navigation

Template:Navbox Java Edition versions

Minecraft:de:24w21a Minecraft:es:Java Edition 24w21a Minecraft:fr:Édition Java 24w21a Minecraft:ja:Java Edition 24w21a Minecraft:pt:Edição Java 24w21a Minecraft:ru:24w21a (Java Edition) Minecraft:uk:24w21a (Java Edition) Minecraft:zh:Java版24w21a