r/ComputerCraft • u/classified39 • Jan 08 '22
r/ComputerCraft • u/IJustAteABaguette • Jul 15 '24
Created an automated storage system :D (can use many double chests, store any item and pull any item by name!)
r/ComputerCraft • u/Important_Lie_4731 • Jun 30 '26
I make a code for Computer Craft to control my reactors and show some informations
galleryr/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/Bright-Historian-216 • Jan 27 '25
Warning: drop pods approaching our base!
r/ComputerCraft • u/Grieferrimix_ • Oct 14 '19
Turtle Quarry Program
Hello! For the past couple of days, I've been working on a turtle quarry program. I wanted something similar to this but with some extra features, plus I wanted to try creating something on my own.
Here's the link to the pastebin: https://pastebin.com/0hUKaXKe
To run the program, once you're in a terminal, type "pastebin get 0hUKaXKe <name>" where <name> is the file name you want to save the program as. Alternatively, you can type "pastebin run 0hUKaXKe" straight from the turtle's terminal to run the program once without saving.
Features:
Create custom quarry sizes.
Uses an efficient mining algorithm (or at least something better than the default excavation program).
Option to throw out or keep cobblestone.
Works in gravel, lava, water, etc.
Returns to surface to empty out inventory when full, then returns to mining. (Make sure there's a storage solution behind the turtle before you start, e.g. a chest.)
Returns to surface and requests fuel when low, then returns to mining.
Returns to surface when finished.
I'd love to create a video showing off the program but that'll have to happen sometime in the future!
EDIT: Just added the ability to auto refuel. Place a chest to the left of the turtle's starting position with fuel for it to work.
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/GildedBirch • Jan 20 '23
Concept for Create Contraption Turtle
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/JackMeofVIII • Feb 14 '25
saw someone make a news ticker and had to extend the concept to weather as well
r/ComputerCraft • u/IJustAteABaguette • May 08 '26
I'm trying to make my own implementation of MQTT inside CC!
You can connect to a broker, publish to topics, and subscribe to them! Also a timeout system to make sure it doesn't infinitely remember computers and keep sending data.
It doesn't have any way to actually make sure it received messages, so I need to add that to make it more consistent.
Also, the mqtt.lua library for the clients is automatically downloaded from the broker computer for easy updating!
r/ComputerCraft • u/Xella37 • Mar 06 '23
Working on a LoD system for Pine3D so rendering lots of high-poly models is possible for the jam :D
r/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/Stennish420 • Oct 08 '21
uhhhh i dont think thats normal [enigmatica 2 expert]
r/ComputerCraft • u/nonogamer9 • Apr 26 '25
Just a custom game engine i made on 256 colors Craft-OS PC
r/ComputerCraft • u/Xella37 • Mar 26 '23
PineJam 2023 ended and we got some amazing submissions! :D
r/ComputerCraft • u/9551-eletronics • Oct 16 '22
Finally after third try got my 3D rendering library running. featuring full shader and texture support with standard rendering pipeline, would yall appreciate such a lib if it had all the useful tools for thiese things. would like to hear if any of you would find this useful, and what do you think.
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/IJustAteABaguette • Apr 09 '26
I decided I wanted to make my own style of videos for Youtube, so CC immediately came to mind :)
It's quite simple right now, you have a main time list, that includes every message, and how long that message takes, and you can run any code you want per message that is displayed (including Pine3D code :D)
r/ComputerCraft • u/Bright-Historian-216 • Dec 18 '25
What do you usually use printers for in your worlds/on your servers? (sorry for image quality on some of these here)
r/ComputerCraft • u/ExclamatoryWalrus • Jul 26 '24
Streaming Music From YouTube With CC Speaker
r/ComputerCraft • u/Xella37 • Sep 10 '26
PineStore - homepage redesign - lots of new stuff!
Link to PineStore to check it out for yourself: https://pinestore.cc/
New homepage is live!
Recommendations
Biggest change has to be a recommendation system. To new users, or anyone not logged in, it will show popular projects with a wide variety of tags. To people who have saved projects or liked projects, it will be more personalised using just the data from saved/liked projects. No extra data is being collected at all
Also, view / like ratio plays a good role, letting "underrated" projects get more traction if they get more likes than would be expected for the number of views, making likes a now very impactful feature, giving you some power to make sure more people see the projects you think deserve it :3
Obviously, it hides projects already saved/liked as well as your own projects.
Recent projects
Recent projects is now just recently updated, so any project that gets the love of an update will be pushed to the front. It also now shows the time passed since it was last updated/published
Jammmm
As you might be able to see, it shows the most recent (or upcoming jam) on PineStore, giving it just a bit more attention to the people scrolling down
Recent activity
For now, recent activity shows the latest comments being posted on PineStore projects. You can also click the project thumbnail to easily view that project's comment section
Suggestions / bug reports welcome
There's a bunch of things that I've just added that are fully new, so if you have anything to share about it like a suggestion, bug report etc, feel free to let me know!
r/ComputerCraft • u/9551-eletronics • Nov 08 '22
Testing out how bad distance LOD works (Level Of detail, things far away are less detailed)
r/ComputerCraft • u/JackMacWindowsLinux • May 31 '23