r/ComputerCraft • • Dec 18 '15

How to fix peripheral api throwing error: "no such method"?

1 Upvotes

About 3 month back, I tried to get the logistics pipes api working, to no avail. I've recently come back to modded minecraft to find this error: http://imgur.com/XK7CL4 . This is quite odd, as most of the other methods work just fine (or so it seems). Is there any way to fix this?


r/ComputerCraft • • May 03 '15

OneOS Login Hack

1 Upvotes

Make a OneOS Logon Screen accept ANY password - Bypass password pastebin run xj5U8gNk


r/ComputerCraft • • Aug 10 '21

Little problem

1 Upvotes

Using cc:tweaked and advanced peripherals. Advanced peripherals comes with the chat block, and I'm trying to pull a name from the chat event as a if statement. The end goal is to be able to have something automate every time a specific person talks. Trying to get the if statement to wait for the username "StartDebuffing" to be in chat, and then execute code. Any help is appreciated!


r/ComputerCraft • • Apr 23 '23

need a good tunneling program

0 Upvotes

dont want to code it myself if you know any good tunneling programs that i can put whatever width, height, length i want that would be cool if not then cool


r/ComputerCraft • • Jul 19 '24

Is there a way to force turtles to place a block on top of a mob?

1 Upvotes

I was running a mining script when a chicken fell onto one of my turtles. The turtle couldn't place a block above itself so my script broke. I was able to find a workaround but I've ran into this problem several times, especially in modpacks that add a ton of passive mobs. Is there a way to force turtles to place a block on top of a mob? The mob can just suffocate inside the block instead. I looked through the config but I'm hoping I missed something. If this isn't an option I think it would be a really nice thing to add to the mod.


r/ComputerCraft • • Jul 26 '24

CC tweaked and Litematica

1 Upvotes

Hello i'm new in the modding community but I wonder if turtle can build litematica schematics ?


r/ComputerCraft • • Apr 12 '14

Is it possible for a computer/turtle to open an inventory of an item?

1 Upvotes

I'm thinking about a program that will collect Mystcraft pages, and when it has a full set, put them into a notebook. I think it would be similar for any sort of bag or handheld chest. Does anyone have some experience with this?


r/ComputerCraft • • Oct 26 '15

ComputerCraft Monitoring Quarries?

1 Upvotes

Is there a way, using ComputerCraftEdu v 1.74 and ComputerCraft: Immibis's Peripherals v 59.0.2, to remotely monitor several offsite quarries (BuildCraft v 7.1.10)? I'm just looking for an active/inactive indicator on a screen.


r/ComputerCraft • • Nov 11 '16

Code question

1 Upvotes

I am assuming I can post help about code here since I don't see any rules against it. I am trying to write a program that will keep executing after it is done. My current code is.

redstone.setOutput("right",true)

while true do
os.pullEvent("redstone")

if rs.getInput("left") then
break
end
end
redstone.setOutput("right"),false)
os.sleep(2)
redstone.setOutput("back",true)
os.sleep(5)
redstone.setOutput("back",false)
os.sleep(2)
redstone.setOutput("right"true)

so the code works perfectly but after that last line and it turns the right side back on. I want it to continue looking for a redstone input from the left side and execute again.. repeat. But right now the code just stops and nothing happens when redstone pulses the left side.


r/ComputerCraft • • Jun 13 '23

Help with Tables

1 Upvotes

Hello, I'm working on making tables for a project, but I'd like to change the color of 2 of the input in the table. This is my code. I'm trying to make "back" orange and "exit" red, but I can't figure out how to do it. I've tried looking on YouTube, but there's nothing that covers this. Any help is appreciated!

local termWidth, termHeight = term.getSize()
local selectedItem = 1
local onMainMenu = true
 
function Choice1()
 shell.run("kins/android")
 onMainMenu = false
end
 
function Choice2()
shell.run("kins/eldritch")
onMainMenu = false
end
 
function Choice3()
 shell.run("kins/elf")
 onMainMenu = false
end
 
function Choice4()
shell.run("kins/faerie")
onMainMenu = false
end
 
function Choice5()
 shell.run("kins/vulcan")
 onMainMenu = false
end
 
function Choice6()
shell.run("menu1")
onMainMenu = false
end
 
function Exit()
 onMainMenu = false
end
 
mainMenu = {
[1] = { text = "Android", handler = Choice1 },
[2] = { text = "Eldritch Horror", handler = Choice2 },
[3] = { text = "Elf", handler = Choice3 },
[4] = { text = "Faerie", handler = Choice4 },
[5] = { text = "Vulcan", handler = Choice5 },
[6] = { text = "Back", colors.orange, handler = Choice6 },
[7] = { text = "Exit",, handler = Exit }
}
 
function printMenu( menu )
 for i=1,#menu do
  if i == selectedItem then
   print(">> "..menu[i].text)
  else
   print("   "..menu[i].text)
  end
 end
end
 
function onKeyPressed( key, menu )
 if key == keys.enter then
  onItemSelected(menu)
 elseif key == keys.up then
  if selectedItem > 1 then
   selectedItem = selectedItem - 1
  end
 elseif key == keys.down then
  if selectedItem < #menu then
   selectedItem = selectedItem + 1
  end
 end
end
 
function onItemSelected( menu )
 menu[selectedItem].handler()
end
 
function main()
 while onMainMenu do
  term.clear()
  term.setCursorPos(1,1)
  term.setTextColor(colors.red)
  write("Shade Archives")
  term.setTextColor(colors.white)
  write(" > ")
  term.setTextColor(colors.blue)
  print("Kindred Archive")
  term.setTextColor(colors.yellow)
  print("Please select an option.")
  term.setTextColor(colors.purple)
  printMenu(mainMenu)
  event, key = os.pullEvent("key")
  onKeyPressed(key,mainMenu)
 end
end
 
main()

r/ComputerCraft • • Oct 16 '14

Ik heb problemen met Computercraft

1 Upvotes

I want to create a program that gives you access to the computer only if you give the correct password. I have the following:

local pullEvent = os.pullEvent

loop = true

os.pullEvent = os.pullEventRaw

local password = "HALLO"

while loop do

  term.clear()

  textutils.slowPrint(os.version())

  sleep(2)

  term.clear()

  term.setCursorPos(1,1)

  textutils.slowPrint("Password: ")

  local input = read("*")

  if input == password then

    term.clear()

    textutils.slowPrint("Password correct!")

    sleep(2)

    os.pullEvent = pullEvent

    loop = false

  else

    textutils.slowPrint("Password incorrect!")

    sleep(2)

    os.shutdown

  end      <----- ???

end

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 • • Apr 17 '20

Peripherals++ returning nil

1 Upvotes

I'm not sure quite where to post this but I've been using peripherals++ for 1.12.2. I've been trying to connect my computer to my ME system but whenever I request the items or anything in the ME system, it returns the right amount of tables but they're all empty. Is there any way to fix this?

I don't quite think a need to show code because I've used a few other of the peripherals and they return nil for tables.


r/ComputerCraft • • Oct 14 '21

[Help] Monitors: Is there a way to make this fit on the screen?

1 Upvotes

r/ComputerCraft • • Feb 03 '24

how do i do this

1 Upvotes

hey uhm does anyone know how to extract a variable from a table

i mean i made this snipit of code:

ship.getworldSpaceposition()

HOW DO I GET A VALUE FROM A TABLE like y = "some y level" in the table and i want to get it out of it


r/ComputerCraft • • Jan 16 '24

I'm confused about how serialize and unserialize work. How Can I save a table as a file and how can I read that file in the code?

1 Upvotes

I'm trying to save a table but I'm pretty confused. When I save my table as a serialized file it looks like this:

{
  {
    name = "Mario",
    bool = false,
  },
  {
    name = "Luigi",
    bool = true,
  },
  {
    name = "Daisy",
    bool = false,
  },
}

Based on what i've read textutils.serialize() uses a completely different format where everything is in one line. I'm not sure what to do. Does anyone know the actual way to do this?


r/ComputerCraft • • Jan 26 '24

Install modem api on an aternos server with a curseforge launcher

1 Upvotes

Hello, two day ago I discovered this mod, I love prog and in a modded server with friend they decided to make me the proggrammer.
One of my friend want to do a radio connected to a lot of speaker all around our cities.
I already did a script who permit play song and his voice on speaker but I don't know how to connect speaker to a wireless modem.
Can someone help me ?


r/ComputerCraft • • Apr 05 '17

Can't figure out simple program

1 Upvotes

I need a turtle to dig a 150 high, 1 wide and 152 long area and i can't get the logic into my head, since I'm limited in available time I'd love some help, thanks in advance.


r/ComputerCraft • • Mar 06 '14

Is it possible for Turtles to open TC3 Arcane Doors? (How?)

1 Upvotes

I was wondering if anybody has had any success with getting a Turtle to use a Gold Arcane Key to open a Thaumcraft 3 Arcane Door?

What I've been doing is I have a room made of warded stone with an arcane door, beside a turtle, beside a computer. The computer asks for a password then outputs a redstone signal to the left. I was trying to get the turtle to take the redstone signal, take the key then drop it onto the door, sleep, then close it.

I am not a strong coder so if you're able/willing to write something then I'd really appreciate it. I was trying to use this to learn but it was probably a bad choice considering I'm not even sure if it's possible.


r/ComputerCraft • • Dec 24 '21

Turtle help

1 Upvotes

Is there anyway to get a turtle to place a crop on a vertical surface ( for example planting cocoa beans on a piece of jungle wood)


r/ComputerCraft • • Sep 01 '19

Sign Up issue

1 Upvotes

I tried signing up for the forum, and every time it says
"The following errors were found:

  • The security code you supplied did not match the one displayed, a new code has been generated, please try again"

But I am answering the questions correctly.


r/ComputerCraft • • Dec 05 '19

how to create item in chest in 1.7.10

0 Upvotes

Because of a hardware problem I was forced to go back to minecraft 1.7.10. I'm having a hard time figuring out how to spawn items in inventories (chests, etc.) other than the players via the command computer. I also have the open peripherals mod.

What command can I use to spawn an item in a chest in 1.7.10? Thx!


r/ComputerCraft • • Nov 22 '23

Clock next to program

0 Upvotes

I want to have like a bar with a clock on the top of the screen toghether with another program but without covering anything in the program (so the program just needs top be slightly smaller than the screen), its also very important that it automatically works with any program (that can handle custom terminal sizes)


r/ComputerCraft • • Nov 18 '23

How do i use Basalt?

1 Upvotes

I cant even figure out how to get an example program working