Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local planter=peripheral.wrap("tile_mfr_machine_planter_name_2")
- local harvester=peripheral.wrap("bottom")
- local modem=peripheral.wrap("left")
- function slotDebug()
- for i=1, 18 do
- print(tostring(i)..": ")
- if planter.getStackInSlot(i) then
- for k,v in pairs(planter.getStackInSlot(i)) do
- write(" "..tostring(k))
- print(" "..tostring(v))
- end
- end
- end
- end
- function slotCheck()
- if planter.getStackInSlot(26).qty <= 18 then
- harvester.setShearLeaves(False)
- elseif planter.getStackInSlot(26).qty >=60 then
- harvester.setShearLeaves(True)
- end
- os.sleep(30)
- slotCheck()
- end
- function main()
- slotCheck()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement