Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local sides = require("sides")
- local robot = require("robot")
- for i =1,16 do
- local slot = i
- local item = component.inventory_controller.getStackInInternalSlot(slot)
- if item then
- if item.name==("minecraft:wheat_seeds")then
- print("slot "..slot.. " Found It" )
- robot.select(i)
- if i<16 then
- robot.transferTo(i+1)
- end
- component.inventory_controller.equip()
- else
- print("slot "..slot.."Not Correct Item")
- end
- else print ("slot"..slot.. " is empty")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement