/script
原文:Commands/script;源修订:3256453。
本命令不同于 /scriptevent。适用于基岩版和教育版,需要开启作弊,权限等级为 2。提供 GameTest 框架的调试选项。原文为小作品。
语法
| 语法 | 作用 |
|---|---|
script debugger close |
关闭调试器。 |
script debugger connect [host: string] [port: int] |
连接到调试器。 |
script debugger listen <port: int> |
监听调试器连接。 |
script profiler start |
启动性能分析器。 |
script profiler stop |
停止性能分析器。 |
script watchdog exportstats |
导出看门狗统计数据。 |
参数
host: string:调试器的主机,类型为基本字符串。
port: int:调试器的端口,类型为整数。
结果
原文尚待补充。
输出
原文尚待补充。
示例
原文尚待补充。
另见
/scriptevent:触发脚本事件的命令。
外部链接
Microsoft Learn:/script 命令(2025 年 9 月 10 日)。
来源为 Minecraft Wiki;本中文翻译/改编按 CC BY-NC-SA 3.0 共享。