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 25w03a

From SAS Gaming Wiki

Template:Infobox version

25w03a is the second Minecraft:snapshot for Minecraft:Java Edition 1.21.5 released on January 15, 2025,<ref>Template:Snap</ref> which adds Minecraft:test block, Minecraft:test instance block, and fixes bugs.

Additions

Blocks

Template:Animate Minecraft:Test block

  • A technical block used in game test.
  • Can be obtained by Template:Cmd, Template:Cmd, or Template:Cmd commands, or through the Minecraft:Operator Items Tab.
  • The test block is a block used for implementing block-based tests. It has four modes:
    • Template:Cd: Triggers a redstone pulse when the test starts
    • Template:Cd: Logs a message to the server log file when powered by redstone (prints twice, due to a bug<ref name="youtube-6elLSg0y7X4">Template:Citation</ref>)
    • Template:Cd: Fails the test when powered by redstone
    • Template:Cd: Completes the test when powered by redstone
  • Block-based tests are required to have at least one start block and one accept block in the structure.

File:Test Instance Block JE1.png Minecraft:Test instance block

  • A technical block used in game test.
  • Can be obtained by Template:Cmd, Template:Cmd, or Template:Cmd commands, or through the Minecraft:Operator Items Tab.
  • To run a test in a world, a test instance block is used. This type of block represents the test as placed in the world and is used to interact with that test, to save the structure, reset or run the test.
  • Using the Template:Cmd command to run or create a test will also place a test instance block to control that test.

Command format

Template:Cmd

  • A new command used to create and run tests.
  • Template:Cmd
    • These subcommands clear the structures and blocks associated with the selected tests.
  • Template:Cmd
    • This subcommand creates a test setup in the current location for the given test, preparing for a structure of the given size.
    • This gives a starting point for creating the structure for the test.
  • Template:Cmd
    • Attempts to locate the given test.
      • Note that only loaded chunks are searched.
  • Template:Cmd
    • These subcommands reset the structures for the selected tests, removing any surrounding barriers and placing the structure in from scatch.
  • Template:Cmd
    • Shows the local coordinates to the block pointed at in the test.
    • If the optional variable name is specified, this variable name is used in a code fragment obtained by clicking on the coordinates in the output message.
  • Template:Cmd
    • Runs one or more tests.
      • If multiple tests are run at once, they are placed in a grid and run in parallel, although only up to a certain limit. Beyond that limit, tests are run in rounds where each round completes before any tests from the next round are started.
      • For each test, loads the given structure and runs the associated test. Each test location will have a beacon beam showcasing the test status.
        • Gray beacon = in progress
        • Red = fail (required test)
        • Orange = fail (optional test)
        • Green = success
      • If a test fails, the error is shown on a lectern book and an overlay.
  • Template:Cmd
    • Stops all running tests.
      • Note that gameplay events triggered by tests may still remain.
  • Template:Cmd
    • Verifies one or more tests by running multiple instances of the same test.

General

Minecraft:Block-based tests

Minecraft:Function tests

  • Rely on built-in functions to run a test and indicate success or failure.
    • They have one additional field:
      • Template:Cd:
        • The namespaced ID of the Test Function to run.

Minecraft:Game tests

  • The Game Tests system is a new integrated system for testing aspects of the game.
  • Each test is an asset defining some parameters for how the test gets executed, combined with a saved structure file containing a base setup.
  • Generally, the test framework expects to run tests in a separate superflat world.

Minecraft:Items model definition

  • Select Property
    • Template:Cd
      • New data source has been added to select item model: Template:Cd.
      • Returns value of component on item, if any.
      • Fields:
      • Possible values: depends on component type.

Minecraft:Tags

  • Added the Template:Cd entity tag.
    • Contains entities that can be equipped with a saddle.
    • This does not mean that the Saddle will function, just that it can be equipped into the saddle slot.

Test environments

  • Test Environments are a way to group up tests and give them the right preconditions to run.
  • A test environment is an asset in the Template:Cd registry.
  • Each test environment definition has a Template:Cd field that determines its setup:
    • Template:Cd definitions
      • Apply the setup from several sub-definitions in the Template:Cd field.
    • Template:Cd definitions
      • Use mcfunction files as setup and teardown.
      • Template:Cd:
        • Optional namespaced ID of the mcfunction to use for setup, if any.
      • Template:Cd:
        • Optional namespaced ID of the mcfunction to use for teardown, if any.
    • Template:Cd: definitions
      • Set any number of game rules.
      • Template:Cd:
        • A list of boolean game rules to set and the value to set.
      • Template:Cd:
        • A list of integer game rules to set and the value to set.
      • Each rule is an object with two fields:
      • Game rules are reset to their default values after the test environment has completed.
    • Template:Cd definitions (not working in this snapshot<ref name="youtube-6elLSg0y7X4" />)
    • Template:Cd definitions
      • Set a given time of day.
      • Template:Cd:
        • The time of day to set in number of ticks, as a non-negative integer.
  • The game provides a single, empty test environment by default: Template:Cd.

Test instances

Changes

Blocks

Minecraft:Leaf litter

Items

Minecraft:Saddle

Command format

Item slots

  • The Template:Cd item slot has been renamed to Template:Cd, and now supports any entity that can equip a Saddle.
    • Driven by the Template:Cd component.
    • Only mobs that normally support saddles will support riding and rendering of the saddle.
    • Items in the Template:Cd slot can apply attribute modifiers as with other equipment.

Gameplay

Minecraft:End portal and Minecraft:exit portal

  • When changing state, any blocks that are in its radius will be dropped as items and also make breaking sounds, rather than outright overwritten.<ref>Template:Citation</ref>

General

Minecraft:Data component format

  • Template:Cd component
    • Can now apply to saddle slot.
    • Any mob can now have equipment added in the Template:Cd slot as long as the component allows it (Template:Cd).
    • Added new optional field: Template:Cd (boolean).
      • If Template:Cd, players can equip this item onto a target mob by right-clicking it (as long as this item can be equipped on the target at all).
      • The item will not be equipped if the target already has an item in the relevant slot.
      • If not specified, defaults to Template:Cd.

Minecraft:Data pack

Minecraft:Entity format

Entity variant components

Equipment assets

Minecraft:Predicates

Minecraft:Resource pack

Minecraft:Server.jar

  • Added the entry point Template:Cd.
    • Automatically starts a server, runs all available game tests and then exits.
    • Options:
      • Template:Cd - Shows usage information
      • Template:Cd - Set a folder of datapacks to include in the world
        • Any zip file or folder with a Template:Cd file is included
      • Template:Cd - Exports results in a junit-like XML report at the given path
      • Template:Cd - Specify which tests to run with a selection - a wildcard expression matching namespace test instance IDs
        • If omitted, or used with an empty ID, runs all tests
      • Template:Cd - The path to where the test server world will be created
        • Any existing folder will be replaced
        • Default: Template:Cd
      • Template:Cd - Enables test verification
    • Example usage: Template:Cd

Minecraft:Tags

Minecraft:Text component format

Fixes

Template:Fixes

Videos

Template:Slicedlime

References

Template:Reflist

Navigation

Template:Navbox Java Edition versions

Minecraft:de:25w03a Minecraft:es:Java Edition 25w03a Minecraft:fr:Édition Java 25w03a Minecraft:ja:Java Edition 25w03a Minecraft:lzh:二五週〇三甲 Minecraft:pt:Edição Java 25w03a Minecraft:ru:25w03a (Java Edition) Minecraft:uk:25w03a (Java Edition) Minecraft:zh:Java版25w03a