Minecraft:Commands/test: Difference between revisions
From SAS Gaming Wiki
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft Tag: Manual revert |
||
| Line 1: | Line 1: | ||
{{ | {{distinguish|Commands/test (Bedrock Edition)}} | ||
{{ | {{Exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
|name=test | |name=test | ||
| Line 34: | Line 34: | ||
== Arguments == | == Arguments == | ||
{{ | {{cd|clearall}} | ||
: Clears all tests within a specified radius. | : Clears all tests within a specified radius. | ||
{{ | {{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. | ||
{{ | {{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. | ||
{{ | {{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. | ||
{{ | {{argument|radius|integer}} | ||
: Specifies the radius to clear tests within. Defaults to 200. | : Specifies the radius to clear tests within. Defaults to 200. | ||
: {{ | : {{arg desc|je=integer}} | ||
{{ | {{argument|id|resource_location}} | ||
: Specifies the ID of a test. | : Specifies the ID of a test. | ||
: {{ | : {{arg desc|je=resource_location}} | ||
{{ | {{argument|width|integer}} | ||
: Specifies the width of the test structure. Defaults to 5. | : Specifies the width of the test structure. Defaults to 5. | ||
: {{ | : {{arg desc|je=integer}} | ||
{{ | {{argument|height|integer}} | ||
: Specifies the height of the test structure. Defaults to the value of {{ | : Specifies the height of the test structure. Defaults to the value of {{cd|<width>}}. | ||
: {{ | : {{arg desc|je=integer}} | ||
{{ | {{argument|depth|integer}} | ||
: Specifies the depth of the test structure. Defaults to the value of {{ | : Specifies the depth of the test structure. Defaults to the value of {{cd|<width>}}. | ||
: {{ | : {{arg desc|je=integer}} | ||
{{ | {{argument|var|string}} | ||
: Specifies the variable name to include in the copied code snippet. Defaults to {{ | : Specifies the variable name to include in the copied code snippet. Defaults to {{cd|pos}}. | ||
: {{ | : {{arg desc|je=string}} | ||
{{ | {{argument|tests|resource_selector}} | ||
: Specifies the ID of a test.<!-- | : Specifies the ID of a test.<!-- | ||
: {{ | : {{arg desc|je=resource_selector}}--> | ||
{{ | {{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. | ||
: {{ | : {{arg desc|je=integer}} | ||
{{ | {{argument|untilFailed|bool}} | ||
: Specifies if the test should be stopped as soon as one iteration fails. Defaults to {{ | : Specifies if the test should be stopped as soon as one iteration fails. Defaults to {{cd|false}}. | ||
: {{ | : {{arg desc|je=bool}} | ||
{{ | {{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. | ||
: {{ | : {{arg desc|je=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. | ||
: {{ | : {{arg desc|je=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. | ||
: {{ | : {{arg desc|je=integer}} | ||
{{ | {{argument|onlyRequiredTests|bool}} | ||
: Specifies if only necessary tests are needed. Defaults to {{ | : Specifies if only necessary tests are needed. Defaults to {{cd|false}}. | ||
: {{ | : {{arg desc|je=bool}} | ||
{{ | {{argument|test|resource}} | ||
: Specifies the ID of a test. | : Specifies the ID of a test. | ||
: {{ | : {{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 ...|{{ | {{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 == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|0|0|0}} | ||
{{ | {{Output table|cmd=/test clear ...<br>/test reset ...|On success|1|1|the number of cleared/reset test structures}} | ||
{{ | {{Output table|cmd=|On success|1|1|1}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.15|dev=19w34a|Added {{ | |{{HistoryLine||1.15|dev=19w34a|Added {{cmd|test|link=none}}, only available in IDE environment.}} | ||
|{{HistoryLine||1.21.5|dev=25w03a|{{ | |{{HistoryLine||1.21.5|dev=25w03a|{{cmd|test|link=none}} is now accessible through normal gameplay.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{ | {{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
- Clears all tests within a specified radius.
- Resets, runs, and exports the closest test within a radius of 15.
- Clears, resets, runs, and exports the test where the crosshair points.
- Clears, resets, runs, and exports all the tests within a radius of 200.
- Specifies the radius to clear tests within. Defaults to 200.
- Template:Arg desc
- Specifies the ID of a test.
- Template:Arg desc
- Specifies the width of the test structure. Defaults to 5.
- Template:Arg desc
- Specifies the height of the test structure. Defaults to the value of Template:Cd.
- Template:Arg desc
- Specifies the depth of the test structure. Defaults to the value of Template:Cd.
- Template:Arg desc
- Specifies the variable name to include in the copied code snippet. Defaults to Template:Cd.
- Template:Arg desc
- Specifies the ID of a test.
- Specifies the number of times to repeat each test in different batches. Defaults to 1.
- Template:Arg desc
- Specifies if the test should be stopped as soon as one iteration fails. Defaults to Template:Cd.
- Template:Arg desc
- Specifies the number of extra 90 degree steps to apply to the test. Defaults to 0.
- Template:Arg desc
- Specifies the number of tests to place per row in a grid layout. Defaults to 8.
- Template:Arg desc
- Specifies the number of times to repeat each test in the same batch. Defaults to 1.
- Template:Arg desc
- Specifies if only necessary tests are needed. Defaults to Template:Cd.
- Template:Arg desc
- 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
Minecraft:de:Befehl/test Minecraft:ja:コマンド/test Minecraft:pt:Comandos/test Minecraft:ru:Команды консоли/test Minecraft:zh:命令/test