← Назад к ресурсам

Create:WebCode

Create: Web Code adds a block-based network dataflow system to Minecraft, letting players assemble URLs, send HTTP GET requests, parse JSON responses, debug live data, and drive redstone with real web data.

Modrinth game-mechanics technology

Описание

# Create: Web Code Create: Web Code adds a block-based network dataflow system to Minecraft. It lets you build URL pipelines with in-game devices, send HTTP GET requests to web services you choose, parse returned data, debug live packet contents, and use the result to drive redstone. This mod is designed as a network peripheral system, not an in-game computer. Complex logic should live in your own external API or service, while Minecraft handles routing, filtering, debugging, and redstone interaction. ## Features - Build request URLs from in-game text variables - Send HTTP GET requests through an Upload Network Port - Receive responses through a paired Download Network Port - Extract JSON fields with Filters - Convert JSON values into redstone output with Evaluators - Inspect live pipeline data with Debug Screens - Cache, split, throttle, and gate data pipelines - Connect devices using a point-to-point Connector tool - Render connection lines only while holding the Connector ## Important network disclosure Create: Web Code can make HTTP or HTTPS GET requests from the Minecraft server to URLs assembled in-game by players. The mod does **not** provide a built-in remote service and does **not** send data to the developer by default. Requests are made only to URLs that players build and send through the in- game pipeline. Server owners should only allow this mod on servers where they are comfortable with players creating outbound web requests. ## Basic workflow A typical pipeline looks like this: ```text Text Source -> Encoder -> Upload Network Port Download Network Port -> Filter -> Evaluator -> Redstone ``` Example concept: 1. A Text Source outputs a variable such as machine = main. 2. An Encoder builds a URL like https://api.example.com/status?machine={machine}. 3. The Upload Network Port sends the HTTP GET request. 4. The paired Download Network Port outputs the response body. 5. A Filter extracts a JSON field. 6. An Evaluator compares the value and emits redstone. ## Devices - Text Source: outputs fixed text when triggered by redstone - Encoder: assembles strings and URLs from named variables - Upload Network Port: sends HTTP GET requests - Download Network Port: outputs response bodies from its paired upload port - Filter: extracts one top-level JSON field - Evaluator: compares a single JSON value and emits redstone - Cache: stores the latest packet and outputs it on redstone trigger - Splitter: copies one packet to multiple outputs - Throttle: rejects inputs during cooldown - Redstone Valve: allows data through only while powered - Debug Screen: displays recent incoming packets - Connector: installs, removes, and pairs data connections ## Requirements - Minecraft Forge - Installed on both client and server Create is optional/recommended for thematic gameplay, but this version does not require Create to run. ## Status This is an alpha release. Device behavior, UI, textures, and compatibility rules may still change before a stable release. ## License All Rights Reserved. This mod is not open source at this time. The distributed jar is provided for gameplay use only. Redistribution, modification, or reuse of code/assets is not permitted without permission.