Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r = require("robot")
- local inv = require("component").inventory_controller
- local sizeInventory = r.inventorySize()
- while true do
- if r.count(sizeInventory) == 0 and r.count(sizeInventory - 1) == 0 and r.count(sizeInventory - 2) == 0 and r.count(sizeInventory - 3) == 0 then
- local i = 0
- repeat
- if r.swing() then
- i = i + 1
- end
- until i ~= 100
- else
- for i = 1, sizeInventory do
- r.select(i)
- if r.count() ~= 0 then
- local item = inv.getStackInInternalSlot().name
- if item == "minecraft:skull" or item == "minecraft:coal" then
- r.dropUp()
- else
- r.dropDown()
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement