-
Notifications
You must be signed in to change notification settings - Fork 0
JSON Responses
Tyler Bucher edited this page Oct 3, 2019
·
5 revisions
Raw unedited responses page.
Init Command.
{
"cmd": "init",
"data": {
"commandInterval": 1000, // <long> time in milliseconds before this command should be allowed to be run again.
"serverName": "test server", // <string> the name of the server to send to the web map.
"cacheLifetime": 6000, // <long> the amount of time in milliseconds which a chunk can live in the cache. (1 second = 1000 milliseconds)
"states": ["minecraft:redstone_wire[east=up,north=up,power=13,south=up,west=side]"], // <string[]> the list of states for the game.
"biomes": [
{
"id": "minecraft:swampland", // <string> the unique identifier of this biome.
"name": "Swampland", // <string> the human-readable name of this biome.
"humidity": 0.8999999761581421, // <double> the humidity of this biome.
"temperature": 0.800000011920929, // <double> the temperature of this biome.
}...
]
}
}
{
"error": "Internal error"
}
SetClientUUid
{
"error": "Incomplete request"
}
{
"cmd": "kick",
"data": {
"message": "Invalid map id specified."
}
}
GetServers
{
"cmd": "getServers",
"data": {
"commandInterval": 1000, // <long> time in milliseconds before this command should be allowed to be run again.
"servers": ["<ip/url>:<port>"], // <string[]> the list of server to network together.
}
}
{
"error": "Internal error"
}
GetWorlds
{
"cmd": "getWorlds",
"data": {
"commandInterval": 30000, // <long> time in milliseconds before this command should be allowed to be run again.
"worlds": [
{
"id": "7e196618-58e5-43da-a2e1-9a317990fc6f", // <string> the unique identifier of this biome.
"name": "Sponge Default", // <string> the human-readable name of this biome.
"spawnPoint": {
"x": -204,
"y": 64,
"z": 35,
},
"worldBorder": {
"center:" {
"x": -204,
"y": 64,
"z": 35,
},
"diameter": 60000000
}
}
]
}
}
{
"error": "Internal error"
}
GetPlayers
{
"cmd": "getPlayers",
"data": {
"commandInterval": 30000, // <long> time in milliseconds before this command should be allowed to be run again.
"worldId": "7e196618-58e5-43da-a2e1-9a317990fc6f",
"players": [
{
"id": "ae188578-58e5-43da-a2e1-9a317990fc6f", // <string> the unique identifier of this biome.
"name": "agent6262", // <string> the human-readable name of this biome.
"position": {
"x": -204,
"y": 64,
"z": 35,
}
}
]
}
}
{
"error": "Internal error | Unknown world | Incomplete request"
}
GetChunksForPosition
{
"cmd": "getChunkForPosition",
"data": {
"commandInterval": 30000, // <long> time in milliseconds before this command should be allowed to be run again.
"worldId": "7e196618-58e5-43da-a2e1-9a317990fc6f",
"chunkType": "two_dimensional_gzip",
"chunks": [
{
"chunkData": "ae188578-58e5-43da-a2e1-9a317990fc6f", // <string> the unique identifier of this biome.
"chunkBiomeData": "agent6262", // <string> the human-readable name of this biome.
"chunkIndexData": "agent6262", // <string> the human-readable name of this biome.
"generationTime": "agent6262", // <string> the human-readable name of this biome.
"position": {
"x": -2,
"y": 0,
"z": 1,
}
}
]
}
}
{
"error": "Invalid world | Incomplete request | Illegal Argument 'chunkType'"
}