GravityCube

MvPages

Jul 12th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wd=peripheral.wrap("right")
  2. while true do
  3.   book1=false
  4.   book2=false
  5.   book3=false
  6.   book4=false
  7.   l=15
  8.   if wd.getAllStacks()[5] ~= nil then
  9.     for p=1,wd.getNotebookSize(1),1 do
  10.       wd.pushNotebookPage(1,"up",p,p)
  11.     end
  12.     book1=true
  13.   end
  14.   if wd.getAllStacks()[6] ~= nil then
  15.     for p=1,wd.getNotebookSize(2),1 do
  16.       wd.pushNotebookPage(2,"up",p,p+15)
  17.     end
  18.     book2=true
  19.   end
  20.   if wd.getAllStacks()[7] ~= nil then
  21.     for p=1,wd.getNotebookSize(3),1 do
  22.       wd.pushNotebookPage(3,"up",p,p+30)
  23.     end
  24.     book3=true
  25.   end  
  26.   if wd.getAllStacks()[8] ~= nil then
  27.     for p=1,wd.getNotebookSize(4),1 do
  28.       wd.pushNotebookPage(4,"up",p,p+45)
  29.     end
  30.     book4=true
  31.   end
  32.   sleep(2)
  33.   if book1 then
  34.     wd.destroyStack(5)
  35.   end
  36.   if book2 then
  37.     wd.destroyStack(6)
  38.   end
  39.   if book3 then
  40.     wd.destroyStack(7)
  41.   end
  42.   if book4 then
  43.     wd.destroyStack(8)
  44.   end
  45. end
Add Comment
Please, Sign In to add comment