Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Vidage inventaire coffre Thermal par RLP Ghost :)
- local premierSlot = 1
- local dernierSlot = 13
- local thermalChestSlot = 14
- function videInventaire() -- if turtle.getItemCount(dernierSlot) > 0
- local slot
- if turtle.detectDown() then turtle.digDown() end
- turtle.select(thermalChestSlot)
- turtle.placeDown()
- for slot=premierSlot,dernierSlot do
- turtle.select(slot)
- while turtle.getItemCount(slot) > 0 do
- turtle.dropDown(turtle.getItemCount(slot))
- if turtle.getItemCount(slot) > 0 then
- sleep(0.5)
- end
- end
- end
- turtle.select(thermalChestSlot)
- turtle.digDown()
- end
- while true do
- if turtle.getItemCount(dernierSlot) > 0 then videInventaire() end
- sleep(2);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement