r/ComputerCraft • u/Fit-Negotiation4506 • Jun 19 '26
r/ComputerCraft • u/Tweneap • Jun 19 '26
I 3D printed the Turtle :D
https://makerworld.com/en/models/2951197-turtle-from-computercraft#profileId-3306699 <- if you wanna print one yourself
Couldn't find a model online (or I'm just terrible at searching) so I made one myself. :D
r/ComputerCraft • u/Mission-Thought-7954 • Jun 18 '26
how to factory reset a computer ?
so i am dumb and i put a script in /startup with os.reboot() and now i cant stop this script from rebooting in loop.
do any one know how i can factory reset or fix that ?
thanks in advance.
r/ComputerCraft
•
u/MinkiTheAvali
•
Jun 17 '26
ClassiCube for ComputerCraft PUBLIC BETA RELEASE
It has been a hot minute but I finally have this project in a state where I feel comfortable sharing my first public version. It works well with both Vanilla and enhanced ClassiCube servers. Custom servers that make heavy use of extra models and textures however do not work correctly as of now, custom blocks are broken to a point of unplayable with MCGalaxy server software which is why they are default disabled for now. The client uses textures I made in GIMP and public domain music.
You can download the beta version here for now. A Codeberg repository is coming soon.
Please report bugs encountered during vanilla gameplay back to me!
r/ComputerCraft • u/Smooth-Let3293 • Jun 16 '26
Bee Movie copypaste in the computer chunkbanned me.
I was being very funny and hilarious and i was going to print the whole bee movie. DONT.
lost my 3 month hardcore world with no backups.
:/
r/ComputerCraft • u/greger511 • Jun 14 '26
Spawner storage grid
I was inspired by Hydraxous’s “The Grid” and decided to make a similar storage grid for my apotheosis spawners. This is my first project with CC:T and my next step is to have it monitor my storage to automatically pull spawners to resupply as well as a screen to display that information.
r/ComputerCraft • u/MinkiTheAvali • Jun 14 '26
C24C2 Progress Update
Its been a bit since my last post about the ClassiCube client for CompuerCraft I'm working on. I have not published it yet as I decided i want to iron out some of the issues first.
Here are some of the major changes so far:
- Dithering support for semi-transparency and for block sides to add depth
- Player models
- Entity Shadows
- Better movement system with distance based fall acceleration and terminal velocity
r/ComputerCraft • u/MinkiTheAvali • Jun 12 '26
ClassiCube for ComputerCraft (C24C2) - ClassiCube client running on top of PinePix / Pine3D stack, using ClassiCubes official WebSocket proxy
This is still very WIP but here are some technical details:
The connection works through the use of the WebSocket protocol, normal minecraft servers and clients use TCP which works very similar but is not directly compatible. However, ClassiCube has a web client on their website which uses a WebSocket proxy to convert TCP to WSS connections. This client makes use of that feature to connect to the Minecraft server.
The graphics are rendered using Pine3D for the geometry and culling with a slightly modified version of the PinePix extension for handling the affine texture mapping as well as transparency. This does require the CC:Graphics mod to be installed as it makes use of a 256 colour palette (16 reserved for terminal/text colours, 216 for the texture atlas and 4 for the skybox). This can most likely be made to work with 16 colours through the use of dithering although I have yet to test or implement such a feature.
For performance, the map is split up into quadratic chunks of 16x16x16 blocks which are loaded depending on camera view and render distance. Each chunk is split into 8x8x8 sub-chunks which are used by the meshing engine which determines which faces to hand to the rendering pipeline.
Since Minecraft uses gzip for map data compression, the client makes use of the LibDeflate.lua written by Haoqian He (Github: SafeteeWoW) which was bundled in JacMacWindow's CC-Archive repository.
All details regarding the protocol have been based on my own C99 implementation of a Minecraft 0.30 server which is available on my Codeberg, details on my research into the protocol can be found in said repository.
Please keep in mind, this client is not a parity client. It is a reimplementation from scratch which in many places guesstimates and approximates the behavior of Minecraft. In its current WIP state, especially the player movement physics are a very rough estimate.
Legal disclaimer: USE THIS CLIENT AT YOUR OWN RISK! if you are planning on joining a server that is not yours, I am not responsible for any moderative actions that may be taken against you due to inaccuracies that may result in an unfair advantage over other players. All resources used within this client (textures, fonts, etc) are material of the public domain unless explicitly listed otherwise and none are affiliated in any way with Microsoft or Mojang studios.
With that out of the way, I currently do not have an installer for the client yet. I will update this post once a usable public version is available and once i have heard back from the classicube administrators if i am permitted to use their proxy service for this.
r/ComputerCraft • u/Mundane_Task_1755 • Jun 11 '26
MineApp
whatsapp recreation in cc tweaked using rednet
r/ComputerCraft • u/DaphneTheLoser • Jun 10 '26
(Tom's Peripherals) How to connect a Portable Keyboard Dongle to an Advanced Computer?
I've been trying to make a little "gaming room" for my house and wanted to know:
- How do I get my Advanced Computer to recognize the Tom's Peripherals monitor?
- How do I connect my Portable Keyboard Dongle to said Advanced Computer?
r/ComputerCraft • u/AutomaticCounter1454 • Jun 08 '26
Early-ish Game Auto Crafting for Supremium
r/ComputerCraft • u/Zachattack525 • Jun 07 '26
How to read amount of fluid in a tank?
I'm trying to set up a computer that will read the amount of fluid in a tank and emit a redstone signal if it isn't full, but I've not been able to figure out how to access the number. using peripheral.call("left","tanks") in the interactive lua prompt will return the table containing the amount and name of the fluid, but attempting to manually print it,by assigning it to a variable and then printing that variable, or more directly by using print(peripheral.call("left","tanks")), will give me a table number. None of the solutions I've found online for how to print the contents of a list have worked for me.
r/ComputerCraft • u/MattisTheProgrammer • Jun 06 '26
I need help with pre-emptive multitasking
I already have a functional cooperative multitasking system, however I was wondering how do I make it pre-emptive?
Like lets say that I have a coroutine which is running a function, how would I make it so that if the function takes too much time the coroutine would automatically yield, and then when I run
coroutine.resume(coroutine1) again it would resume the function again from exactly where it was before?
r/ComputerCraft • u/Bright-Historian-216 • Jun 05 '26
Goto is now allowed?
I introduced some of my friends to computercraft, and while reviewing the code of one of them, i saw a goto label. i thought - surely, i've tried it and failed spectacularly, so how is it working here? i've tested my own code with goto - it does, in fact, work. i decided to search. it's nowhere to be found on tweaked.cc, at least it doesn't come up in changelog when i search for "label" or "goto" - it's only shown with a tick now instead of a cross. I've decided to search on here - nobody seems to be talking about this, I only found a comment from three years ago confirming that I am NOT going insane and it was in fact disallowed up until some point.
When did it happen? What do you think about the change?
r/ComputerCraft • u/RepulsiveBox647 • Jun 04 '26
I made a linux like package manager and addon layer which can interact with windows
Notice: some might say this is an OS, and i'd love to say that too, but to be honest, an OS has much more then just some nice graphics, apps and a nice startup menu, an OS also has things like a kernel, which i dont have.
I made a linux like addon layer for CC:tweaked, which has been built primarily with the CraftOS-PC, and is also how the project is being released. If you want you can try out my project inside of minecraft, but success isn't guaranteed for all functions.
The original goal was to make a kiosk-mode CraftOS-PC program, which adds much functions to the original shell, while also being capable of interacting with Windows to execute commands or run apps and turn it into a simplified OS.
What it currently does
- custom package management with pacman
- a sys bridge layer for Lua to talk to a Python host server
- host filesystem access through the bridge
- Windows taskbar control from inside CraftOS(kiosk)
- a layout designed to keep the base install minimal, while still allowing extra functionality when needed
- more structured startup
- package-based runtime expansion
- optional features instead of forcing everything into the base install
Even if you don't want to have the whole kiosk mode experience, you can still use the provided pacman.lua script to install programs more easily. I'm planning on dropping alot of programs from the CC:Tweaked awesome list into pacman, so you can install anything you want without searching for download URL's.
I’m looking to share progress, get feedback, and maybe find ideas from people who like stuff like this.
r/ComputerCraft • u/Pat-tron • Jun 05 '26
Axe Turtle
I was wondering if there was a paste bin to automate an oak wood farm with it and have it deposite into a chest of some sort
r/ComputerCraft • u/Civil_Organization65 • Jun 04 '26
Built a full backend in CC:Tweaked Lua for an educational server (points, bank, shop) — now rebuilding it and looking for advice on keeping it lightweight
reddit.comr/ComputerCraft • u/MinkiTheAvali • Jun 03 '26
Quake map viewer in PinePix
As an example for how to use PinePix in more complex programs, I started writing a quake map renderer. It uses the new PinePix texture mapping features. I will attempt to add support for light maps as well in the future so baked lighting can be used.
r/ComputerCraft • u/TheOrangeApple3 • Jun 03 '26
Help with the Star Wars ACSII
So I was following this recent how to guide: https://www.reddit.com/r/ComputerCraft/comments/l4bann/starwars_episode_iv_ascii_credit_to/
but after running the program i get 2 downloads of star1 and star2
ive tried running these but i just get the error of /star1:1: unexpected smbol near '2'
im the latest 1.21.1 version and my programming skill are less then desirable so an help would be greatly appreciated. Thank you
r/ComputerCraft • u/JackMacWindowsLinux • Jun 01 '26
Second Reality demo for ComputerCraft
This is a port of the famous Second Reality demo to ComputerCraft. Runs entirely in-game, with extra features (such as high resolution) when run in an emulator.
This has been a goal of mine for a long time, and I'm glad that it's finally complete. Thanks to Xella and 9551 for their graphics libraries, and thanks to Future Crew for making Second Reality open-source.
You can run the demo using `wget run https://github.com/MCJack123/SecondReality/releases/download/1.0/second.lua`. The file just barely fits on a default computer (940k), so you may want to use a fresh computer or run through wget. See the repo for source code.
(Hey Reddit, if you're going to take away Markdown editing on mobile, could you consider making sure that a feature as basic as a code block is still accessible in the rich editor? I'm so glad I quit this app when I did.)
r/ComputerCraft • u/SoggyAstronomer7334 • May 30 '26
High-Res Video & Audio Player (1352x627 Sub-Pixels)
r/ComputerCraft • u/MinkiTheAvali • May 30 '26
PinePix - A Pine3D wrapper library for high resolution and up to 256 colour rendering under CC:Graphics and CraftOS
Get it here on Pinestore: https://pinestore.cc/projects/239/pinepix
FEATURES
--------
Pixel mode (256-colour framebuffer)
Switches the terminal to CraftOS-PC graphics mode 2.
The Pine3D color buffer is blitted to the screen as raw pixels.
The 16 CC palette entries are replicated at 80%, 65%, and 50% brightness
to give 64 usable palette slots for shading.
Directional lighting
Each polygon is dot-product shaded against a world-space light direction.
Four shade levels: full, 80%, 65%, 50%.
The light vector is transformed into each object's model space so shading
stays correct as objects rotate.
Winding fix
Pine3D culls faces designed for interior (dungeon) rendering.
Both pixel mode and teletext mode include a v1<->v2 winding swap so that
outward-facing geometry renders correctly from an exterior camera.
Pixel font
gfx.drawString draws 3x5 pixel text directly to the framebuffer.
Supports A-Z, 0-9, and a handful of symbols. Input is uppercased
automatically.
OC colour space
gfx.enableOC() programs all 256 palette slots with the OpenComputers
fixed colour grid (5x8x6 RGB entries 0-239 plus a 16-step greyscale ramp
240-255). Textures are quantized to the nearest OC colour at registration
time using squared RGB distance. Solid geometry colours are pre-mapped via
a lookup table built at enableOC() time. CC palette slots 0-15 are saved
before overwriting and restored automatically on gfx.disable().
Texture mapping
gfx.drawTexturedObjects allows for rendering objects with mapped textures
through a UV space onto the screen. It is pixel accurate but costly if
many textures are to be drawn.
gfx.drawFastTexturedObjects is a faster variant of drawTexturedObjects
that interpolates UV coordinates linearly across each scanline instead of
correcting for perspective. There is no per-pixel division, so rendering
is noticeably faster on complex geometry. Textures may warp slightly on
oblique or steeply angled faces.
P3D binary model format
gfx.loadModel reads a compact P3D v1 binary file into a polygon table
ready for drawTexturedObjects. A face costs 31 bytes on disk versus
roughly 200 bytes as embedded Lua. convert_obj.py converts OBJ files to
P3D + BMP texture in one step.FEATURES
--------
Pixel mode (256-colour framebuffer)
Switches the terminal to CraftOS-PC graphics mode 2.
The Pine3D color buffer is blitted to the screen as raw pixels.
The 16 CC palette entries are replicated at 80%, 65%, and 50% brightness
to give 64 usable palette slots for shading.
Directional lighting
Each polygon is dot-product shaded against a world-space light direction.
Four shade levels: full, 80%, 65%, 50%.
The light vector is transformed into each object's model space so shading
stays correct as objects rotate.
Winding fix
Pine3D culls faces designed for interior (dungeon) rendering.
Both pixel mode and teletext mode include a v1<->v2 winding swap so that
outward-facing geometry renders correctly from an exterior camera.
Pixel font
gfx.drawString draws 3x5 pixel text directly to the framebuffer.
Supports A-Z, 0-9, and a handful of symbols. Input is uppercased
automatically.
OC colour space
gfx.enableOC() programs all 256 palette slots with the OpenComputers
fixed colour grid (5x8x6 RGB entries 0-239 plus a 16-step greyscale ramp
240-255). Textures are quantized to the nearest OC colour at registration
time using squared RGB distance. Solid geometry colours are pre-mapped via
a lookup table built at enableOC() time. CC palette slots 0-15 are saved
before overwriting and restored automatically on gfx.disable().
Texture mapping
gfx.drawTexturedObjects allows for rendering objects with mapped textures
through a UV space onto the screen. It is pixel accurate but costly if
many textures are to be drawn.
gfx.drawFastTexturedObjects is a faster variant of drawTexturedObjects
that interpolates UV coordinates linearly across each scanline instead of
correcting for perspective. There is no per-pixel division, so rendering
is noticeably faster on complex geometry. Textures may warp slightly on
oblique or steeply angled faces.
P3D binary model format
gfx.loadModel reads a compact P3D v1 binary file into a polygon table
ready for drawTexturedObjects. A face costs 31 bytes on disk versus
roughly 200 bytes as embedded Lua. convert_obj.py converts OBJ files to
P3D + BMP texture in one step.r/ComputerCraft • u/MattisTheProgrammer • May 29 '26
Any libraries for Cryptography?
I'm looking for a fast cryptography library for CC: Tweaked, One that supports all the following algorithms: DH, DSA, AES (both 128 and 256, and supporting both CBC and CTR), and SHA3-512. I need it to be as fast as possible, are there any libraries that support these algorithms?