跳到正文

NetCraft (just a project view the GitHub)

作者:luilautre

A modular web browser and HTTP server for CC:Tweaked (Minecraft) featuring HTML rendering, a Rednet-based DNS, sandboxed Lua app execution, and a custom net:// navigation protocol.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

NetCraft is a fully modular web browser and HTTP server suite built for CC:Tweaked (ComputerCraft Tweaked) on Minecraft. It brings a complete client–server web experience to in-game computers: browse pages using the custom net:// protocol, render HTML directly on the terminal, execute dynamic Lua applications on the server side, and resolve friendly hostnames through a Rednet-powered DNS — all without manual ID configuration.

Highlights

  • 🌐 Custom net:// protocol — a clean request/response abstraction layer over Rednet for web-style navigation.
  • 🖥️ Terminal HTML engine — a DOM parser and renderer supporting headings, paragraphs, links, forms, images (NFP) and embedded Lua scripts.
  • 📡 Rednet-based DNS — automatic hostname resolution with caching and a local hosts file fallback.
  • 🔐 Sandboxed script execution — remote Lua scripts run in a restricted environment for safe client-side execution.
  • 🚀 Dynamic Lua apps — serve executable .lua applications with GET/POST support and automatic form-data parsing.
  • 💾 Quality-of-life features — persistent history, bookmarks, HTTP-style caching, and access/error logs.
  • 🛠️ Public developer API — a simple api.lua for building your own networked applications.

Whether you want to host a personal wiki, serve dynamic pages across your base network, or simply explore in-game web technologies, NetCraft provides a robust, fully commented and extensible foundation.

常见问题

NetCraft (just a project view the GitHub) 支持哪些 Minecraft 版本?

NetCraft (just a project view the GitHub) 支持 Minecraft Java 版 1.12.2–1.21.11,共 47 个版本。下载时注意选择和你游戏版本一致的文件。

NetCraft (just a project view the GitHub) 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分