Releases: Niels-NTG/gdmc_http_interface
Releases · Niels-NTG/gdmc_http_interface
GDMC-HTTP 0.7.0 (Minecraft 1.19.2)
Changelog:
PUT /blocks
endpoint can now accept a JSON-formatted request body as input using the request header"Content-Type": "application/json"
. The format is identical the response of theGET /blocks
with the"Accept": "application/json"
request header, with a few minor additional features:- For each placement instruction,
x
,y
andz
are optional. If omitted, it uses the coordinate set in the request's URL query as a fallback, or 0 if these aren't set. - For each placement instruction,
x
,y
andz
can be a integer ("x":32
) or use tilde ("x": "~32"
) or caret ("x": "^32"
) notation in a string. - Block state (
"state"
) and block entity data ("data"
) can be an JSON object, a single string or can be omitted all together. - When placing blocks with
PUT /blocks
, the "shapes" of directly adjacent blocks are updated, unless thedoBlockUpdates
flag is explicitly disabled. This means that placing a fence block directly adjacent to an existing block changes the shape of the fence such that it makes the appropriate connections.
- For each placement instruction,
- JSON response format of
PUT /blocks
has changed to a simple array of strings. - For
GET /chunks
, the binary format is now the default unless the"Accept"
header is set to"application/json"
or"text/plain"
. POST /structure
can now accept both GZIP-compressed and uncompressed NBT files.GET /structure
can now output GZIP-compressed (default) or uncompressed NBT files. The latter can be achieved by setting the request header"Accept-Encoding": "*"
./version
now returns a 405 is any other HTTP method besidesGET
is used.- Improvements to code readability.
- Minor improvements to performance.
GDMC-HTTP 0.6.5 (Minecraft 1.19.2)
Changelog:
- Add
GET /structure
endpoint, for generating an NBT-formatted file of an area of blocks in the world. - Add
POST /structure
endpoint, for placing an NBT-formatted file of a structure into the world.
GDMC-HTTP 0.6.4 (Minecraft 1.19.2)
Changelog:
- Enable
GET /chunks
to return a JSON-formatted response when the request headerAccept
is set toapplication/json
.
GDMC-HTTP 0.6.3 (Minecraft 1.19.2)
Changelog:
- Allow negative values for range coordinates in all endpoints that take the
dx
,dy
anddz
parameters.
GDMC-HTTP 0.6.2 (Minecraft 1.19.2)
Changelog:
- Fix plain text response for
GET /blocks
endpoint
GDMC-HTTP 0.6.1 (Minecraft 1.19.2)
Changelog:
- Add
GET /biomes
endpoint to request biome of a location in the world. - Minor performance enhancements.
GDMC-HTTP 0.6.0 (Minecraft 1.19.2)
Changelog:
GET /blocks
can return multiple blocks within a given area.- JSON response format of
GET /blocks
is now a JSON array instead of a single object. - Response of
GET /blocks
now always includes a block's position in front of its material. - Response of
GET /blocks
now can include tile entity data associated with a block (eg. contents of a chest). - Endpoint
OPTIONS /blocks
has been removed. PUT /blocks
can now also process block entity data (eg. chest contents, a book on a lectern, armor on an armor stand, etc.).- Upgrade to Forge 1.19.2-43-2.0.
- Some minor performance improvements.
GDMC-HTTP 0.5.3 (Minecraft 1.19.2)
Changelog:
- Implement parameter for specify target dimension (overworld, nether, end, etc.) for the
/blocks
,/command
and/chunks
endpoints. For examplePUT /blocks?dimension=nether
places blocks in the nether instead of the overworld. If parameter is omitted it defaults to the overworld. - Fix relative position placement for blocks with a
~<int>
position when placing blocks with thePUT /blocks
endpoint. - Implement
OPTIONS
method for the/blocks
endpoint.
GDMC-HTTP 0.5.1 (Minecraft 1.19.2)
Changelog:
- Add
GET /version
endpoint, to get the current Minecraft version
GDMC-HTTP 0.5.0 (Minecraft 1.19.2)
Changelog:
- Adds compatibility for Minecraft version 1.19.2