Posted 06 March 2013 - 09:41 PM
Hi,
I'm trying to update some programs I have modified (sdbuild that does cylinders and has a progress bar to be specific) to work with both 1.4+ turtles and 1.3- turtles. I have already figured out how to make my progress bar be independent of terminal width. My current problem is that the two versions have differing numbers of inventory slots. I looked on the wiki and it said
Best Regards,
Happydude11209
I'm trying to update some programs I have modified (sdbuild that does cylinders and has a progress bar to be specific) to work with both 1.4+ turtles and 1.3- turtles. I have already figured out how to make my progress bar be independent of terminal width. My current problem is that the two versions have differing numbers of inventory slots. I looked on the wiki and it said
turtle.select(slotNumber)
will return true if slotNumber is > 9 so I thought I could use that to tell if I'm running in 1.3- or 1.4+
if turtle.select(16) then
-- is 1.4+
else
-- is 1.3-
end
All that did though was throw an error "Slot number 16 out of range" on a turtle in 1.3.x (Tekkit). My question then is, Is there some way that I can tell weather or not the turtle has 9 or 16 slots? Any help would be much appreciated.Best Regards,
Happydude11209