This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
lironbenaun's profile picture

turtle return false when turtle.suck() on Mystcraft Book Receptacle

Started by lironbenaun, 29 June 2013 - 01:55 AM
lironbenaun #1
Posted 29 June 2013 - 03:55 AM
hello
i have a problam that the turtle return false each tim i try to suck from a book receptacle
im trying to make a touch screen teleportation i made the touch screen all work and the turtle dont behaive
we can i do?
Tjakka5 #2
Posted 29 June 2013 - 04:50 AM
Please post the code so we can have a better understanding of your problem.
lironbenaun #3
Posted 29 June 2013 - 08:29 AM
im not good at programing but here is it
www.pastebin.com/wmzBEJhz
lironbenaun #4
Posted 29 June 2013 - 03:16 PM
anyone??
Senmori #5
Posted 30 June 2013 - 02:39 AM
What peripheral are you using? We can't test it if we don't know what exactly you are using.
lironbenaun #6
Posted 30 June 2013 - 03:17 AM
i useing the inventory moudle
Jappards #7
Posted 30 June 2013 - 03:53 AM
Inventory slot numbers always start with a 0, even the the turtle`s inventory, so this:
Spoiler

local inv = peripheral.wrap("right")

while true do
  local event, parameter = os.pullEvent("redstone")
  if redstone.testBundledInput("back", colors.white) then
    write("placing noam")
    inv.suckDown(1,1)
    turtle.dropUp()
    sleep(5)
    turtle.suckUp()
    inv.dropDown(1,1)
   end
   end
Becomes this:

local inv = peripheral.wrap("right")

while true do
  local event, parameter = os.pullEvent("redstone")
  if redstone.testBundledInput("back", colors.white) then
    write("placing noam")
    inv.suckDown(0,1)--saw what i`ve done here?
    turtle.dropUp()
    sleep(5)
    turtle.suckUp()
    inv.dropDown(0,1)--saw what i`ve done here?
   end
   end
Apfeldstrudel #8
Posted 30 June 2013 - 06:42 AM
No they don't , i recently got an error "slot number 0 out of range"
lironbenaun #9
Posted 30 June 2013 - 07:48 AM
do you guys know what book receptacle is? beacuse its dusent seems like it
book recepticale its where you place your book at mystcraft portal i can drop books there but i cant suck from there
Tjakka5 #10
Posted 30 June 2013 - 08:00 AM
Try turtle.dig()
lironbenaun #11
Posted 30 June 2013 - 08:42 AM
i can dig the book receptcale but mystcraft books arent as normal books
Senmori #12
Posted 30 June 2013 - 08:51 AM
You don't need an inventory module for that. I just tried it with turtle.suck() and it worked fine.

It also worked using turtle.drop() to place the book.
Jappards #13
Posted 30 June 2013 - 08:52 AM
i know, but every item should drop when the block that contains that item.