Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Program : Fast Hopper System
- --- Author : LightKnight51
- --- Last modification : 31/07/2025
- --- Utils API
- local libraryName = "MarquitoLuaUtils"
- local libraryCode = "0FA6u1qV"
- -- Initialize the hopper system
- function InitFastHopperSystem()
- while true do
- turtle.suckUp()
- for m = 1, 16 do
- turtle.dropDown()
- -- Get item name in current slot
- local turtleCurrentItemName = nil
- if turtle.getItemDetail(m) ~= nil then
- turtleCurrentItemName = turtle.getItemDetail(m).name
- end
- if turtleCurrentItemName ~= nil then
- turtle.select(m)
- turtle.dropDown()
- end
- end
- sleep(0.05)
- end
- end
- -- Download program
- function DownloadProgram(pastebinCode, programName)
- if not fs.exists(programName) then
- shell.run("pastebin get " .. pastebinCode .. " " .. programName)
- end
- end
- -- We need this library for other programs work
- DownloadProgram(libraryCode, libraryName)
- os.loadAPI("MarquitoLuaUtils")
- -- Initialize the item filter system
- InitFastHopperSystem()
Advertisement
Add Comment
Please, Sign In to add comment