Minecraft:Java Edition 24w45a
More actions
24w45a is the second Minecraft:snapshot for Minecraft:Java Edition 1.21.4, released on November 6, 2024,<ref>Template:Snap</ref> which revamps the item model system, changes various items and mobs, and fixes bugs and crashes from Minecraft:24w44a.
Additions
General
Minecraft:Items model definitions
- Template:Cd item model type.
- Renders a plain model from models directory.
- Fields:
- Template:Cd: namespaced ID of model in models (like Template:Cd)
- Template:Cd: a list of tint sources to apply to elements of rendered model (first entry applies to Template:Cd 0, second one - 1, etc.)
- Format:
- Template:Cd: type of tint source (see below)
- Template:Cd - additional fields depending on tint source type.
- Template:Cd tint source type.
- Returns a constant RGB color.
- Fields:
- Template:Cd - A packed integer RGB value (e.g. Template:Cd) or an array of RGB values (e.g. Template:Cd).
- Template:Cd tint source type.
- Returns value from Template:Cd component or default if not present.
- Fields:
- Template:Cd - RGB value.
- Template:Cd tint source type.
- Returns grass color at specific climate parameters, based on Template:Samp.
- Same colors as ones selected by Template:Cd and Template:Cd in biome configuration.
- Fields:
- Template:Cd - float in Template:Cd (inclusive) range.
- Template:Cd - float in Template:Cd (inclusive) range.
- Template:Cd tint source type.
- Returns average of colors from Template:Cd component or default color if there are none.
- Fields:
- Template:Cd: RGB value.
- Template:Cd tint source type.
- Returns color from Template:Cd component:
- If component is present:
- custom color, if there is one present in component.
- default color, if effect list is empty.
- average of effect colors, otherwise.
- Default color, otherwise.
- If component is present:
- Fields:
- Template:Cd: RGB value.
- Returns color from Template:Cd component:
- Template:Cd tint source type.
- Return value from Template:Cd component or default color if component is not present.
- Fields:
- Template:Cd: RGB value.
- Template:Cd tint source type.
- Returns value from colors list in Template:Cd component.
- Fields:
- Template:Cd - index for field in Template:Cd.
- Default: Template:Cd
- Template:Cd - index for field in Template:Cd.
- Template:Cd item model type.
- Renders a special (not data-driven) model.
- Fields:
- Template:Cd: special model instance.
- Format:
- Template:Cd - type of special model.
- Template:Cd - additional fields depending on tint source type.
- Format:
- Template:Cd: namespaced ID of model in Template:Cd, providing transformations, particle texture and GUI light.
- Template:Cd: special model instance.
- Template:Cd special model type.
- Renders a whole bed.
- Fields:
- Template:Cd - namespaced ID for texture, without Template:Cd prefix and Template:Cd suffix.
- Template:Cd special model type.
- Renders a banner with patterns from Template:Cd component.
- Fields:
- Template:Cd - color of banner base, one of 16 predefined colors.
- Template:Cd special model type.
- Renders a conduit.
- No fields.
- Template:Cd special model type.
- Renders a single chest.
- Fields:
- Template:Cd - namespaced ID for texture, without Template:Cd prefix and Template:Cd suffix.
- Template:Cd - float, Template:Cd (default) - fully closed, Template:Cd - fully open.
- Template:Cd special model type.
- Renders a head.
- Uses profile from Template:Cd component when applicable.
- Fields:
- Template:Cd - one of Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd
- Template:Cd special model type.
- Renders a shulker box.
- Fields:
- Template:Cd - namespaced ID for texture, without Template:Cd prefix and Template:Cd suffix
- Template:Cd - float, Template:Cd (default) - fully closed, Template:Cd - fully open
- Template:Cd - orientation for rendering.
- Default: Template:Cd
- Template:Cd special model type.
- Renders a shield.
- Uses patterns from Template:Cd component and color from Template:Cd component.
- No fields.
- Template:Cd special model type.
- Renders a trident.
- No fields.
- Template:Cd special model type.
- Renders a decorated pot.
- Uses values from Template:Cd component.
- No fields.
- Template:Cd item model type.
- Renders multiple sub-models.
- All models are rendered in the same space.
- Fields:
- Template:Cd: a list of item models to render.
- Template:Cd item model type.
- Renders an item model depending on boolean property.
- Fields:
- Template:Cd: type of property.
- Template:Cd - additional fields depending on property type, added inline.
- Template:Cd - item model to render when property is true.
- Template:Cd - item model to render when property is false.
- Template:Cd boolean property.
- Returns true if player is currently using this item.
- No fields.
- Template:Cd boolean property.
- Returns true if the item is damageable and has only one use remaining before breaking.
- No fields.
- Template:Cd boolean property.
- Returns true if the item is damageable and has been used at least once.
- No fields.
- Template:Cd boolean property.
- Returns true if the given component is present on the item.
- Fields:
- Template:Cd - component type.
- Template:Cd boolean property.
- Returns true if there is a fishing bobber attached to currently used fishing rod.
- No fields.
- Template:Cd boolean property.
- Returns true if bundle is "open", i.e. it has selected item visible in GUI.
- No fields.
- Template:Cd boolean property.
- Returns true if current date is between December 24th and December 26th (inclusive).
- No fields.
- Template:Cd boolean property
- Returns true if item is selected on a hotbar.
- No fields.
- Template:Cd boolean property.
- Returns true if item is carried between slots in GUI.
- No fields.
- Template:Cd boolean property.
- Returns true if player currently holding shift key down.
- No fields.
- Template:Cd boolean property.
- Returns value from flags list in Template:Cd component.
- Fields:
- Template:Cd - index for field in flags.
- Default: Template:Cd
- Template:Cd - index for field in flags.
- Template:Cd item model type.
- Renders an item model based on discrete property.
- Fields:
- Template:Cd: type of property.
- Template:Cd - additional fields depending on property type, added inline.
- Template:Cd - list of cases to match in format:
- Template:Cd - value to match against property, type depends on property.
- Could be a single value or a list of values.
- Template:Cd - item model to render when case is selected.
- Template:Cd - value to match against property, type depends on property.
- Template:Cd - item model to render if none of the cases matched the value.
- If not present, placeholder "missing" model is rendered instead.
- Template:Cd property.
- Returns main hand of holding player.
- No fields.
- Values: Template:Cd, Template:Cd
- Template:Cd property.
- Returns charge type stored in Template:Cd component.
- No fields.
- Values:
- Template:Cd - if there are no projectiles or component is not present.
- Template:Cd - if there is at least one firework rocket.
- Template:Cd - any other case.
- Template:Cd property.
- Returns value of material field from Template:Cd component, if present.
- No fields.
- Values: namespaced ID.
- Template:Cd property.
- Returns value for some property from Template:Cd component.
- Fields:
- Template:Cd - string key to select from component.
- Values: any string.
- Template:Cd property.
- Returns context this item is rendered in.
- No fields.
- Values:
- Template:Cd property.
- Returns value from strings list in Template:Cd component.
- Fields:
- Template:Cd - index for field in strings.
- Default: Template:Cd
- Template:Cd - index for field in strings.
- Values: any string.
- Template:Cd item model type.
- Renders an item model based on numeric property.
- Replacement for old overrides section from block models.
- Selects last entry with threshold less or equal to property value.
- Fields:
- Template:Cd: type of property.
- Template:Cd - additional fields depending on property type.
- Template:Cd - factor to multiply property value with.
- Default: Template:Cd
- Template:Cd - list of entries in format:
- Template:Cd - float value.
- Template:Cd - item model to render when entry is selected.
- Note: order of fields does not matter, list is sorted by threshold in ascending order before use.
- Template:Cd - item model to render if no entries were less or equal to property value.
- If not present, placeholder "missing" model is rendered instead.
- Template:Cd numeric property
- Returns value from Template:Cd list in Template:Cd component.
- Fields:
- Template:Cd - index for field in Template:Cd
- Default: Template:Cd
- Template:Cd - index for field in Template:Cd
- Template:Cd numeric property.
- Returns weight of Template:Cd component or 0 if not present.
- No fields.
- Template:Cd numeric property.
- Returns value for damage component.
- Fields:
- Template:Cd: boolean
- Default: true
- If true, returns value of damage divided by Template:Cd component, clamped to Template:Cd.
- If false, returns value of damage, clamped to Template:Cd.
- Template:Cd: boolean
- Template:Cd numeric property.
- Returns stack size.
- Fields:
- Template:Cd: boolean.
- Default: Template:Cd
- If true, returns count divided by Template:Cd component, clamped to Template:Cd.
- If false, returns count clamped to Template:Cd.
- Template:Cd: boolean.
- Template:Cd numeric property
- Returns remaining cooldown for item, scaled to Template:Cd.
- No fields.
- Template:Cd numeric property
- Returns value of day time (used for clock), scaled to Template:Cd.
- Fields:
- Template:Cd - if true, value oscillates for some time around target before settling.
- Default: Template:Cd
- Template:Cd - if true, value is random in dimensions with Template:Cd.
- Default: Template:Cd
- Template:Cd - if true, value oscillates for some time around target before settling.
- Template:Cd numeric property
- Returns angle, scaled to Template:Cd in x-z plane between holder position and target.
- If target is not valid (not present, in other dimension or to close to holder position) random value is returned.
- Fields:
- Template:Cd - one of:
- Template:Cd - points at world spawn.
- Template:Cd - points at location stored in Template:Cd component.
- Template:Cd - points at last player death location.
- Template:Cd - if true, value oscillates for some time around target before settling.
- Default: Template:Cd
- Template:Cd - one of:
- Template:Cd numeric property.
- Returns crossbow-specific use time.
- No fields.
- Template:Cd numeric property
- Returns item use ticks.
- Fields:
- Template:Cd - if Template:Cd, returned value is remaining use ticks, if Template:Cd - ticks so far.
- Default: Template:Cd
- Template:Cd - if Template:Cd, returned value is remaining use ticks, if Template:Cd - ticks so far.
- Template:Cd numeric property.
- Returns remaining use ticks modulo period.
- Fields:
- Template:Cd - positive float.
- Default: Template:Cd
- Template:Cd - positive float.
- Template:Cd item model type.
- Renders selected stack in Template:Cd component, if present, otherwise does nothing.
- Added the Template:Cd block tag.
- Denotes all blocks that Minecraft:bees may pollinate.
- Added Template:Cd, Template:Cd, Template:Cd and Template:Cd item tags.
- For specifying preferred weapons types for these mobs when picking up items.
Changes
Blocks
- A naturally spawned creaking heart no longer drops experience when broken in Creative mode.
- Its
hurtsubtitle has been changed.
- Are now activated from resin clumps being placed by a creaking heart, with a frequency of 13.
Items
- Are now found at the end of the flowers in the Creative inventory.
- Now used to trim armor, instead of Minecraft:resin clumps.<ref>Template:Bug</ref><ref>Template:Bug</ref>
- Changed durations of the Suspicious Stew effects to match Template:BE:
- Minecraft:Fire Resistance: 3 seconds
- Minecraft:Blindness: 11 seconds
- Minecraft:Weakness: 7 seconds
- Minecraft:Regeneration: 7 seconds
- Minecraft:Jump Boost: 5 seconds
- Wither: 7 seconds
- Minecraft:Poison: 11 seconds
Mobs
General
- The way mobs decide to replace their equipped items with items on the ground was changed.
- If the item belongs in an armor slot, replace the item if any of the following conditions apply.
- The new item has a higher base armor value.
- The new item has a higher base armor toughness value.
- The new item has more enchantments.
- The new item is less damaged.
- The new item has a custom name while the old one doesn't.
- If the item belongs in the main hand slot, replace the item if any of the following conditions apply.
- The new item is a preferred weapon while the old one isn't.
- If the old item is a preferred weapon while the new item isn't, do not replace the item.
- The new item has a higher base damage value.
- The new item has more enchantments.
- The new item is less damaged.
- The new item has a custom name while the old one doesn't.
- The new item is a preferred weapon while the old one isn't.
- If the item belongs in an armor slot, replace the item if any of the following conditions apply.
- Are no longer attracted to closed eyeblossoms.
- Can no longer interact with closed eyeblossoms.
Baby Minecraft:cats and Minecraft:wolves
- Now get a collar with the color that is a mix between the parents collar color if possible.
- An activated creaking doesn't move if a player in Survival or Adventure mode is looking at it.
- Creakings also have full knockback resistance in that state.
- Their eyes are now visible when they have the Minecraft:Invisibility effect.
- Its
activate,deactivate,death,spawn&swaysubtitles have been changed.
- Prefer to pick Minecraft:tridents from the ground as opposed to other items.
Minecraft:Pillagers and Minecraft:piglins
- Prefer to pick Minecraft:crossbows from the ground as opposed to other items.
Minecraft:Skeletons, Minecraft:wither skeletons, Minecraft:strays and Minecraft:bogged
- Prefer to pick Minecraft:bows from the ground as opposed to other items.
Non-mob entities
- Physics were changed. They are now bouncy when falling from a height.<ref>This was added alongside a fix for a bug which unintentionally made them bouncy several versions earlier. Template:Bug</ref>
World generation
- Loot chests can now contain resin clumps, not resin bricks.
Gameplay
Damage
- Minecraft:Players no longer receive 3 seconds of damage immunity when spawning, respawning, or joining a world or server.
General
- New entry point Template:Samp is present in client jar, with similar command line structure as data generator in server jar.
- Available options: Template:Cd - generates Template:Cd directory.
Minecraft:Data component format
- Template:Cd
- Now has more fields to accommodate new uses by various model property getters.
- Fields:
- Template:Cd - list of floats.
- Template:Cd - list of booleans.
- Template:Cd - list of strings.
- Template:Cd - list of RGB color values.
- The Minecraft:pack format version is now Template:Cd.
- The tooltip warning on item blocks with the Template:Cd component can no longer be hidden by any other component.
- Field model in Template:Cd component has been renamed to asset_id.
- Field Template:Cd in Template:Cd registry has been removed (no longer needed for model rendering).
- New format has been introduced for describing item models. See Minecraft:Items model definition.
- Item models are selected based on Template:Cd component.
- Model for item with Template:Cd is stored in Template:Samp.
- Format of file is <syntaxhighlight lang="text">{
"model": {
"type": <item model type>,
<item model type specific fields>
}
}</syntaxhighlight>
- Template:Cd section has been removed from existing block models.
- There are no longer any hardcoded paths in Template:Cd directory - models are now only used if referenced by definitions in Template:Cd or Template:Cd directories.
- Models in Template:Cd that only redirect to a block model have been removed.
- In such cases, the item model refers to the Template:Cd model directly.
- Template:Cd
- Now has more fields to accommodate more complex component structure.
- Fields:
- Template:Cd - optional list operation of number providers.
- Template:Cd - optional list operation of boolean values.
- Template:Cd - optional list operation of string values.
- Template:Cd - optional list operation of RGB values or number providers.
- List operation uses same format as explosions field in Template:Cd modifier.
- For example <syntaxhighlight lang="json">{
"function": "set_custom_model_data",
"floats": {
"values": [2],
"mode": "replace_all"
}
}</syntaxhighlight> sets replaces Template:Cd with value Template:Cd.
Minecraft:Missing textures and models
- If a model which the game uses directly (as opposed to template models) fails to specify a texture to use for particles, an error is now printed to the game log<ref>Template:Bug</ref>.
- If a model does not attempt to route a texture reference to an actual texture file, an error is logged once again<ref>Template:Bug</ref>.
Protocol
- Client now sends the Template:Cd packet once the loading terrain screen has closed after initially loading into the world, and after closing the loading screen when respawning.
- The Minecraft:pack format version is now Template:Cd.
- Invalid Template:Cd items in an Item Frame (map item without the Template:Cd component) no longer change the size of the frame.
- The Template:Cd directory has been moved one level up, i.e. Template:Cd becomes Template:Cd.
- Template:Cd model and texture has been renamed to Template:Cd.
- Data generator in server jar (Template:Samp) no longer generates Template:Cd directory.
- Template:Cd option has been removed from command line for this entry point.
- Removed the Template:Cd block and item tags.
- Removed the Template:Cd item tag.
- Put the contents of the removed Template:Cd block tag into the Template:Cd block tag.
- Put the contents of the removed Template:Cd item tag, except Template:Cd into the Template:Cd item tag.
- Added Template:Cd to the Template:Cd block tag.
- Added Template:Cd, and Template:Cd into the Template:Cd, and Template:Cd block and item tags respectively.
- Removed the Template:Cd block tag from the Template:Cd block tag.
Fixes
Videos
References
Template:Navbox Java Edition versions
Minecraft:de:24w45a Minecraft:es:Java Edition 24w45a Minecraft:fr:Édition Java 24w45a Minecraft:ja:Java Edition 24w45a Minecraft:pt:Edição Java 24w45a Minecraft:ru:24w45a (Java Edition) Minecraft:uk:24w45a (Java Edition) Minecraft:zh:Java版24w45a