Repository navigation
Releases
Releases · joernott/minecraft-c0de-net
c0de net 0.3.0
Answers to the questions of the recipes on c0de.at, for c0de 0.5.0.
- Error constants:
c0de_net/http/HTTP_STATUS,c0de_net/http/CLIENT_UNAVAILABLE,c0de_net/http/REQUESTS_DISABLED,c0de_net/http/REQUEST_FAILED,c0de_net/http/REQUEST_TIMEOUTandc0de_net/http/RESPONSE_TOO_LARGEhold the codes of the errors, so programs compareproblem.codewith a name instead of a number. They come withINCLUDE c0de_net/http. - Handbook: the endpoint is used as it is and not encoded; an endpoint with a space raises INVALID_ARGUMENT, and the handbook shows how to encode spaces. The examples build their JSON with TO_JSON of c0de/strings.
- CurseForge: c0de net is also published on CurseForge.
- c0de 0.5.0 or newer is required.
c0de net 0.2.0
Documentation and tests, for c0de 0.4.0.
- C0DE_NET_VERSION: a built-in constant with the version of c0de net, which every program can read.
- German: the handbook is translated into German, and the Patchouli book shows it in German when the game is set to German.
- Program runner:
c0de-net-runner-<version>.jar, attached to the GitHub release, brings c0de_net/http to the program runner of c0de, which runs programs without Minecraft. - c0de 0.4.0 or newer is required.
c0de net 0.1.0
The first alpha of c0de net, for c0de 0.3.0 on Minecraft 1.21.1, 1.21.11, 26.1.2, 26.2 and 26.3, each for Fabric and NeoForge.
- c0de_net/http: a new c0de library for HTTP requests.
INCLUDE c0de_net/httpand call HTTP_GET, HTTP_HEAD, HTTP_OPTIONS, HTTP_TRACE, HTTP_DELETE, HTTP_PATCH, HTTP_POST or HTTP_PUT. Every function returns the raw data of the answer, its status and its headers. - HTTP_CONNECTION: a struct with the server, port, base endpoint, basic authentication, HTTP proxy, headers, timeout and SSL settings, also for self-signed certificates.
- Requests on the client: the game of the player who runs the program sends the request, not the server: the player who pressed the button or flipped the lever, otherwise the owner of the trigger block. So programs reach what that player's computer reaches, like a home automation.
- Waiting: the CALL line waits for the answer while the server and other programs go on. Large answers are split for the network, up to 1 MiB by default.
- Errors: HTTP_STATUS (1000, with the answer still delivered), CLIENT_UNAVAILABLE (1001), REQUESTS_DISABLED (1002), REQUEST_FAILED (1003), REQUEST_TIMEOUT (1004) and RESPONSE_TOO_LARGE (1005).
- Settings:
config/c0de_net.propertieson the server (largest answer, requests per player) andconfig/c0de_net-client.propertiesfor every player (allowRequests). - Handbook: with Patchouli on Minecraft 1.21.1, a green book crafted from an INCLUDE block surrounded by eight strings.