This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Smart Tree Farm | |
| -- Slot 1: Saplings | |
| -- Slots 2-16: Fuel + logs | |
| -- Only dumps when inventory is full | |
| local SAPLING_SLOT = 1 | |
| local MIN_FUEL = 80 -- keep at least 1 log worth of fuel | |
| local DUMP_THRESHOLD = 15 -- inventory slots used before dumping | |
| -- Count how many slots are filled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local mon = peripheral.find("monitor") | |
| if mon then | |
| term.redirect(mon) | |
| mon.setTextScale(0.5) -- smaller = more characters | |
| end | |
| local w, h = term.getSize() | |
| term.setBackgroundColor(colors.black) | |
| term.clear() |