Advertisement
Guest User

test

a guest
Mar 22nd, 2014
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. function array()
  2.   a = {}
  3.   for i=1, 6 do
  4.     a[i] = {}
  5.    
  6.     for j=1, 2 do
  7.       a[i][j] = 0
  8.     end
  9.   end
  10.   a[1][1]= "front"
  11.   a[2][1]= "back"
  12.   a[3][1]= "left"
  13.   a[4][1]= "right"
  14.   a[5][1]= "top"
  15.   a[6][1]= "bottom"
  16. end
  17.  
  18. array()
  19.  
  20. for i=1, 6 do
  21.   input=redstone.getInput(a[i][1])
  22.   if input=="true" then
  23.     a[2][2]="true"
  24.  
  25.   elseif input=="false" then
  26.     a[3][2]="false"
  27.   end
  28. end
  29. for i=1, 6 do
  30.   print(a[i][1])
  31.   print(a[i][2])
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement