r/ComputerCraft • • Jan 08 '22

Reason #3895 that my modded adventure map isn't finished yet: spending ages overdesigning a dumb ComputerCraft minigame for unlocking doors or something.

97 Upvotes

r/ComputerCraft • • Jul 15 '24

Created an automated storage system :D (can use many double chests, store any item and pull any item by name!)

96 Upvotes

r/ComputerCraft • • Jun 30 '26

I make a code for Computer Craft to control my reactors and show some informations

Thumbnail gallery
95 Upvotes

r/ComputerCraft • • May 30 '26

PinePix - A Pine3D wrapper library for high resolution and up to 256 colour rendering under CC:Graphics and CraftOS

94 Upvotes

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 • • Jan 27 '25

Warning: drop pods approaching our base!

94 Upvotes

r/ComputerCraft • • Oct 14 '19

Turtle Quarry Program

94 Upvotes

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 • • Jun 17 '26 Bravo

ClassiCube for ComputerCraft PUBLIC BETA RELEASE

93 Upvotes

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 • • Jan 20 '23

Concept for Create Contraption Turtle

Thumbnail
gallery
92 Upvotes

r/ComputerCraft • • Jun 14 '26

C24C2 Progress Update

91 Upvotes

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 • • Feb 14 '25

saw someone make a news ticker and had to extend the concept to weather as well

Post image
91 Upvotes

r/ComputerCraft • • May 08 '26

I'm trying to make my own implementation of MQTT inside CC!

90 Upvotes

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 • • Mar 06 '23

Working on a LoD system for Pine3D so rendering lots of high-poly models is possible for the jam :D

90 Upvotes

r/ComputerCraft • • Jun 03 '26

Quake map viewer in PinePix

89 Upvotes

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 • • Oct 08 '21

uhhhh i dont think thats normal [enigmatica 2 expert]

Post image
89 Upvotes

r/ComputerCraft • • Apr 26 '25

Just a custom game engine i made on 256 colors Craft-OS PC

Post image
86 Upvotes

r/ComputerCraft • • Mar 26 '23

PineJam 2023 ended and we got some amazing submissions! :D

Post image
86 Upvotes

r/ComputerCraft • • 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.

86 Upvotes

r/ComputerCraft • • Jun 14 '26

Spawner storage grid

84 Upvotes

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 • • Apr 09 '26

I decided I wanted to make my own style of videos for Youtube, so CC immediately came to mind :)

84 Upvotes

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 • • 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)

Thumbnail
gallery
84 Upvotes

r/ComputerCraft • • Jul 26 '24

Streaming Music From YouTube With CC Speaker

Thumbnail
youtube.com
84 Upvotes

r/ComputerCraft • • Sep 10 '26

PineStore - homepage redesign - lots of new stuff!

Post image
83 Upvotes

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 • • Nov 08 '22

Testing out how bad distance LOD works (Level Of detail, things far away are less detailed)

82 Upvotes

r/ComputerCraft • • May 31 '23

DOOM on ComputerCraft: Proof of Concept

79 Upvotes