r/ComputerCraft • u/classified39 • Sep 28 '21
r/ComputerCraft • u/Existing-Strength-21 • Sep 30 '26
I used computercraft to program a rocket using Valkyrien Skies and Create Propulsion, finally stuck the landing! (sort of)
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 • u/Vivid_Radish6173 • May 16 '26
Big screen
how do i make a big screen? i'm pretty new to this mod
any help?
r/ComputerCraft • u/Chambior • Apr 04 '26
Midi Player Using Create and ComputerCraft
I've been working on a system to play MIDI files on Minecraft using the multiple noteblocks, as well as the numerous organs from the Create: Sound of Steam mod. Here's a first showcase with Tal Tal Heights from The Legend of Zelda - Link's Awakening !
That's probably the best version of this song you can listen to in Minecraft as of now. As far as I know I'm the first one to stretch the Sounds of Steam mod this far, and I'm very happy with the result !
I took a lot of time to ensure the systems used would be reliable enough to play approximately anything (as long as it's not too fast, I'm still limited by Minecraft's tickrate), so I'll without a doubt make more in the future. What song should I do next ?
I used the mods Create: Sounds of Steam, Create, Expanded Steam Whistles, Advanced Peripherals and CC: Tweaked. I make my MIDI files using Musescore 3 and I made a custom instrument.xml file to get all the Minecraft instrument directly in Musescore, that helped a lot !
Enjoy !
r/ComputerCraft • u/9551-eletronics • Jul 05 '21
computercraft vitual reality
hi.this is a prototype of thing ive been working on for like 15 hours so far :P im trying to build a platform where people can make their own VR games and run them on a VR setup that i designed.
shis setup requires like 5 programs to be running at the same time so i will not be releasing code for now. once this platform is usable i will make a turtorial how to build the VR setup
this is a short demo i made

and this is a video showcase
r/ComputerCraft • u/SamirG569 • Jan 26 '26
To anyone who wants it, a tutorial to making buttons/a gui in Computercraft without having to download 30 external apis and watch 80 tutorials on youtube just to find nothing what u need
it isnt high quality i just coded tbh so have fun! (day 1 of making computercraft reddit active again)
r/ComputerCraft • u/Xella37 • Jun 25 '25
PineJam2025 for CC is starting soon! Signups open
Hi everyone, it is again time for another edition of PineJam!
Starting **July 17th** you will be able to submit new projects for PineJam 2025! Just like previous years the jam will be active for **14 days** in which you can create and submit ComputerCraft projects tied to this years theme. The theme will as always be announced at the start of the jam. The submissions will be judged on: creativity, design, appeal and theme.
Sign up
Make sure to **sign up now** on the site if you would like to participate! You'll get the PineJam2025 role in the PineStore Discord (used for future jam related announcements)
https://pinestore.cc/jam/pinejam2025
Join Discord
To follow along with future jam announcements, you may join the PineStore Discord:
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
See you at the jam! :D
r/ComputerCraft • u/IJustAteABaguette • Aug 22 '24
I made a lil graph (using plethora) for this furnace stack!
r/ComputerCraft • u/NyoriE01 • Jul 25 '22
Basalt Update
Hello guys!
Basalt got, since the last time i posted here, tons of new updates/fixes and features.
If you don't know what Basalt is, check this post out: Basalt UI Framework
Basalt is now able to create very easy and beautiful animations, you are able to change text, colors, position, size or offset (or create your custom animation). You can use some basic easing functions for the animation calculation (easeIn, easeOut, easeInOut).
Dynamic Values is a new feature to change, for example, the size of your object based on its parent size: "button:setSize("math.floor(parent.w * 0.8)", 3) <- would work.You are also able to change the position, here is a example for that: button2:setPosition("button1.w + button1.x + 2", "button1.y")
Textfields can now use keywords and patterns to change the text/bg color in specific situations.
I also made new objects, you can use: Menubar, Progressbar, Switch, Pane, Image and Graphic.
You can also use different anchors for your objects (default is topLeft): topLeft, top, topRight, left, center, right, bottomLeft, bottom, bottomRight, for example, if you use center, your object will always be centered on its parent (frame).
The old version of basalt didn't really support monitors. Now you are able to display your frame on a monitor instead of the computer's terminal (baseFrame:setMonitor(side)). Another feature is to mirror the computer terminal instead (baseFrame:setMirror(side)).
There are also a lot of smaller features & bugfixes (shadows, borders, shedule,...)
One of the biggest feature is XML support. You are now able to add your design via XML (if you want to). It could look like that: basaltPreview2.xml - but maybe it shouldn't look like that (i am sometimes lazy!). You are also able to do it in multiple files, because you always load the xml layout into a frame. You would use baseframe:addLayout(path) subframe:addLayout(anotherPath). It always starts to create the layout based on the frame where you are using the command. You could also do that via xml: <frame layout="yourpath.xml" />
Questions? Just ask!
Examples:
basaltPreview2.lua
basaltPreview2.xml
DiscordCC (lua only, beta)
Links:
Documentation: https://basalt.madefor.cc/#/
Github: https://github.com/Pyroxenium/Basalt
Discord: https://discord.gg/yM7kndJdJJ


r/ComputerCraft • u/HecateWhenIDoubt • Sep 23 '26
Problem With Tree Farm Program Found Online, I Don't Know Code
As I said above, I don't know any code, but I still am trying to use the mod by using other people's programs. I am following the tutorial here: https://github.com/PPakalns/TreeFarm , but I ran into an issue when I was supposed to answer the program's questions. I can't type anything besides numbers, which means I can't put a negative for the Minecraft coordinates and I also can't seem to enter the value I put by pressing Enter. I pressed every button on the keyboard. Are old programs not compatible anymore or is this a user error?
r/ComputerCraft • u/imachug • May 27 '26
Audio tips & tricks: performance, quality, volume, hearing range shenanigans
Some pieces of knowledge I've acquired about audio in CC over the time.
Playback performance & quality
The textbook algorithm for playing DFPWM audio is something like this:
local dfpwm = require("cc.audio.dfpwm")
local speaker = peripheral.find("speaker")
local decoder = dfpwm.make_decoder()
for chunk in io.lines("data/example.dfpwm", 16 * 1024) do
local buffer = decoder(chunk)
while not speaker.playAudio(buffer) do
os.pullEvent("speaker_audio_empty")
end
endcc.audio.dfpwm is implemented in Lua, so it can be quite slow, and you may have trouble keeping up if you're playing multiple streams at the same time (say, if you have a stereo system) or on slow hardware. But there's an easy fix.
speaker.playAudio doesn't directly play the PCM samples: CC encodes the data into DFPWM on the server and then decodes it on the client, so this snippet actually has a double conversion: DFPWM-to-raw-PCM in Lua and then raw-PCM-to-DFPWM in Java. We can abuse this: instead of decoding DFPWM in Lua, we'll just send something that encodes to the correct DFPWM stream.
The simplest way to achieve this is to translate 0 bits to -128 and 1 bits to 127:
function fake_decode(input)
local output = {}
for i = 1, #input do
local input_byte = input:byte(i)
for j = 0, 7 do
local value
if bit32.rshift(input_byte, j) % 2 == 1 then
value = 127
else
value = -128
end
table.insert(output, value)
end
end
return output
endYou can optimize this further if you need to, but this should already be much faster than a real DFPWM decoder.
A surprising fact is that this decoder actually produces sound of better quality than a real decoder. This is because decoding and re-encoding DFPWM is not a no-op due to its weird design: the DFPWM decoder automatically applies a low-pass filter at the end, introducing asymmetry with the encoder. This can cause audio to sound a little more muffled than it could be, since it unnecessarily corrupts high frequencies.
Note that this optimization doesn't work on the Web version of ComputerCraft, which doesn't reencode audio to DFPWM due to performance issues. It might also not work on emulators that support high-quality playAudio, if they exist; I'm not sure.
Volume
speaker.playAudio takes a volume parameter, from 0.0 to 3.0. There's two interesting things to talk about here.
The obvious one is quality. The rule of thumb for maximizing quality is: before encoding to DFPWM, increase the volume of the audio as much as possible without clipping; then decrease volume as necessary with volume. So, for example, if you want to play a quiet sound, encode it to DFPWM as loud and then set a small volume. This works because volume applies after DFPWM decoding-encoding, and thus doesn't introduce noise.
The more confusing one is attenuation, i.e. how effective volume changes with distance from the speaker. By default, Minecraft audio volume behaves as follows:
If the distance between the audio source and the listener is 0, the sound plays at full volume.
At a 16 block distance, the sound is completely silent.
Between these two distances, volume is interpolated linearly.
(Specifically, the exact coordinates of the audio source are one of: the center of the speaker block; the center of the turtle holding the speaker; the eye level of the player holding a pocket computer with a speaker. The coordinates of the listener match the coordinates of the camera, so you can get different volume depending on the active perspective.)
If volume is below 1, the PCM samples are simply multiplied by volume. So, for example, a turtle holding two speakers, each playing the same sound at 0.5 volume in sync, behaves exactly like a speaker at 1.0 volume.
If the volume is above 1, however, something else happens in addition to multiplication: the hearing range is also multiplied by volume. So at volume = 2.0, you get the 2x volume at 0 distance, no sound at a 32 block distance, and linear interpolation between the two extremes. So a speaker at 2x volume differs from a turtle playing a sound at 1x volume twice: the former can still be heard at 24 blocks distance, while the latter is silent, even though they sound the same close up.
However, this doesn't take into account volume clamping. Minecraft clamps the product (volume parameter) * (volume for jukeboxes in settings) to 1, so if your jukebox sound is at 100%, volume > 1 affects only hearing range, but not volume at close up. (Clamping occurs before distance attenuation.)
The full formula for effective volume at a given point is:
gain = clamp(volume_param * jukebox_volume, 0, 1) * (1 - distance / (max(volume_param, 1) * 16))There's an interesting use case for this. Take an audio file A. Invert its phase and save the result as B. Now have a turtle play back A at 1x volume and B at 2x volume in sync. At 100% jukebox volume, the only difference between the two is hearing range, so close up, the singals will cancel out almost perfectly (modulo noise). Slightly farther away, the effective volume of A will decrease quicker than B, and so the sound will become audible. At 16 blocks away, A will completely disappear and you'll perfectly hear B at 1x volume. Move further away, and B gets quieter. This sound is loudest not at its source, but exactly 16 blocks away from source! Pranksters and map makers might have a field day with this. I've prototyped this in my repo, feel free to consult or copy the code.
r/ComputerCraft • u/No_Point_1254 • Feb 11 '26
Better turtles (pure lua)
Hello folks, I recently created an enhancement for working with turtles and thought I'd share it here.
It stays very closely aligned to the original turtle api, but is both easier to use and more powerful.
It's called cc-robot.
_
This might be for you if:
- you want to equip more than two tools at once
- you want an easier way to manage a turtle's inventory
- you want to track the (relative) position of a turtle
- you want specific peripherals to do stuff they don't do out of the box
- you don't want to install extra mods (cc-robot is pure lua)
_
Main features:
- equip any number of tools at once (up to 18)
- manage the inventory by item names instead of slots
- always know the (relative) position and facing of your turtle
- wrap your peripherals however you like
- pure lua, this is not a minecraft mod
_
I hope this is of use for some, as it was fun for me to implement.
Feel free to report any bugs!
Feedback welcome!
r/ComputerCraft • u/monkeymanboyperson • Nov 25 '25
CCSharp - Write ComputerCraft programs in C#
r/ComputerCraft • u/Cyberlong_ • Aug 03 '24
Anyone knows why is this happening? (Monitors aren't rendering)
r/ComputerCraft • u/TheBunnyMan123 • May 31 '24
I'm making an OS, and it will eventually not rely on any CraftOS APIs (wherever possible)
r/ComputerCraft • u/mas-issneun • Dec 30 '23
I created a very simple "forwarder" using modems, hopefully soon I'll make a real router :)
r/ComputerCraft • u/kitomas • May 29 '21
I covered corridors of time with my own music creation program
r/ComputerCraft • u/SoggyInterest8576 • Aug 05 '26
Text Adventure Game Engine for CC: Tweaked
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 • u/JackMacWindowsLinux • Jan 17 '26
Second Reality Demo in ComputerCraft (Preview)
This is a recreation of the Second Reality demo by Future Crew, written in 100% Lua using mostly my own code. This is running in CraftOS-PC Accelerated for enough performance to run at 1080p60, but it uses no special features and can run in-game too - I just need to optimize it a bunch to make it smooth.
A preliminary binary is available here. No source yet, as I still need to implement the intro and outro sequences, which both use special 3D scenes that I need to figure out how to decode; plus lots of optimization and cleanup is necessary to make it fast.
Thanks to u/Xella37 for Pine3D and u/9551-eletronics for pixelbox, which were both indispensable in making this possible. Also check out my Taskmaster and tracc libraries, which power the underlying runtime.
r/ComputerCraft • u/TinyNS • May 10 '25
2 Person Survival GPS System

If you remember: https://www.reddit.com/r/ComputerCraft/comments/1k71k9x/reestablish_survival_server/
That System was actually extremely clunky in it's rendering, and especially how it sent and received data was VERY bad, needed a fix up.
With the use of program state variables and heavily optimized rednet and render functions.......I was able to make a second generation live GPS tracker for 2 people in survival. Now Standalone!
The main machine in the middle gathers the time and moonphase from a dedicated clock, server (now utilizing rednet.broadcast) instead of directly having to send the time to each computer, it also gathers the Origin Point and Active Point of both ReFoo's and measures distance and altitude differences between both.
It checks whether or not the GPS Antenna is sending coordinates properly or sending arbitrary values, or nil values (meaning it isn't on at all).
It is able to independently update the stats of either ReFoo regardless of if one is offline (A problem I previously didn't know how to solve)
The ReFoo's (Pocket Computers) gather the time and moonphase from the dedicated clock server aswell, HOWEVER if for some reason the program is loaded onto a machine without a modem (or the modem is out of range), it will fail safe to AM/PM time supplemented from it's own OS. (Picture Below)

All of the code ran is completely conditional, if any one of the machines needed to gather information goes offline, the computer will simply say it is Unavailable.
It can maintain a pretty quick refresh rate on the ReFoo's this way and there stream of data is very stable to the main PC.
This is a picture of what happens when everything is offline (It is an older pic and doesn't have the bottom tab, the top-most picture is what the final result looks like)
[[[Two color mode: The Main PC will display in yellow with red text ONLY if ReFoo1 is offline, this is because ReFoo1 is meant to be given to the person you want to be tracked, thus is more important. Technically both ReFoo's are tracked the same and give the same data, use them interchangably.
ReFoo2 is less important as it is meant to be your personal one, and will not trigger the yellow screen mode, it will stay blue/white.]]]

If you guys would like this system for personal use I made a backup_disk in-game that I can upload to pastebin later.
Everything rednet related uses rednet.broadcast(some_protocol,"hostname"), nothing is tied under a ComputerID so it can be loaded on any machine and begin receiving/broadcasting
the ReFoo's broadcast under protocol ("refoos","refoo1"), and ("refoos","refoo2")
so it can be loaded on any world/server as long as you have a GPS antenna setup, and the clock server can be setup with Advanced Peripherals to get the MoonPhase (programmed it to require this, it will not start otherwise)
This system completely gets rid of the need to display coordinates through in-game means, instead you can do it this way and not feel like you're cheating.
