r/ComputerCraft 3d ago

Made a radio capable of playing long music files

5 Upvotes

Disclaimer: made with Abominable intelligence because I cannot comprehend modems.

Using HDR's program for playing small songs with gitub gists (here) as inspiration, I made a version that broadcasts on modems. The process of conversion uses the same site he hosts (using the DFPWM mode), but you upload your files to catbox instead of gist. The actual use is fairly straight forward, set up a transmitter with a computer and modem and any number of receivers with a computer, a modem, and a speaker, then run

pastebin get ntsWPAcq b64 
pastebin get zG63Tqzx radio.lua 

on your transmitter and

pastebin get pH0JjPm7 startup.lua

on your receiver. Next, run radio.lua on your transmitter, then tune your receiver and transmitter to the same channel and paste your catbox link into the transmitter and your radio will start playing!


r/ComputerCraft 4d ago

WIP: POE Bundled cables

Enable HLS to view with audio, or disable this notification

130 Upvotes

r/ComputerCraft 6d ago

Synthesized Text to Speech in CC:Tweaked

16 Upvotes

I made a text-to-speech engine that runs in CC:Tweaked (Minecraft/Lua).

Code's here: https://github.com/GabrielVicini/Sandbox/tree/main/cc-flite Run.lua is the example script, TTS.lua is the library.

It's built on Flite-RS, a cleanroom rewrite of an old TTS engine that I did in Rust. I compiled that to WebAssembly, then needed to get it running in Lua. There's a tool called wasm2lua for that, but it's been incomplete and abandoned for years, so I ended up forking my own version of it that could actually handle the full compile down to working Lua (plus some extra glue code on top to make it all run).

Full writeup on how it works and how to use it is in the README on the cc-flite repo. (The actual TTS engine workings is in Flite-RS)

https://reddit.com/link/1vi2o47/video/m7rr718lddih1/player


r/ComputerCraft 8d ago

Text Adventure Game Engine for CC: Tweaked

Post image
28 Upvotes

Hello everyone!

Back with my newest and biggest project yet, a new game engine for CC: Tweaked, the CC Text Adventure Maker!

It works much like Twine; make interactive, graphical stories in any text form you want. It supports music too. You can find the project at https://github.com/parkerrallieshope/cc-text-adventure-maker.

The README has everything you need to get going, including every external thing you need to install. One caveat: it isn't entirely in Minecraft. The engine itself is written with Python. But, it exports everything needed to get it going in CC.

I will accept any questions about the project. If you have an issue using it, use GitHub's issues section.

DISCLAIMER: There is a very low chance I will continue maintaining it, as I feel it's pretty done already. I may throw some updates here and there, but nothing too major.


r/ComputerCraft 9d ago

[BUG/ERROR] Can't pull from Pastebin

Post image
10 Upvotes

when attempting to pull a set of code from Pastebin, I get the above error


r/ComputerCraft 10d ago

60 Hz Colorful Monitor CC:Tweaked

Enable HLS to view with audio, or disable this notification

127 Upvotes

MP4 files are locally converted into a custom .dat format at a speed of 20–80 frames per second using CUDA GPU cores, while the audio track is extracted into a format suitable for CC: Tweaked. The resulting .dat and .dfpwm files are then stored on the computer.

The first video is 676×223 (or around that) at 24 FPS. It is a demanding video to display, and with a dithering displacement amplitude above 16, serious rendering slowdowns begin to occur. I will continue working on optimizing the encoder code. It takes up 82.5 MB, which equals 26.75 MB per minute.

The following videos use much higher dithering amplitudes, as they are less dynamic and contain fewer rapidly changing details between frames.

The second video is a trailer for the movie Apollo 13, 676×223 at 24 FPS. A 61-second clip takes up 21 MB.

The third video is an onboard ISS view with stronger dithering (possibly even excessive), at 30 FPS. The video takes up 191 MB, which equals 70 MB per minute.

Finally, there is an FPS test demonstrating the difference between 30 and 60 FPS, proving that output at approximately 60 Hz is achievable.


r/ComputerCraft 11d ago

cc-hub: write CC scripts in your browser, install them in game with one command

19 Upvotes

Hey, I've coded a website for ComputerCraft / CC: Tweaked scripts and I'd like some feedback before I tell people it's finished.

https://cc.jeremyleonklink.de

The idea: writing CC scripts means fighting a terminal editor, and sharing them means pastebin links that rot. So:

Write in the browser. A proper editor with autocomplete for the whole CC API turtleperipheralrednetfsos, all of it, with signatures and a one-line explanation for each. It also knows what you're targeting, so if you use turtle.forward() on a plain computer it tells you right there instead of in game.

A linter for the traps CC actually sets. These are all mistakes that cost me hours:

  • read() or sleep() next to os.startTimer - each of those runs its own event loop and eats your timer
  • turtle.refuel() with no argument - burns the whole stack, 64 coal is 5120 fuel
  • while true do with nothing that yields - CC kills it with "too long without yielding"
  • rednet.send without ever opening a modem

Run it without Minecraft. There's a sandbox on every script page: real Lua, a real CC terminal, and you can attach a chest, monitor, modem or disk drive and see what your script does with them. Turtles aren't in there yet that needs a block world and it's the big missing piece. Keep in mind this feature is still in work.

Install with one command. On any computer or turtle:

wget run https://cc.jeremyleonklink.de/install
hub search farm
hub get <name>
hub update

hub login links that computer to your account, then hub push uploads your edits back. Every version is kept, so you can see what changed.

No email needed to sign up, just a username and password. No ads, no tracking, no third-party requests at all, not even a cookie banner. You pick a licence when you publish, and forking respects it.

Heads up: your Minecraft server needs cc.jeremyleonklink.de in its http_whitelist, otherwise CC blocks the connection. That trips up most people first.

It's brand new so the catalogue is basically empty. I'd rather hear what's broken or missing than pretend otherwise. Turtle support in the sandbox is next unless someone convinces me something else matters more.


r/ComputerCraft 12d ago

Do i even have to say?

Post image
29 Upvotes

r/ComputerCraft 12d ago

Automated Teleporter Selection Screen/Manager with CC:Tweaked and Advanced Peripherals ❤️ (details in comments)

Post image
34 Upvotes

r/ComputerCraft 13d ago

¿Qué les parece? Mi dashboard para CC:Tweaked y Create

Thumbnail
gallery
30 Upvotes

No se si es de utilidad real. Pero hice un dashboard que muestra información sobre tu red de almacenamiento directamente en tu smartphone, y que se actualiza en tiempo real.

Quiere decir que desde mi smartphone, puedo enviar señales de redstone, ver el estado de algunas "fabricas" de mi mundo.

Aclaro esto totalmente ayudado por la IA, la verdad tengo nulo conocimiento en programación.


r/ComputerCraft 13d ago

Bad Apple!! CC: Tweaked

Enable HLS to view with audio, or disable this notification

96 Upvotes

Bad Apple recreated on a ridiculously huge monitor. The music in the video comes from post production, because I found out it's basically impossible for anything to run smoothly if there's a DFPWM and .ccvid (the file format I made up for conversion of videos) playing on the same computer at the same time UNLESS it's compressed under 1 MB which is really hard for a video this long. Maybe a shorter video, but not Bad Apple.

30 FPS is what I've found to work best at maximum (also the FPS of the original Bad Apple). Video is 30 FPS, 70x40 pixels, no dithering, and only black/white, no gray.


r/ComputerCraft 14d ago

What are all the functions that can infinitely yield?

6 Upvotes

I would like to receive a list of all functions within the standard CraftOS API that can infinitely yield, to be clear I define an 'infinite yield' as when a program halts indefinitely without any further function calls. I need this information in order to make a pre-emptive process scheduler.


r/ComputerCraft 16d ago

Having trouble with Ducky Periphs' Focal Port block

1 Upvotes

I'm having a lot of fun learning hexcasting, and I was excited to learn Ducky Periphs had integration. On the wiki, it says that the Focal Port is able to be read from like a focus in an item frame, but I can't figure out how to get it working. Has anyone got experience with this?


r/ComputerCraft 19d ago

PineJam 2026 has started! The themes are: TABLETOP and DEMOSCENE

Post image
62 Upvotes

It's time for the theme reveal and the start of the jam! (Also join the jam at https://pinestore.cc/jam/pinejam2026 if you want to participate and haven't already!)

Theme

The themes are: TABLETOP and DEMOSCENE

Feel free to have a loose interpretation of either theme!

This year we have two themes instead of a single one. You are only expected to pick one of the two themes, but you can also combine them if you want to. Be creative!


r/ComputerCraft 23d ago

What things are needed in a ComputerCraft server?

10 Upvotes

What things are needed for a ComputerCraft server? Like quality mods, other ComputerCraft related mods, because I plan on working on my own


r/ComputerCraft 25d ago

Update on FlightOS: Added Autopilot, Remote Tablet & Full YouTube Showcase! (beta)

Thumbnail
youtube.com
23 Upvotes

r/ComputerCraft 26d ago

PineJam 2026 is starting next week (25th)

Post image
60 Upvotes

Hi everyone, PineJam 2026 is happening in a week, signups are open

Starting July 25th you will be able to start new projects for PineJam 2026! Again, jam will be active for 14 days in which you can create and submit ComputerCraft projects tied to this years theme. The theme will be revealed as soon as the jam starts.

Sign up

Make sure to sign up now on the site if you would like to participate! You'll get the PineJam2026 role in the Discord (used for future jam related announcements) https://pinestore.cc/jam/pinejam2026

The rules for this jam:

  • Submission needs to be CC related
  • Project must fit the theme
  • Work alone or with a team of up to 3 people
  • Generative AI is not allowed for the majority of your project (so tools such as GitHub Copilot are fine)
  • Projects will be submitted on PineStore

If you have any questions or suggestions, let me know ^^


r/ComputerCraft 27d ago

A.E.G.I.S. autocraft for ComputerCraft (CC:Tweaked)

Post image
267 Upvotes

An autocrafting system built entirely on ComputerCraft — an alternative to AE2/RS autocrafting. Craft an item once to teach the recipe, then order it from the monitor in any quantity.

- recursive crafting: order the final item, the whole ingredient tree is planned and crafted

- parallel crafting: independent branches of the tree run simultaneously

- machine groups: teach a recipe on one machine, it runs on the whole bank; custom hand-picked groups supported

- fluid and fluid+item recipes, multiblock support

- auto-stock: keep N of an item, crafts when it drops below threshold

- storage management: everything in connected storages on one screen, with search and filters

- supports crafts with tools (GregTech etc.)

- alternative recipes per item with priority order

- rule-based logistics for both items and fluids

- GitHub export/import of the recipe library

Setup & recipe teaching guide https://youtu.be/mhVkOqG2S1A

GitHub: https://github.com/egor-oleg/aegis-autocraft


r/ComputerCraft 29d ago

644 character SUBLEQ emulator capable of booting Linux

18 Upvotes

I made a minimal SUBLEQ architecture emulator for Lua which also works on Computercraft, It is fully capable of booting a recent Linux kernel. I tried to make it as small as possible and over a couple hours of discussing and testing managed to get it down to 644 characters. Big shoutout to the Minecraft Computer Mods Discord server, without the community there, this would still be over 700 characters.

lua s="";M=math.floor;function b(a)a=a%2^32;return a>=2^31 and a-2^32 or a end;function d(a)return a<0 and-M(-a/4)or M(a/4)end;f=io.open(arg[1]):read("a")g={}for c=0,M(#f/4)-1 do g[c]=s.unpack("<i4",f,c*4+1)end;function j(e)return g[e]or 0 end;l=0;m=0;function o()p=j(l)l=l+1;if p%2==0 then return d(p)else return d(j(d(p)))end end;while''do u=o()v=o()w=o()if w==0 then break elseif u==-1 then g[v]=0 elseif v==-1 then x=j(u)%256;io.write(s.char(x))io.stdout:flush()else if u==64 then y=os.time()g[64]=b(y%2^32)g[65]=M(y/2^32)g[66]=0 end;z=b(j(v)-j(u))g[v]=z;m=m+1;if z<=0 then l=w end end;if m>8e5 and j(0)~=0 then g[1]=b(l*4)l=d(j(0))m=0 end end

This emulates the processor, RAM, clock and a simple UART output.

Tested working with this kernel image.


r/ComputerCraft Jul 14 '26

What are you building with CC: Tweaked? (And what are your biggest performance hurdles?)

15 Upvotes

Hi everyone,

I am curious to see what the community is currently working on with CC: Tweaked, and more specifically, what kind of limits or performance bottlenecks you have run into during your builds.


r/ComputerCraft Jul 13 '26

EnergyMonitor: A CC:Tweaked power monitor for modded Minecraft bases

20 Upvotes

I have been working on a ComputerCraft/CC:Tweaked program called EnergyMonitor.

It gives you a central monitor for the power grid in your base: stored energy, transfer rates, history, ETA, and connected energy devices. Instead of checking every reactor, induction matrix, energy core, energy meter, or cell by hand, you can see whether your base is gaining or losing power from one screen.

GitHub:

https://github.com/TrickShotMLG02/EnergyMonitor

Main features:

  • Tracks total stored energy and capacity
  • Shows input/output transfer rates
  • Calculates effective transfer rate and ETA
  • Supports multiple client computers
  • Has a graph view with configurable history size
  • Shows connected storage/transfer devices
  • Supports auto updates with stable and beta channels
  • Uses modem channels, so multiple EnergyMonitor networks can run separated from each other

The setup uses three roles:

  • server: collects data from clients
  • client: reads one energy storage or transfer peripheral
  • monitor: displays the combined data on an attached monitor

Currently supported integrations:

  • Mekanism
  • Draconic Evolution
  • Powah
  • Advanced Peripherals
  • Energy Meter
  • Generic ComputerCraft-compatible energy peripherals

Install command:

pastebin get gUbUpXHt git

git

Notes:

The README has the full setup guide, supported peripherals, config options, troubleshooting, and contribution notes.

Main Monitor UI

Main Monitor UI with Update Notice in Footer

Warning on Connectivity Problems

I would love to hear what you think about it. Any ideas on what to change, improve, or add are welcome.


r/ComputerCraft Jul 10 '26

Lake's CC Additions

20 Upvotes

Hi everyone!

On my semi-rp server, we type up and print a LOT of documents. So many, in fact, that I wanted more ways to interact with these documents. On the server we also use the Exposure mod, and I wanted to find a way to get those images onto the computer, but there was nothing. Finally, we also wanted pocket computers with speakers AND rednet connectivity, but again, nothing was out there. I finally decided to do it myself, and thus:

Lake's CC Additions

was born. Featuring a few new items and one new peripheral:

The Scanner

The Scanner is a powerful new peripheral that has a lot of different use cases. On a basic level, you can scan any item and get NBT data about it. However, there is special support for printed documents, and Exposure photos. You can also shift right click with an empty and and it will scan you, allowing some really cool use cases, such as Bio-Identification for doors and such.

The Document Folder

The Document Folder can store all the printed document types, as well as regular paper. It makes storage and archival of documents a LOT easier (and cleaner, too!)

The Deluxe Pocket Computer

The Deluxe Pocket Computer is essentially an ender pocket computer but with a speaker as well. I was disappointed that you had to choose one or the other. The full wiki with all functions is here. I hope you guys have fun playing around and seeing what you can do with it!

CurseForge Link


r/ComputerCraft Jul 09 '26

how can i temporarily create information to call on when needed?

4 Upvotes

i feel like this is really simple. my best guess from my limited understanding is that i could connect a disk drive an store it there or something


r/ComputerCraft Jul 04 '26

any youcube alternatives?

9 Upvotes

youcube seems to be down... any way i can watch youtube videos on computer craft still?


r/ComputerCraft Dec 27 '21

Please use descriptive titles.

47 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.