Guest User

Minecraft Armour Stand Manipulation

a guest
Jan 26th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Black = Export to Primary
  2. --Red   = Import from Primary
  3.  
  4. function resetStands()
  5.   --All stands to OFF
  6.  rs.setBundledOutput("bottom",0)
  7. end
  8.  
  9.  function clearPrimary()
  10.   --Clear Primary
  11.   --Allow Primary Import
  12.   rs.setBundledOutput("bottom", colors.red)  
  13.   --Allow all storage Stands
  14.   for x in t do
  15.     rs.setBundledOutput("bottom",colors.combine(rs.getBundledOutput("bottom"),colours(num))
  16.   end
  17.  
  18.   --Reset all colours
  19.   rs.setBundledOutput("bottom",0)
  20.  end
  21.  
  22.  
  23.  
  24. function importStand (num)
  25. --Enable specific stand Dark Cable
  26. local colours = {
  27.     1 = colors.orange,
  28.     2 = colors.magenta,
  29.     3 = colors.lightBlue
  30.     }
  31.  
  32.   --Clear Primary
  33.   clearPrimary
  34.  
  35.   --Allow Export to Primary
  36.   rs.setBundledOutput("bottom",colors.black
  37.   --Allow Access to Storage Armour Stand
  38.   rs.setBundledOutput("bottom",colours(num))
  39.  
  40.   --Armour Should move to new location
  41.  
  42.   --Reset all colours
  43.   rs.setBundledOutput("bottom",0)
  44.  
  45. end
  46.  
  47.  
  48. function
  49.  
  50. print("Give suit number")
  51. local n = tonumber(io.read())
  52. importStnad(n)
  53.  
  54.  
  55. --Remove Armour from primary to chest (May be nothing)
  56. --Disconect all Stands
  57. --Import from Primary Stand
  58.  
  59.  
  60. --Bring Armour from Stand wanted to Primary
  61. --Disable all Dark Cables except for stand wanted
  62. --Export from AE to Primary Stand
  63.  
  64.  
  65. --Move armour from chest to Stand (May be nothing)
  66. --Disconnect Primary Stand
  67. --Enable the empty stand
  68. --Enable Import Cable (Buffer Chest)
  69. --should import to available stand (Storage Bus)
Advertisement
Add Comment
Please, Sign In to add comment