Minecraft
生成指定范围的生物群系采样地图
GET
/minecraft/seed/map公开访问
x、z 为左上角附近的方块坐标,向下取整到 scale 倍数。biomes 按行排列。scale 为低分辨率生成层,y 向下取整至 4 的倍数。bounds 为世界范围内的有效显示区域,最大边界为不包含的坐标。 访问类别:匿名 API,可携带 Token 使用独立额度
请求参数
seedquery必填- 完整十进制字符串,范围 -9223372036854775808 至 9223372036854775807
- string · 完整十进制字符串,范围 -9223372036854775808 至 9223372036854775807
versionquery- string · 默认值:"1.21.4" · 可选:1.16.5、1.17.1、1.18.2、1.19.2、1.19.4、1.20.6、1.21.1、1.21.3、1.21.4
dimensionquery- string · 默认值:"overworld" · 可选:overworld、nether、end
largeBiomesquery- string · 默认值:"false" · 可选:true、false
xquery- integer / null · 默认值:0 · 最小值:-30000000 · 最大值:29999999
zquery- integer / null · 默认值:0 · 最小值:-30000000 · 最大值:29999999
yquery- integer / null · 默认值:64 · 最小值:-64 · 最大值:319
scalequery- string · 默认值:"16" · 可选:4、16、64、256
widthquery- integer · 默认值:96 · 最小值:1 · 最大值:128
heightquery- integer · 默认值:96 · 最小值:1 · 最大值:128
响应
200 Cubiomes 原版 Java 规则预测,缓存 3600 秒
application/json
{
"type": "object",
"properties": {
"seed": {
"type": "string",
"example": "262",
"description": "完整十进制字符串,范围 -9223372036854775808 至 9223372036854775807"
},
"version": {
"type": "string",
"enum": [
"1.16.5",
"1.17.1",
"1.18.2",
"1.19.2",
"1.19.4",
"1.20.6",
"1.21.1",
"1.21.3",
"1.21.4"
],
"default": "1.21.4"
},
"dimension": {
"type": "string",
"enum": [
"overworld",
"nether",
"end"
],
"default": "overworld"
},
"largeBiomes": {
"type": "string",
"enum": [
"true",
"false"
],
"default": "false"
},
"accuracy": {
"type": "string"
},
"origin": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"z"
]
},
"bounds": {
"type": "object",
"properties": {
"minX": {
"type": "number"
},
"minZ": {
"type": "number"
},
"maxX": {
"type": "number"
},
"maxZ": {
"type": "number"
}
},
"required": [
"minX",
"minZ",
"maxX",
"maxZ"
]
},
"y": {
"type": "number"
},
"scale": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"biomes": {
"type": "array",
"items": {
"type": "number"
}
},
"palette": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
}
},
"required": [
"id",
"name",
"color"
]
}
}
},
"required": [
"seed",
"accuracy",
"origin",
"bounds",
"y",
"scale",
"width",
"height",
"biomes",
"palette"
]
}400 请求校验或执行失败
application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}401 凭据无效、停用、过期或缺少所需 Token
application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}403 需要管理员 Token
application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}413 请求体过大
application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}415 请求内容类型无效
application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}422 请求校验或执行失败
application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}429 请求过于频繁,Retry-After 为建议等待秒数;匿名额度及认证保护在各 Cloudflare 地点近似计数,Token 业务额度使用 D1 原子计数
application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}500 内部执行失败
application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}响应示例
运行命令前,将环境变量 BASE_URL 设置为站点地址。
成功响应
curl --silent --show-error -H 'User-Agent: simpleWebUtils-example/1.1.0' -H 'Accept: application/json' "$BASE_URL"'/minecraft/seed/map?seed=262&version=1.21.4&dimension=overworld&largeBiomes=false&x=0&z=0&y=64&scale=16&width=96&height=96'
HTTP 200
content-type: application/json
content-encoding: gzip
cache-control: public, max-age=3600
{
"seed": "262",
"version": "1.21.4",
"dimension": "overworld",
"largeBiomes": "false",
"accuracy": "原版默认生成规则预测;结构已检查放置规则与生物群系,地形高度、洞穴及方块布局需要游戏验证。模组、数据包和跨版本生成区域可能产生差异。",
"origin": {
"x": 0,
"z": 0
},
"bounds": {
"minX": 0,
"minZ": 0,
"maxX": 1536,
"maxZ": 1536
},
"y": 64,
"scale": 16,
"width": 96,
"height": 96,
"biomes": [
14,
14,
14,
14,
14,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
30,
30,
26,
10,
10,
26,
26,
26,
26,
30,
30,
30,
30,
30,
30,
12,
12,
12,
26,
26,
11,
26,
26,
26,
26,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
12,
12,
12,
12,
12,
12,
14,
14,
14,
14,
14,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
30,
30,
10,
10,
10,
10,
26,
26,
30,
30,
30,
30,
30,
30,
30,
12,
10,
10,
26,
10,
26,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
12,
12,
12,
12,
12,
14,
14,
14,
14,
14,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
30,
30,
30,
30,
30,
30,
30,
30,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
12,
12,
12,
12,
12,
14,
14,
14,
14,
14,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
30,
30,
30,
30,
30,
30,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
12,
12,
12,
12,
12,
14,
14,
14,
14,
14,
50,
… 已截断,完整响应 75170 字符错误示例
curl --silent --show-error -H 'User-Agent: simpleWebUtils-example/1.1.0' -H 'Accept: application/json' "$BASE_URL"'/minecraft/seed/map?seed=invalid+value&version=1.21.4&dimension=overworld&largeBiomes=false&x=0&z=0&y=64&scale=16&width=96&height=96'
HTTP 400
content-type: application/json
content-encoding: gzip
cache-control: no-store
{
"error": {
"code": "INVALID_INPUT",
"message": "参数无效",
"issues": [
{
"location": "query",
"field": "seed",
"code": "custom",
"message": "种子必须为有符号 64 位十进制整数"
}
]
}
}在线调试
调用示例
curl -X GET 'https://oit.sh/minecraft/seed/map?seed=262'
响应
等待发送请求
配置上方请求参数后点击「发送请求」查看实时响应
快捷键:Ctrl / ⌘ + Enter