Advertisement
Plazter

BloodMagic Slate init

Sep 13th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. c = require("component")
  2. t = c.transposer
  3. sides = require("sides")
  4. rs = c.redstone
  5. gpu = c.gpu
  6.  
  7. --print(t.getInventorySize(sides.south))
  8. --lab = t.getStackInSlot(sides.south, 1).label
  9.  
  10. while true do
  11. if t.getStackInSlot(sides.north, 1) ~= nil and t.getStackInSlot(sides.south, 1) == nil then
  12.   if (t.getStackInSlot(sides.north, 1).label) == "Stone" then
  13.     t.transferItem(sides.north, sides.south, 1,1)
  14.   end
  15. end
  16.  
  17. if t.getStackInSlot(sides.south, 1) ~= nil then
  18.   if (t.getStackInSlot(sides.south, 1).label) == "Stone" then
  19.       gpu.set(1,2,"In the Makeing.")
  20.       rs.setOutput(sides.down, 15)
  21.       os.sleep(.2)
  22.   elseif (t.getStackInSlot(sides.south,1).label) == "Blank Slate" then
  23.       gpu.set(1,2,"DONE!          ")
  24.       rs.setOutput(sides.down, 0)
  25.       t.transferItem(sides.south, sides.top, 1, 1)
  26.   end
  27. end
  28. os.sleep(.5)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement