/script

From Minecraft Wiki
Jump to navigation Jump to search
Not to be confused with Commands/scriptevent.
This article is a stub.
 
You can help by expanding it. The talk page may contain suggestions.
This feature is exclusive to Bedrock Edition and Minecraft Education.
 
/script
Permission level
required

2

Restrictions

Cheat only

Debugging options for GameTest Framework.

Syntax

[edit | edit source]
script debugger close
Close a debugger.
script debugger connect [host: string] [port: int]
Connect to a debugger.
script debugger listen <port: int>
List a debugger.
script profiler start
Start profiler.
script profiler stop
Stop profiler.
script watchdog exportstats
Export watchdog stats.

Arguments

[edit | edit source]

host: string: basic_string

Debugger's host
Must be a string. And it must be a single word that has no space or a double-quoted string (When quoted, \ can be used to escape characters).

port: int: int

Port of the debugger
Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ).

Result

[edit | edit source]
This section needs expansion.
 
You can help by expanding it.

Output

[edit | edit source]
This section needs expansion.
 
You can help by expanding it.

Example

[edit | edit source]
This section needs expansion.
 
You can help by expanding it.

History

[edit | edit source]
Bedrock Edition
1.19.0beta 1.19.0.30Added /script.
1.19.30Preview 1.19.30.22Added /script watchdog exportstats.

See also

[edit | edit source]
  • /scriptevent — a command that triggers a script event
[edit | edit source]
[edit | edit source]