Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sides = require "sides"
- local robot = require "robot"
- local component = require "component"
- local inv = component.inventory_controller
- local Minimum = 0.2
- local active_slot = 1
- BeginSlot=1
- TeplArray={}
- MOXArray={}
- ZTeplArray={}
- BTeplArray={}
- TeplCount=1
- MOXCount=1
- ZTeplCount=1
- BTeplCount=1
- for i = 1, 64 do
- robot.select(i)
- ActiveItem=component.inventory_controller.getStackInInternalSlot()
- if ActiveItem~=nil then
- if ActiveItem.name=="IC2:reactorMOXQuad" then
- MOXArray[MOXCount]=i
- MOXCount=MOXCount+1
- end
- if ActiveItem.name=="IC2:reactorHeatSwitchSpread" then
- ZTeplArray[ZTeplCount]=i
- ZTeplCount=ZTeplCount+1
- end
- if ActiveItem.name=="IC2:reactorVentDiamond" then
- TeplArray[TeplCount]=i
- TeplCount=TeplCount+1
- end
- if ActiveItem.name=="IC2:reactorVentSpread" then
- BTeplArray[BTeplCount]=i
- BTeplCount=BTeplCount+1
- end
- end
- end
- TeplCount=1
- MOXCount=1
- ZTeplCount=1
- BTeplCount=1
- for BeginSlot=1, 54 do
- if BeginSlot==10 or BeginSlot==18 or BeginSlot==32 or BeginSlot==46 or BeginSlot==54 then
- active_slot=MOXArray[MOXCount]
- robot.select(active_slot)
- robot.drop(1)
- MOXCount=MOXCount+1
- end
- if BeginSlot==12 or BeginSlot==14 or BeginSlot==16 or BeginSlot==24 or BeginSlot==28 or BeginSlot==30 or BeginSlot==34 or BeginSlot==36 or BeginSlot==48 or BeginSlot==50 or BeginSlot==52 then
- active_slot=BTeplArray[BTeplCount]
- robot.select(active_slot)
- robot.drop(1)
- BTeplCount=BTeplCount+1
- end
- if BeginSlot==1 or BeginSlot==3 or BeginSlot==5 or BeginSlot==7 or BeginSlot==9 or BeginSlot==11 or BeginSlot==13 or BeginSlot==15 or BeginSlot==17 or BeginSlot==19 or BeginSlot==21 or BeginSlot==23 or BeginSlot==25 or BeginSlot==27 or BeginSlot==29 or BeginSlot==31 or BeginSlot==33 or BeginSlot==35 or BeginSlot==37 or BeginSlot==39 or BeginSlot==41 or BeginSlot==43 or BeginSlot==45 or BeginSlot==47 or BeginSlot==49 or BeginSlot==51 or BeginSlot==53 then
- active_slot=TeplArray[TeplCount]
- robot.select(active_slot)
- robot.drop(1)
- TeplCount=TeplCount+1
- end
- if BeginSlot==2 or BeginSlot==4 or BeginSlot==6 or BeginSlot==8 or BeginSlot==20 or BeginSlot==22 or BeginSlot==26 or BeginSlot==38 or BeginSlot==40 or BeginSlot==42 or BeginSlot==44 then
- active_slot=ZTeplArray[ZTeplCount]
- robot.select(active_slot)
- robot.drop(1)
- ZTeplCount=ZTeplCount+1
- end
- end
Add Comment
Please, Sign In to add comment