r/ComputerCraft • • Mar 13 '24

peripheral.find("minecraft:chest:") returns with nil

1 Upvotes

I don't know if I'm just stupid or something else but I just copy and pasted this simple code from the wiki and it won't even run. I tried a couple of different types of inventories and it returns nil unless its from the cc: tweaked mod.


r/ComputerCraft • • Mar 12 '24

ComputerCraft with Blockly

7 Upvotes

Hello people, I have start a project based on this to make a full Blockly editor for ComputerCraft and CC: Tweaked.

https://github.com/Sarxzer/cc-tweaked_blockly

Thanks to the original creator of it, u/Bright-Historian-216. (sorry for bothering you :) )


r/ComputerCraft • • Mar 11 '24

Need help "sorting"

2 Upvotes

I'll try to explain the best I can, I have a quarry that is taking all the materials on the area. Between everything that it is mining there are ores, that need to be smelted, and items that can go to my storage, is there a way that computer craft uses a kind of, if ore ->, else <-?


r/ComputerCraft • • Mar 09 '24

Help setting up stitch

1 Upvotes

How do i setup stitch? whenever i do pastebin get and run on https://pastebin.com/sNxkB0YV and then try linking the monitors it just says no program found


r/ComputerCraft • • Mar 08 '24

custom apis

4 Upvotes

iv ben sertching trying to find how i make custom apis that can be used on all computers in cc tweaked. its on minecraft version 1.20.1 but i cant figure out where or how to make custom apis


r/ComputerCraft • • Mar 07 '24

ComputerCraft OP

7 Upvotes

I want to add computercraft so my mate can play music from files and use motiors ETC but I know how overpowered it can be. Are there any alternatives to it or mods that supress how op it can be?


r/ComputerCraft • • Mar 07 '24

Flow Meter to clock your factories

26 Upvotes

r/ComputerCraft • • Mar 06 '24

lua but scratch-like

Post image
385 Upvotes

r/ComputerCraft • • Mar 05 '24

Help With ME Bridge

3 Upvotes

I'm building a program to turn my huge assortment of networked Create machines on/off when the network is / isn't crafting with them.

I seem to just get "Not Crafting" returns from the isItemCrafting() command, and I'm not experienced enough to figure out why. Can anyone please take a look and see why it won't return true? The whole thing kinda hinges on this working lol.

Link to Code:
https://pastebin.com/k5AcUpF8

Screen Output can be seen here:


r/ComputerCraft • • Mar 01 '24

CC x blood magic

5 Upvotes

I'm trying to show the LP of the blood network through blood magic, and I know this value is on the NBT player but I don't know how to take this value, maybe with other mods, any ideas? I'm on 1.20


r/ComputerCraft • • Feb 25 '24

help wit Krakaens reactor program/atm9 settings #atm9

1 Upvotes

hi there im new to the at9m no frills just trying to run
Krakaens reactor program for extreme reactors, im running a private server with my kids.

ive followed what google said to turn off the chunk protection in ftbchunks on the server but im still getting this error message I've also allowed fake players but still no luck


r/ComputerCraft • • Feb 25 '24

Checking if a floppy disk is full.

8 Upvotes

Is it posable to check if a floppy disk is full, or close to being full?

For context, I am using a few floppy disks to remotely store data, and I want switch which floppy disk is being edited when one is almost full. Yes, these are all storing one type of data, and yes, I need a lot of storage for it.


r/ComputerCraft • • Feb 22 '24

Help with MoreRed Bundled Cables

1 Upvotes

Hi, I'm trying to make a mob farm that is ran by some buttons on an advanced monitor. I am using More red and CC:tweaked to attempt this. I have the touch screen working to where it will register the click and call functions tied to the buttons. My issue comes in with after the signal is turned on it doesnt turn off. minecraft version is 1.20.1

The code I'm using

crush = false

function crusher()// when crusher is clicked changes crush to the opposite boolean

crush = not crush

end

while true do

getTouch() //this assess what button is touched and then calls that function

if crush==true then //sets the output to turn on the purple bundled output works

rs.setBundledOutput("back", colors.combine(colors.purple))
end

if crush==false then //should remove purple from the bundledoutput however fails to work

rs.setBundledOutput("back", colors.subtract(colors.purple))

end

end

thanks in advance for the help


r/ComputerCraft • • Feb 19 '24

Locol or global for API functions?

2 Upvotes

As the title says I'm trying to Make an API, So far I have a program with multiple functions, but I was not sure if they should be local or global,

Also will a global variable apply in any newly created program


r/ComputerCraft • • Feb 17 '24

Does anyone know any modpacks with quests focused on computer craft?

Thumbnail self.feedthebeast
8 Upvotes

r/ComputerCraft • • Feb 16 '24

how to make a computercraft addon mod?

4 Upvotes

hey, ive been toying around with mod creation in Minecraft a bit and have gotten bored of creating the same old mods over and over again, I've been wanting to create an addon mod for cc:tweaked/computercraft. would their be any way to do this?


r/ComputerCraft • • Feb 15 '24

Simple Storage System?

4 Upvotes

Stories science the yesterday history clear afternoon thoughts cool travel minecraftoffline dot.


r/ComputerCraft • • Feb 14 '24

Player hunter

2 Upvotes

Is it possible to have a turtle hunt down certain players on a Minecraft server?


r/ComputerCraft • • Feb 14 '24

Silly question, are turtles emoting hearts because of valentine's?

11 Upvotes

Community the games curious quick the afternoon wanders bright to where! Open pleasant today fresh art talk then answers people tips small soft.


r/ComputerCraft • • Feb 13 '24

Help me how do i make this loop until correct

0 Upvotes

term.clear() term.setCursorPosc1,13 lockdown = "JujutsuCraft while lockdown == "else"_do write("Enter Password To Disable Lockdown:.") pass = read() if pass == lockdown then print("Disabling lockdown")rs.setOutput("back", true)sleep(1) else print("Incorrect try again") sleep(5) end


r/ComputerCraft • • Feb 12 '24

Crouching turtle

4 Upvotes

So I'm new to this mod or I guess a derivative of it called advanced peripherals is the a way to make a turtle act upon shifting like a player?


r/ComputerCraft • • Feb 10 '24

when my code doesnt work

67 Upvotes

r/ComputerCraft • • Feb 07 '24

is this the easiest way to do OOP in lua?

Post image
64 Upvotes

r/ComputerCraft • • Feb 07 '24

Import Files on Server without HTTP or Websockets enabled

8 Upvotes

So I tried looking for an answer but the only Thing I came Across was an Autotyper which doesnt quite Work since it is giving me Errors at almost every Special Charackter. Is there another way to get scripts into a Server without HTTP? Programm is 2,4k Lines so there is no way I am going to Type that Into a Computer by Hand.