Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p=peripheral.wrap("top") --PIM
- me=peripheral.wrap("bottom")
- inv={}
- while true do
- if p.getSizeInventory() then
- for i=0,39 do
- inv[i]=p.getStackInSlot(i)
- if inv[i]==nil then
- inv[i]={}
- end
- end
- i=0
- while inv[i]["id"]~=194 and inv[i]["dmg"]~=2 and inv[i]["qty"]~=64 and i<39 do
- i=i+1
- end
- print(i)
- if inv[i]["id"]==194 and inv[i]["dmg"]==2 and inv[i]["qty"]==64 and i<39 then
- print("Solars erkannt")
- end
- end
- sleep(0.5)
- end
Add Comment
Please, Sign In to add comment