Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- function invHelper.selectItemInInventory(item)
- local flag = false
- for i=1, 16, 1 do
- if invHelper.getItemName(i) == item then
- r.select(i)
- flag = true
- break
- end
- end
- return flag
- end
- for i = 2,32,1 do
- robot.select(i)
- invHelper.selectItemInInventory("minecraft:cobblestone")
- if robot.compareTo(1) == true then
- robot.drop()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement