Advertisement
jakikoske

copy level emitter

Dec 22nd, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. local p = peripheral.wrap("top")
  2. local Side = {
  3. ["1"] = "top";
  4. ["2"] = "right";
  5. ["3"] = "bottom";
  6. ["4"] = "left";
  7. ["5"] = "front";
  8. ["6"] = "back";
  9. }
  10. while true do
  11.   local item = p.listAll()[id]
  12.   if (item == nil) then
  13.     redstone.setOutput("side.1", false)
  14.   elseif (redstone.getOutput("top") == true) then
  15.     if (bones < 1000) then
  16.       redstone.setOutput("top", false)
  17.     end
  18.   elseif (redstone.getOutput("top") == false) then
  19.     if (bones > 2000) then
  20.       redstone.setOutput("top", true)
  21.     end
  22.   end
  23.   os.sleep(60)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement