Create: Web Code
Create: Web Code 为 Minecraft 添加了一个基于模块的网络数据流系统。它允许你使用游戏内设备构建 URL 管道,向你选择的网络服务发送 HTTP GET 请求,解析返回的数据,调试实时数据包内容,并将结果用于驱动红石。
本模组被设计为一个网络外围系统,而非游戏内计算机。复杂的逻辑应置于你自己的外部 API 或服务中,而 Minecraft 负责路由、过滤、调试和红石交互。
功能
- 从游戏内的文本变量构建请求 URL
- 通过上传网络端口发送 HTTP GET 请求
- 通过配对的下载网络端口接收响应
- 使用过滤器提取 JSON 字段
- 使用评估器将 JSON 值转换为红石输出
- 使用调试屏幕检查实时管道数据
- 缓存、拆分、节流和门控数据管道
- 使用点对点连接器工具连接设备
- 仅在手持连接器时渲染连接线
重要网络披露
Create: Web Code 可以从 Minecraft 服务器向由玩家在客户端组装的 URL 发起 HTTP 或 HTTPS GET 请求。
该模组不提供内置的远程服务,也默认不向开发者发送数据。请求仅针对玩家通过游戏内管道构建并发送的 URL 发起。
服务器管理员仅应在允许玩家创建出站 Web 请求的服务器上安装此模组。
基本工作流程
典型的管道如下所示:
文本源 -> 编码器 -> 上传网络端口
下载网络端口 -> 过滤器 -> 评估器 -> 红石
示例概念:
- 文本源在触发时输出一个变量,例如
machine = main。
- 编码器构建类似
https://api.example.com/status?machine={machine} 的 URL。
- 上传网络端口发送 HTTP GET 请求。
- 配对的下载网络端口输出响应体。
- 过滤器提取一个 JSON 字段。
- 评估器比较该值并发出红石信号。
设备
- 文本源:在红石触发时输出固定文本
- 编码器:根据命名变量组装字符串和 URL
- 上传网络端口:发送 HTTP GET 请求
- 下载网络端口:从其配对的上传端口输出响应体
- 过滤器:提取一个顶级 JSON 字段
- 评估器:比较单个 JSON 值并发出红石信号
- 缓存:存储最新的数据包并在红石触发时输出
- 拆分器:将一个数据包复制到多个输出端
- 节流器:在冷却期间拒绝输入
- 红stone 阀门:仅在通电时允许数据通过
- 调试屏幕:显示最近的传入数据包
- 连接器:安装、移除和配对数据连接
要求
- Minecraft Forge
- 需安装在客户端和服务端
Create 是可选/推荐用于主题游戏体验的,但此版本无需安装 Create 即可运行。
状态
这是一个 Alpha 版本。在稳定发布之前,设备行为、用户界面、纹理和兼容性规则仍可能发生变化。
许可证
保留所有权利。
该模组目前不是开源软件。分发的 jar 文件仅供游戏用途。未经明确许可,禁止重新分发、修改或重用代码/资产。
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 Source -> Encoder -> Upload Network Port
Download Network Port -> Filter -> Evaluator -> Redstone
Example concept:
- A Text Source outputs a variable such as machine = main.
- An Encoder builds a URL like {machine}.
- The Upload Network Port sends the HTTP GET request.
- The paired Download Network Port outputs the response body.
- A Filter extracts a JSON field.
- 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧