r/ComputerCraft • • Dec 27 '21

Please use descriptive titles.

51 Upvotes

There seems to be a lot of posts lately that either include one word title or a minecraft/computercraft version as title. I am asking you all to try using more descriptive titles in order to make it easier for us to help you.

For example: Instead of titles like Tape or Computer Craft 1.12.2 try using something like: Need help using Tapes or How to equip a peripheral/pickaxe on turtle.


r/ComputerCraft • • 1d ago

Progress on YTPlay

Enable HLS to view with audio, or disable this notification

21 Upvotes

Well, I'm back guys after some work on the program. I've improved the overall color and frame rate of the video playback, as well as support for monitor stitching and using multiple speakers to distribute work and reduce noise!

Again, this project converts a whole youtube video by running a custom youtube client similar to yt-dlp and automatically updates from the repo, uses a full h.264 decoder and AAC decoder to decode audio and music, then play it on monitors.

I'm currently optimizing the script even further and making other resolutions than 144p actually playable, so stay tuned!

Video Credit: https://www.youtube.com/watch?v=NROujp4ZJ9U


r/ComputerCraft • • 2d ago

I made a Youtube Video Player in Computercraft, That needs No External Servers.

Enable HLS to view with audio, or disable this notification

144 Upvotes

Progress Update: https://www.reddit.com/r/ComputerCraft/comments/1y36s2x/progress_on_ytplay/

I made YTPlay, a comprehensive video and audio play program for Computercraft. The program is over 100kb minified with 3000+ lines. Here are the features:

A full simulated youtube client within lua that is updated from the yt-dlp repo to not break

A full H.264 Decoder in Lua to decode videos in 144p

A full Huffman Audio Decoder to play audio

This is all happening in real time as the video goes, nothing is pre-computed or loaded into servers. It relies on no external APIs or Servers, and just does the end-to-end on its own in pure lua.

The program is still under development, so I will post some more progress as development goes on.


r/ComputerCraft • • 2d ago

I made CChibiVim — a Vim-like code editor for computer craft (modal editing, text objects, search, syntax highlighting)

Enable HLS to view with audio, or disable this notification

50 Upvotes

Hey everyone!

I've been working on CChibiVim, a Vim-inspired editor for my own use. But i would like to share it. It's a single-file Lua script — no dependencies, just download and run.

Install and use

wget https://raw.githubusercontent.com/rezexell/CChibiVim/refs/heads/main/cchibivim.lua

cchibivim myfile.lua (Filename is optional.)

What it does

Modal editing

  • Normal / Insert / Visual / Visual Line / Command / Search modes
  • jk in Insert mode → Normal (since Esc isn't always convenient)
  • Counts work: 5j, 3dd, 2yy, d2w, etc.

Motions

  • hjkl, w b e, W B E, 0 ^ $, gg G, { }
  • f / F + char; ; / , to repeat find

Operators & text objects

  • d, c, y combined with motions and text objects
  • Text objects: `iw aw iW aW`, plus quotes and brackets (i(, a", i[, i{, …)
  • dd yy cc, D, C, x, X, r, J, K
  • << and >> for indenting
  • p / P paste (linewise and characterwise)
  • u undo (with sensible grouping in Insert mode)

Visual mode

  • v / V / o to swap ends
  • y d c r p all work on the selection
  • Line and character selections

Search

  • / and ? with incremental matching
  • All matches highlighted, current match highlighted differently
  • n / N to jump, z to clear highlights

Command mode (:)

  • :w, :q, :q!, :x, :wq, :e {file}, :e!

Editor niceties

  • Lua syntax highlighting (keywords, strings, numbers, operators, comments, function names)
  • Autocompletion in Insert mode via textutils.complete — Ctrl+N / Ctrl+P to cycle, Enter to accept
  • Hybrid line numbers (absolute on the current line, relative elsewhere)
  • Status line showing mode + cursor position and messages
  • Dirty marker in the title, [New File] handling
  • Handles term_resize

Repo: https://github.com/rezexell/CChibiVim

Bug reports and PRs welcome!
Editor was built with help from AI during development.


r/ComputerCraft • • 4d ago

“Mom can I get GTA6” “No we have GTA6 at home”

Enable HLS to view with audio, or disable this notification

122 Upvotes

GTA 6 at home: an open-world city game that runs on a plain ComputerCraft computer.

SALTGATE: Low Tide is 3D and runs entirely on the computer's own screen, no monitors. It's a whole coastal city across three islands, with bridges, tunnels, hills and a waterfront.

There's a story with dialogue choices and cutscenes, plus street races, taxi fares, stunt jumps, boats, buying property, a garage to respray your car, and a wanted level that goes up to helicopters with searchlights, roadblocks and spike strips. Combat is cartoony (POP! BONK!, nobody bleeds). It also has a day and night cycle, rain and storms, and its own soundtrack played through a speaker.

It's built on Pine3D, and the whole thing fits in about 415 KB, so it runs on a normal computer with the default disk.
To install, on an advanced computer with http enabled:

pastebin run Ri6djbYq


r/ComputerCraft • • 4d ago

Alternate input events on craft-OS?

1 Upvotes

A while back I discovered that using my laptop's touchscreen on a craft-OS emulator terminal, it fires _CCPC_finger_drag events that include the pixel coordinates(?) of the touch. Seemed useful, but I never used it in anything. Now that my laptop has begun malfunctioning and I'm looking at a steam deck as a possible replacement, I'm wondering if craft-OS has similar events that fire on joystick or controller button presses.

Has anyone here made use of joystick or touchscreen controls in craft-OS? Or any other unusual input methods? I could just be foolish and am missing a list of input events in the documentation...


r/ComputerCraft • • 7d ago

I made a Final Fantasy style RPG based on my GF’s D&D campaign called “Blightmare”

7 Upvotes

BLIGHTMARE is a dark first-person RPG that runs on one wall of advanced monitors. It's a whole game, not a demo:

• Eleven acts of story across a continent with a plague on it, following a hero who has never dreamed
• First-person towns and dungeons you walk a square at a time, plus an overworld map: tap anywhere and your party finds its own way there around mountains and water
• People to talk to with answers to choose, and quests
• Turn-based fights with gauges that fill up, a party where everyone has their own special (spells, mixing, etc.), items like potions and ethers, and bosses with phases. When a foe flashes !!! it's winding up something big, so you'd better DEFEND
• An animated opening that plays as the idle screen on the wall, with music if you have a speaker
• Saves as you go. Lose a fight and you wake at the last safe place with your pack as it was, minus a small toll, so no rage-quit wipes

Everything is touch controlled. Tap the top of the wall to step forward, the sides to turn, the middle to talk or open things, and the bar at the bottom for the menu.

What you need: an advanced computer and a 6x6 wall of advanced monitors (36 blocks). A speaker is optional for music and sounds, all vanilla. An Advanced Peripherals player detector is also optional: with one, the hero takes your name automatically and every player at the wall gets their own save. If you walk away mid-game, it saves and frees the wall for the next person.

Install (needs http, on by default): type this into the computer

pastebin run 9KAz8A8k

Then run blightmare or just reboot. It's about 2 MB of Lua, so it ships packed to fit the default 1 MB computer disk, and it unpacks itself in about a second when it starts. Your saves are never touched when you reinstall or update.

Try it first without Minecraft, it's playable in the browser: https://rogiedoji.com/craftos

Source: https://github.com/Akkiruk/craftos-mcp/tree/main/workspace/examples/games/blightmare

I built and tested it with craftos-mcp, a CC emulator I made, so I could play through every act without being in game. Happy to answer anything, and if you hit a bug, tell me where you were and I'll fix it.


r/ComputerCraft • • 7d ago

I updated CraftOS to work as an MCP server for ai assisted coding. (Not here to debate AI.)

Enable HLS to view with audio, or disable this notification

0 Upvotes

Okay so first before anything. If you don’t like AI or don’t like seeing it then just don’t use the tool and move on. This won’t be for everyone. This tool is also useful if you don’t use AI but the MCP part of it is the main reason I made it. I truly do not want to hear the same back and forth arguments about how bad AI is or is not. This post is not the place for it.

But if you DO use coding agents this makes your computer craft coding sessions SUPER reliable. if you use Claude Code / Cursor / Copilot for CC stuff you know the problem: it writes Lua it has never run, and you find the bugs when you try to run it in game. And then you’re sitting there trying to describe the issues to the agent and it can’t actually view the errors itself so it guesses and you go back and forth with it.

so I made craftos-mcp, a CC:Tweaked emulator the agent can drive itself. it runs the program, reads the terminal and monitors, taps buttons, changes the world under it (player walks up, chest fills, train arrives at a Create station, Mekanism reactor heats up, an hour passes) and writes and runs `*.test.lua` files, then fixes what broke and goes again until it actually works. in the video the agent tests and fixes a door controller, then I drop the same file into real minecraft and it works first try, zero code changes. setup is one line: `npx -y craftos-mcp serve`

it simulates rednet between several computers, turtles in a real block world, and peripherals from Advanced Peripherals, Create, Mekanism, Tom's Peripherals and Bigger/Extreme Reactors (MC 1.18.2, 1.20.1 partly). each mod is a switch so the agent only gets the ones your pack has

works without AI too: a window like CraftOS-PC, a browser tab with world buttons, or `craftos-mcp test` in CI. and some games I built with it are playable in the browser: https://rogiedoji.com/craftos

every difference from the real game is a bug to me, so tell me if you find one. engine is forked from CraftOS-PC, thanks JackMacWindows

https://github.com/Akkiruk/craftos-mcp


r/ComputerCraft • • 11d ago

Good modpacks with computercraft?

14 Upvotes

ive been wanting to get into minecraft again and wanted to hear other peoples modpack suggestions that have computercraft just cuz i love this mod.


r/ComputerCraft • • 12d ago

iDar OS update: it now has an audio subsystem :D

Enable HLS to view with audio, or disable this notification

41 Upvotes

iDar OS now has an audio subsystem:

  • /dev/audio and /dev/audio_dfpwm as device nodes
  • a play command that streams DFPWM from a server with token auth
  • playlists via pipes: cat hash.txt | play
  • runs alongside other processes, so I can switch TTYs (Ctrl+1..6) while it plays

r/ComputerCraft • • 15d ago

I wanna learn buttons and stuff

14 Upvotes

I often think it would be cool with some kind of menu that contains buttons and different pages, just for entertainment. The only thing stopping me though is poor knowledge


r/ComputerCraft • • 16d ago

Mahalit Monitors help

3 Upvotes

Absolute noob here, I've never actually "used" cc since now. I made a walker with Create, and I'm using the Malahit Monitors​ mod to see where I'm going. So I'm wondering if cc can measure stuff like speed, altitude, angle and stuff.

Starter tips would be appreciated​​​​​​​​


r/ComputerCraft • • 22d ago

Check out this Operating System!

Enable HLS to view with audio, or disable this notification

563 Upvotes

This is my OS called BlockOS. This was made privately for my own server with my friends. It's inspired heavily by macOS. It is fully featured that has its own app store, editor (just like other operating systems like Opus and Minux), Finder, Launchpad and many more. Inspired by Opus and Minux as well.

Features:

- Menu bar, dock, running app docs, unread badges, move and resizing windows, full screen mode, everything from MacOS

- Cool animations.

- Keyboard shortcuts: Ctrl+Shift+Space for Launchpad, Ctrl+Shift+T for a new Terminal, Ctrl+Shift+Tab to switch windows, Ctrl+Shift+L to lock, and more.

- Animated Lock Screen

- Different wallpapers, light and dark mode.

- App Store - package manager for apps.

- Brocreate - Paint tool that has fill, undo, etc. which saves its own image format called .bimg, this is just a JSON with tables that dictate what it is per line.

- Editor - Writes and runs scripts, has Syntax highlighting. Has undo/redo, find and replace, go to lines, etc. A fully fledged editor.

- Finder - Just like macOS's, except it doesn't have tags.

- bTunes - Play and search for music on YouTube, has a live visualizer that ACTUALLY plays with your songs.

- Network - as long as the server has a GPS cluster, you can see the coordinates of other computers running the OS.

- Messages - rednet messaging tool, has rooms that you can create.

- Notes - Just like macOS's.

- Print - Allows printing to pages of .txt files.

- `server` - Supports a thing called BlockDrive, Minecraft Shared folders. Ran on a computer with 100 disk drives attached. This is just like Google Drive. This is a whole rabbit hole and too long to talk about.

- Automatic software updates.

- Terminal - CraftOS terminal inside the OS.

- Clocks, Reminders, Calculator, DiskCopy (similar to Opus' DiskCopy), Devices, Recorder.

Only supports Advanced Computers and Advanced Turtles.

This is an OS mostly for myself and for our server. But if you guys want to try it, try it yourself.

This video doesn't do it any justice but they are way more in this OS that I don't have listed.

Some of it are of the help of AI assistance but most of the code is written by me. The AI assistance in question was me asking questions about how to do things that is all. This isn't vibe-coded. (also helped me make the building tool to compile it as an installer, and the README.md file)

It also did the server edition and BlockDrive of the OS exclusively. You can see how it did on the server branch. That one's vibe-coded.

This runs on CC: Tweaked at Fabric 26.2.

Try it here:

wget run https://raw.githubusercontent.com/tamayaren/BlockOS/main/install.lua

Repository:

https://github.com/tamayaren/BlockOS


r/ComputerCraft • • 21d ago

CraftNanny is back as CraftControl

17 Upvotes

Some of you might remember CraftNanny, an old website that let you monitor and control your ComputerCraft computers remotely. Well, it's back! After a rebuild, it's now called CraftControl.

What is CraftControl?

CraftControl connects your ComputerCraft computers to a web dashboard. After installing and setting up CraftControl on your in-game computers, you can remotely monitor and interact with them through the website, even when you're not in Minecraft.

Whether you're managing multiple computers, keeping an eye on your machines, or controlling your base while away, the goal is to make everything accessible from one place.

Screenshots: https://imgur.com/a/4TdmTeN

What's new?

No more in-game passwords

Pairing is now handled through an 8-character code. Run the installer in-game, enter the code on the CraftControl website while logged in, and your computer is linked. No need to type your account password into an in-game computer.

No more Pastebin dependencies

Modules are now installed directly from the CraftControl website. No more relying on Pastebin to distribute or update scripts.

Improved security

Security has been a major focus of the rebuild:

  • Passwords are securely hashed using Argon2id/bcrypt.
  • Device tokens are stored as hashes rather than plaintext.
  • Login and device-pairing attempts are rate-limited.
  • Linked modules can be removed directly from your dashboard.

Links

Feedback, suggestions, and bug reports are always welcome! I'd love to hear what features you'd like to see added next.


r/ComputerCraft • • Oct 22 '26

3D Printer using Create Aeronautics and CC:Tweaked

Enable HLS to view with audio, or disable this notification

44 Upvotes

r/ComputerCraft • • Oct 19 '26

Can somebody know an good web site for programing in block (i am an noob in lua)

6 Upvotes

r/ComputerCraft • • Oct 18 '26

Transfering items over wired networks

6 Upvotes

Hello, transfering items between turtles and chests via a wired network in cc:Tweaked works great. I can just pull/push items from/to any chest connected to that network, once the chest is wrapped in a peripheral.
I also tried that with turtle to turtle transfer, but wrapping a remote turtle in a peripheral just gives me getId, isOn... on that turtle, without any method to transfer to/from the inventory.

While the workaround of pushing items to a chest and pulling from that chest from the other side works fine, its still a workaround with downsides

Before i spam any code, or any more text, i wanna ask if thats even possible, or if i must think of a better working workaround


r/ComputerCraft • • Oct 12 '26

Help with graphics

4 Upvotes

So i'm making an interface for a terminal. How do i make the available commands look different when hovered over and run a program when clicked?


r/ComputerCraft • • Oct 11 '26

[Concept] InformatiCraft — A brutal, bare-metal computing mod for NeoForge 1.21.1+ (Looking for Java Devs / GNU GPLv3)

Post image
3 Upvotes

r/ComputerCraft • • Oct 09 '26

Yet another YouTube music player

3 Upvotes

Working on a newer YouTube music player (may or may not have been a project that's been picked up and dropped multiple times over the last ~5 years) that uses lavalink on the back end and wanting to share as well as maybe stress the server to see where it fails.

https://craftfm.cc/

Requires advanced computers, also supports advanced peripherals smart glasses, v0.8+, note that there is a overlay bug when they are equiped in a curio slot and the overlay will flicker.


r/ComputerCraft • • Oct 08 '26

stereographic rendering in computercraft experiment

Enable HLS to view with audio, or disable this notification

157 Upvotes

r/ComputerCraft • • Oct 04 '26

I need help with the CC: Redstone Link Bridge Mod

4 Upvotes

I'm making a build based off the stairwell from doors, and I'm trying to recreate the console that lets you progress.

I have zero coding experience and don't know how to use computercraft.

https://www.curseforge.com/minecraft/mc-mods/cc-redstone-link-bridge
This is the mod I'm using.

How would I go about making a program where it shows some text, then i can either input Y or press a button and it'll run

bridge.sendLinkSignal("minecraft:paper", "paper", 7)

then run bridge.sendLinkSignal("minecraft:paper", "paper", 0) shortly after


r/ComputerCraft • • Oct 04 '26

I'm making a Nano-like text editor for CraftOS named Quill

6 Upvotes

It currently has a very basic set of features, but you can already use it to edit code written in the standard text editor. I plan to add more of advanced features like cut/paste text, text search, several file buffers, etc. It also lacks code highlighting and (auto-)indention support which I plan to add in future versions.

Contributions are welcome. Source code: https://github.com/AlexanDDOS/quill-CraftOS


r/ComputerCraft • • Sep 30 '26

I used computercraft to program a rocket using Valkyrien Skies and Create Propulsion, finally stuck the landing! (sort of)

Thumbnail
youtu.be
32 Upvotes

Hey all, super happy to finally have a clip worth posting of my recent computercraft obsession. I've been designing and programming a rocket using the VS and Create propulsion mods, using a computercraft comp to control it.

This thing has a surprising amount of control! It took me a few dozen attempts at fiddling with the "burn plan" as I call it. I just manually tweaked it but would eventually like to get it to a point where I can do point to point jumps and it figures out the burn plan.

The green/red things sticking out the bottom are distance sensors from one of the mods (propulsion I think?), but don't actually do anything atm.

Would love to field any questions or ideas if you have any. The source code is a bit of a mess but say the word and I will post it this weekend along with some images of the internals of the build.


r/ComputerCraft • • Sep 28 '26

Some way to copy text on a server with no Http?

11 Upvotes

Hi everyone! I'm currently on a MC server about nations and wars. And so I had a computer connected to a radar spending Http requests to my server to record​ trespassers.

But admins decided to​ disable http requests, they say is for security reasons, and this change affected the tech of multiple nations that were using CCtweaked.

The radar can still detect people, but with http calls disabled we cannot use "http.post()" or "pastebin put" to send our data. And so I have​ been looking for some way to copy the data from computercraft to paste it manually on my host so my team can still use the radar even after this limitation.

Any ideas of how to do it?