Commands/script
Minecraft Wiki article. Categories: Minecraft_stubs, Stubs, Bedrock_Edition, Minecraft_Education, Articles_to_be_expanded, Commands
📌 Mirrored from Minecraft Wiki
This article is reproduced from Commands/script on the Minecraft Wiki. Mirrored from revision 3256453. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
On this page
This article is a stub.
This feature is exclusive to Bedrock Edition and Minecraft Education.
/script{
"title": "<code>/script</code>",
"rows": [
{
"field": "2",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) only<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Debugging options for GameTest Framework.
Syntax
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
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
This section needs expansion.
You can help by expanding it.
Output
This section needs expansion.
You can help by expanding it.
Example
This section needs expansion.
You can help by expanding it.
History
| Bedrock Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.19.0 | beta 1.19.0.30 | Added /script. | |||||
| 1.19.30 | Preview 1.19.30.22 | Added /script watchdog exportstats. | |||||
See also
/scriptevent— a command that triggers a script event
External links
- "
/scriptCommand" – Microsoft Learn, September 10, 2025.
Navigation
Sources
- Commands/script — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3256453.