比對兩個等大區域是否一致
mc_compare_regionsCheck if a student's build matches a reference by comparing two regions block by block, even across large areas. Use masked mode to ignore air and verify only required blocks are present.
Instructions
用一條指令比對整片區域,適合檢查學生蓋的東西跟參考範例是否相同。逐格比對在幾百格以上就會撞到 MCP host 逾時,這個不會。masked=true 會忽略來源區域裡的空氣,只檢查「該有的東西在不在」,不管周圍多了什麼;masked=false 則要求完全一致。兩個區域大小必須相同,destination 是目標區域的最小角。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | 來源區域的對角 | |
| begin | Yes | 來源區域的一角 | |
| masked | No | true 時忽略來源的空氣 | |
| destination | Yes | 目標區域的最小角 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| elapsedMs | Yes | ||
| identical | Yes | ||
| statusCode | Yes | ||
| commandLine | Yes | ||
| statusMessage | Yes |