SteamPunk_Devil

TrainConroler

Jan 18th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. --Settings--
  2. --Cable Side--
  3. local cableSide = "back"
  4. --ChestSide--
  5. local chestSide ="right"
  6. --Settings Over--
  7.  
  8. while true do
  9.     local chestEmpt = peripheral.wrap(chestSide)
  10.     local itemList = chestEmpt.getAllStacks()
  11.     if itemList[1] ~= nil then
  12.         if itemList[1].name == "log" then
  13.             redstone.setBundledOutput(cableSide, colors.lime)
  14.         else
  15.         end
  16.     else
  17.         redstone.setBundledOutput(cableSide, colors.red)   
  18.     end
  19. sleep(1)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment