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

Minecraft:Commands/test: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
Tag: Manual revert
Line 1: Line 1:
{{MC/Distinguish|Commands/test (Bedrock Edition)}}
{{distinguish|Commands/test (Bedrock Edition)}}
{{MC/Exclusive|java}}
{{Exclusive|java}}
{{Infobox command
{{Infobox command
|name=test
|name=test
Line 34: Line 34:


== Arguments ==
== Arguments ==
{{MC/Cd|clearall}}
{{cd|clearall}}
: Clears all tests within a specified radius.
: Clears all tests within a specified radius.


{{MC/Cd|d=and|resetclosest|runclosest|exportclosest}}
{{cd|d=and|resetclosest|runclosest|exportclosest}}
: Resets, runs, and exports the closest test within a radius of 15.
: Resets, runs, and exports the closest test within a radius of 15.


{{MC/Cd|d=and|clearthat|resetthat|runthat|exportthat}}
{{cd|d=and|clearthat|resetthat|runthat|exportthat}}
: Clears, resets, runs, and exports the test where the crosshair points.
: Clears, resets, runs, and exports the test where the crosshair points.


{{MC/Cd|d=and|clearthese|resetthese|runthese|exportthese}}
{{cd|d=and|clearthese|resetthese|runthese|exportthese}}
: Clears, resets, runs, and exports all the tests within a radius of 200.
: Clears, resets, runs, and exports all the tests within a radius of 200.


{{MC/Argument|radius|integer}}
{{argument|radius|integer}}
: Specifies the radius to clear tests within. Defaults to 200.
: Specifies the radius to clear tests within. Defaults to 200.
: {{MC/Arg desc|je=integer}}
: {{arg desc|je=integer}}


{{MC/Argument|id|resource_location}}
{{argument|id|resource_location}}
: Specifies the ID of a test.
: Specifies the ID of a test.
: {{MC/Arg desc|je=resource_location}}
: {{arg desc|je=resource_location}}


{{MC/Argument|width|integer}}
{{argument|width|integer}}
: Specifies the width of the test structure. Defaults to 5.
: Specifies the width of the test structure. Defaults to 5.
: {{MC/Arg desc|je=integer}}
: {{arg desc|je=integer}}


{{MC/Argument|height|integer}}
{{argument|height|integer}}
: Specifies the height of the test structure. Defaults to the value of {{MC/Cd|<width>}}.
: Specifies the height of the test structure. Defaults to the value of {{cd|<width>}}.
: {{MC/Arg desc|je=integer}}
: {{arg desc|je=integer}}


{{MC/Argument|depth|integer}}
{{argument|depth|integer}}
: Specifies the depth of the test structure. Defaults to the value of {{MC/Cd|<width>}}.
: Specifies the depth of the test structure. Defaults to the value of {{cd|<width>}}.
: {{MC/Arg desc|je=integer}}
: {{arg desc|je=integer}}


{{MC/Argument|var|string}}
{{argument|var|string}}
: Specifies the variable name to include in the copied code snippet. Defaults to {{MC/Cd|pos}}.
: Specifies the variable name to include in the copied code snippet. Defaults to {{cd|pos}}.
: {{MC/Arg desc|je=string}}
: {{arg desc|je=string}}


{{MC/Argument|tests|resource_selector}}
{{argument|tests|resource_selector}}
: Specifies the ID of a test.<!--
: Specifies the ID of a test.<!--
: {{MC/Arg desc|je=resource_selector}}-->
: {{arg desc|je=resource_selector}}-->


{{MC/Argument|numberOfTimes|integer}}
{{argument|numberOfTimes|integer}}
: Specifies the number of times to repeat each test in different batches. Defaults to 1.
: Specifies the number of times to repeat each test in different batches. Defaults to 1.
: {{MC/Arg desc|je=integer}}
: {{arg desc|je=integer}}


{{MC/Argument|untilFailed|bool}}
{{argument|untilFailed|bool}}
: Specifies if the test should be stopped as soon as one iteration fails. Defaults to {{MC/Cd|false}}.
: Specifies if the test should be stopped as soon as one iteration fails. Defaults to {{cd|false}}.
: {{MC/Arg desc|je=bool}}
: {{arg desc|je=bool}}


{{MC/Argument|rotationSteps|integer}}
{{argument|rotationSteps|integer}}
: Specifies the number of extra 90 degree steps to apply to the test. Defaults to 0.
: Specifies the number of extra 90 degree steps to apply to the test. Defaults to 0.
: {{MC/Arg desc|je=integer}}
: {{arg desc|je=integer}}


{{MC/Argument|testsPerRow|integer}}
{{argument|testsPerRow|integer}}
: Specifies the number of tests to place per row in a grid layout. Defaults to 8.
: Specifies the number of tests to place per row in a grid layout. Defaults to 8.
: {{MC/Arg desc|je=integer}}
: {{arg desc|je=integer}}


{{MC/Argument|amount|integer}}
{{argument|amount|integer}}
: Specifies the number of times to repeat each test in the same batch. Defaults to 1.
: Specifies the number of times to repeat each test in the same batch. Defaults to 1.
: {{MC/Arg desc|je=integer}}
: {{arg desc|je=integer}}


{{MC/Argument|onlyRequiredTests|bool}}
{{argument|onlyRequiredTests|bool}}
: Specifies if only necessary tests are needed. Defaults to {{MC/Cd|false}}.
: Specifies if only necessary tests are needed. Defaults to {{cd|false}}.
: {{MC/Arg desc|je=bool}}
: {{arg desc|je=bool}}


{{MC/Argument|test|resource}}
{{argument|test|resource}}
: Specifies the ID of a test.
: Specifies the ID of a test.
: {{MC/Arg desc|je=resource}}
: {{arg desc|je=resource}}


== Result ==
== Result ==
Line 106: Line 106:
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable}}
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable}}
{{Result table|The test does not exist.|fail}}
{{Result table|The test does not exist.|fail}}
{{Result table|cmd=/test create ...|{{MC/Cd|d=or|<width>|<height>|<depth>}} is greater than 48.}}
{{Result table|cmd=/test create ...|{{cd|d=or|<width>|<height>|<depth>}} is greater than 48.}}
{{Result table|cmd=|succeed}}
{{Result table|cmd=|succeed}}
{{Result table}}
{{Result table}}


== Output ==
== Output ==
{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|cmd=/test clear ...<br>/test reset ...|On success|1|1|the number of cleared/reset test structures}}
{{Output table|cmd=/test clear ...<br>/test reset ...|On success|1|1|the number of cleared/reset test structures}}
{{MC/Output table|cmd=|On success|1|1|1}}
{{Output table|cmd=|On success|1|1|1}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.15|dev=19w34a|Added {{MC/Cmd|test|link=none}}, only available in IDE environment.}}
|{{HistoryLine||1.15|dev=19w34a|Added {{cmd|test|link=none}}, only available in IDE environment.}}
|{{HistoryLine||1.21.5|dev=25w03a|{{MC/Cmd|test|link=none}} is now accessible through normal gameplay.}}
|{{HistoryLine||1.21.5|dev=25w03a|{{cmd|test|link=none}} is now accessible through normal gameplay.}}
}}
}}


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/test
[[Minecraft:de:Befehl/test]]
ja:コマンド/test
[[Minecraft:ja:コマンド/test]]
pt:Comandos/test
[[Minecraft:pt:Comandos/test]]
ru:Команды консоли/test
[[Minecraft:ru:Команды консоли/test]]
zh:命令/test
[[Minecraft:zh:命令/test]]

Revision as of 11:04, 1 August 2026

Template:Distinguish Template:Exclusive Template:Infobox command

Manage and execute Minecraft:GameTests.

Syntax

test (clearall [<radius>]|clearthat|clearthese)
Clears the structures and blocks associated with the tests.
test create <id> [<width>] [<height> <depth>]
Creates a test.
test locate <tests>
Locates tests in loaded chunks.
test pos [<var>]
Shows the local coordinates to the block pointed at in the test.
test (resetclosest|resetthat|resetthese)
Resets the structures for the tests.
test run <tests> [<numberOfTimes>] [<untilFailed>] [<rotationSteps>] [<testsPerRow>]
test (runclosest|runthat|runthese) [<numberOfTimes>] [<untilFailed>]
test runmultiple <tests> [<amount>]
Runs one or more tests.
test runfailed [<numberOfTimes>] [<untilFailed>] [<rotationSteps>] [<testsPerRow>]
test runfailed [<onlyRequiredTests>] [<numberOfTimes>]
Runs failed tests.
test stop
Stops all tests.
test verify <tests>
Verifies tests.
test (export <test>|exportclosest|exportthat|exportthese)
Exports tests. Only available in IDE environment.

Arguments

Template:Cd

Clears all tests within a specified radius.

Template:Cd

Resets, runs, and exports the closest test within a radius of 15.

Template:Cd

Clears, resets, runs, and exports the test where the crosshair points.

Template:Cd

Clears, resets, runs, and exports all the tests within a radius of 200.

Template:Argument

Specifies the radius to clear tests within. Defaults to 200.
Template:Arg desc

Template:Argument

Specifies the ID of a test.
Template:Arg desc

Template:Argument

Specifies the width of the test structure. Defaults to 5.
Template:Arg desc

Template:Argument

Specifies the height of the test structure. Defaults to the value of Template:Cd.
Template:Arg desc

Template:Argument

Specifies the depth of the test structure. Defaults to the value of Template:Cd.
Template:Arg desc

Template:Argument

Specifies the variable name to include in the copied code snippet. Defaults to Template:Cd.
Template:Arg desc

Template:Argument

Specifies the ID of a test.

Template:Argument

Specifies the number of times to repeat each test in different batches. Defaults to 1.
Template:Arg desc

Template:Argument

Specifies if the test should be stopped as soon as one iteration fails. Defaults to Template:Cd.
Template:Arg desc

Template:Argument

Specifies the number of extra 90 degree steps to apply to the test. Defaults to 0.
Template:Arg desc

Template:Argument

Specifies the number of tests to place per row in a grid layout. Defaults to 8.
Template:Arg desc

Template:Argument

Specifies the number of times to repeat each test in the same batch. Defaults to 1.
Template:Arg desc

Template:Argument

Specifies if only necessary tests are needed. Defaults to Template:Cd.
Template:Arg desc

Template:Argument

Specifies the ID of a test.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

History

Template:HistoryTable

Navigation

Template:Navbox commands

Minecraft:de:Befehl/test Minecraft:ja:コマンド/test Minecraft:pt:Comandos/test Minecraft:ru:Команды консоли/test Minecraft:zh:命令/test