Estimate block dig time
Diese Anleitung gibt es nur auf Englisch.
War diese Seite hilfreich?
Diese Anleitung gibt es nur auf Englisch.
War diese Seite hilfreich?
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringuuidbot_id*stringuuidapplication/jsonposition*A block position in a specific dimension. Coordinates are Minecraft block integers, not chunk-relative.
Successful response.
application/jsondiggable*booleaninstant*booleanticks*integerint640 <= value <= 4294967295durationMs*string^(0|[1-9][0-9]*)$progressPerTick*|correctToolForDrops*booleanblock*curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/world/block:estimateDigTime' \ -H 'Content-Type: application/json' \ -d '{ "position": { "x": 0, "y": 0, "z": 0 }}'{ "diggable": true, "instant": true, "ticks": 0, "durationMs": "string", "progressPerTick": 0.1, "correctToolForDrops": true, "block": { "position": { "x": 0, "y": 0, "z": 0, "dimension": "string" }, "blockId": "string", "properties": { "property1": "string", "property2": "string" }, "blockEntity": {}, "biomeId": "string", "skyLight": 0, "blockLight": 0, "hardness": 0.1, "diggable": true, "replaceable": true, "solid": true, "interactive": true, "effectiveToolTags": [ "string" ], "fluid": { "fluidId": "string", "source": true, "height": 0.1 }, "collisionShape": { "boxes": [ { "minimum": { "x": 0.1, "y": 0.1, "z": 0.1 }, "maximum": { "x": 0.1, "y": 0.1, "z": 0.1 } } ] }, "interactionShape": { "boxes": [ { "minimum": { "x": 0.1, "y": 0.1, "z": 0.1 }, "maximum": { "x": 0.1, "y": 0.1, "z": 0.1 } } ] }, "chunkRevision": "string" }}curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/world/block:estimateDigTime' \
-H 'Content-Type: application/json' \
-d '{
"position": {
"x": 0,
"y": 0,
"z": 0
}
}'{
"diggable": true,
"instant": true,
"ticks": 0,
"durationMs": "string",
"progressPerTick": 0.1,
"correctToolForDrops": true,
"block": {
"position": {
"x": 0,
"y": 0,
"z": 0,
"dimension": "string"
},
"blockId": "string",
"properties": {
"property1": "string",
"property2": "string"
},
"blockEntity": {},
"biomeId": "string",
"skyLight": 0,
"blockLight": 0,
"hardness": 0.1,
"diggable": true,
"replaceable": true,
"solid": true,
"interactive": true,
"effectiveToolTags": [
"string"
],
"fluid": {
"fluidId": "string",
"source": true,
"height": 0.1
},
"collisionShape": {
"boxes": [
{
"minimum": {
"x": 0.1,
"y": 0.1,
"z": 0.1
},
"maximum": {
"x": 0.1,
"y": 0.1,
"z": 0.1
}
}
]
},
"interactionShape": {
"boxes": [
{
"minimum": {
"x": 0.1,
"y": 0.1,
"z": 0.1
},
"maximum": {
"x": 0.1,
"y": 0.1,
"z": 0.1
}
}
]
},
"chunkRevision": "string"
}
}