等待 Minecraft 連入
mc_await_connectionBlocks until the Minecraft game connects to the bridge, up to a specified timeout. Returns connected=false if the timeout expires, not an error. Use after prompting the user to run /connect.
Instructions
阻塞等待遊戲連上橋接,最多等 timeoutSeconds 秒。逾時不算錯誤,只是回報 connected=false。適合在請使用者輸入 /connect 之後呼叫。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeoutSeconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | Yes | ||
| connected | Yes | ||
| encrypted | Yes | ||
| listening | Yes | ||
| connectedAt | Yes | ||
| bufferedEvents | Yes | ||
| commandsIssued | Yes | ||
| connectCommand | Yes | ||
| connectionCount | Yes | ||
| savedStructures | Yes | 本次連線存過的結構;遊戲沒有列出結構的指令,所以只能由橋接自己記 | |
| subscribedEvents | Yes |