Hex Server is a utility mod for Hex Casting that allows for hexes to be cast remotely via http requests. The primary purpose for this is to allow programs like Hexagon to execute hexes ingame for testing purposes.
- Launch Minecraft with this mod installed and enter a world
- Send an http post request to the server on port 9000 to
*/hexPost
The request body must contain a key named$ curl -X POST localhost:9000/hexPost -d "SNBT={\"hexcasting:type\": \"hexcasting:list\", \"hexcasting:data\": ..."
SNBT
with the corresponding value being a list iota in SNBT format - When the request is received, the hex will be automatically cast by the player
- A response will be sent back with a string representation of the resultant stack from the cast
- Launch Minecraft with this mod and HexDebug installed and enter a world
- Start a debugging session in your IDE
- Send an http post request to the server on port 9000 to
*/hexDebug
The request body must contain a key named$ curl -X POST localhost:9000/hexDebug -d "SNBT={\"hexcasting:type\": \"hexcasting:list\", \"hexcasting:data\": ..."
SNBT
with the corresponding value being a list iota in SNBT format - A response will be sent back informing you that the hex has been received
- The hex will then be loaded by the debugger