22 posts
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?
355 posts
Posted 29 June 2013 - 04:50 AM
Please post the code so we can have a better understanding of your problem.
22 posts
Posted 29 June 2013 - 08:29 AM
im not good at programing but here is it
www.pastebin.com/wmzBEJhz
22 posts
Posted 29 June 2013 - 03:16 PM
anyone??
25 posts
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.
22 posts
Posted 30 June 2013 - 03:17 AM
i useing the inventory moudle
128 posts
Location
Holland
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
B
ecomes 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
191 posts
Posted 30 June 2013 - 06:42 AM
No they don't , i recently got an error "slot number 0 out of range"
22 posts
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
355 posts
Posted 30 June 2013 - 08:00 AM
Try turtle.dig()
22 posts
Posted 30 June 2013 - 08:42 AM
i can dig the book receptcale but mystcraft books arent as normal books
25 posts
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.
128 posts
Location
Holland
Posted 30 June 2013 - 08:52 AM
i know, but every item should drop when the block that contains that item.