跳到正文

CC: Bare Metal

作者:Ftiandr

▎ A CC: Tweaked addon: WebAssembly computers with a Unix-like OS and an in-game C/C++ compiler.

收藏

介绍

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

CC: Bare Metal

image

An addon for CC: Tweaked that adds WebAssembly computers.
Inside is a Unix-like system with a shell and about 175 commands, a real C/C++ compiler right in the game,
graphics and Linux-style devices. Programs run in a sandbox and on their own threads, so they don’t slow the server down.

⚠️ Alpha. Things may break; please report bugs on GitHub.

What it adds

  • WASM computer, turtle and pocket computer in amethyst. The turtle has
    CC’s turtle API, so CC turtle programs work as they are.
    Turtle and pocket upgrades go into slots: any upgrade from CC or its addon

  • Pixel monitor: shows graphics, builds walls up to 8×6 blocks,
    touch-sensitive. – Keyboard: link it to a computer and type from the world, in hand orplaced on a desk.- Unicode for CC’s own computers: Cyrillic and other scripts on computers,monitors and printouts.## Inside the computer

  • sh shell with pipelines, variables, loops and functions; sed, awk,
    grep, find, tar, diff and more; the edit editor; man pages; the
    pkg package manager.

  • C and C++ in the game: clang 22 with libc++. Write code, compile it a
    run it on the spot. – Users, passwords, sudo and file permissions, like on Linux. – Networking over CC modems: computers by name, services by port.

  • Graphics up to 1280×800 through /dev/fb0, input through /dev/input.

  • Drag files and folders from your desktop straight into the computer windo- CraftOS and Lua are still there: craftos, lua file.

Works with CC and its addons

  • Any peripheral from any mod, with no per-mod code.
  • rednet and gps compatible with Lua computers.
  • Internet (curl, wget) through CC’s own HTTP API and its server settings.

Requirements

  • Minecraft 1.21.1, NeoForge 21.1.249+
  • CC: Tweaked 1.120.0+
  • Needed on both the server and the client.

Links

  • Source and documentation: GitHub
  • License: MPL-2.0 (textures recoloured from CC: Tweaked are under the ComputerCraft Public License)

常见问题

CC: Bare Metal 支持哪些 Minecraft 版本?

CC: Bare Metal 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

CC: Bare Metal 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分