Docs

Using Anvil.

Anvil stores CC:Tweaked programs and gets them onto computers in your world. Your Minecraft server must have the http API enabled and allow anvil.thultz.dev.

Install the anvil program

Run this once on each computer or turtle. It installs /anvil.lua and makes anvil work from any folder.

CraftOSshell
wget run https://anvil.thultz.dev/install

Commands

anvil get <id> [path]
Install a script. One file becomes <title>.lua; several files go in a folder.
anvil run <id> [args]
Download and run a script once without installing it.
anvil update [id]
Update every installed script (or one) to its latest version.
anvil list
Scripts installed on this computer.
anvil search <words>
Search the public library.
anvil info <id>
Title, author, version and link of a script.
anvil login <key>
Save an upload key from your dashboard so push works.
anvil push new <file|folder> [title]
Publish a file or folder as a new public script.
anvil push <id> <file|folder> [message]
Save a new version of one of your scripts.
anvil logout
Forget the upload key on this computer.

Raw file URLs

Every script works with plain wget, no anvil needed:

CraftOSshell
wget run https://anvil.thultz.dev/r/<id>          -- run the entry filewget https://anvil.thultz.dev/r/<id> miner.lua    -- save itwget https://anvil.thultz.dev/r/<id>/lib/util.lua -- any other filewget https://anvil.thultz.dev/r/<id>?v=3          -- a fixed version

The editor and computer

Run copies your files onto a real CraftOS computer running in your browser (Copy Cat, built from CC:Tweaked's own source) and reboots into the entry file (marked with a play icon). Click the screen to type into it. Stop sends Ctrl+T; the reset button gives you a fresh computer with an empty disk.

Monitor: pick a size (1x1 to 8x6 blocks) and side in the computer panel. It behaves like the in-game monitor of that size: peripheral.find("monitor"), setTextScale, and clicks arrive as monitor_touch.

Turtle: press Turtle to run your program on a simulated mining turtle, drawn in 3D as it works. It starts on the surface (y=64) facing north with 1000 fuel, coal, torches, cobblestone and planks, above a chest of coal, in a freshly generated world of dirt, stone, deepslate, ores and gravel. Most of the turtle API works; crafting, attacking and equipping don't. Modems and other peripherals are not emulated yet.

Limits

  • Up to 32 files and 512 KB per script. File paths use letters, digits, . - _ /.
  • Public scripts are listed and searchable. Unlisted ones work for anyone with the link. Private ones only for you and your upload keys.
  • Every save is a new version. Old versions stay available at ?v=.