Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --pastebin get Fs0M4fZZ essenceFarm
- --------------------------------------------------
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- print('Josh.OS')
- term.setTextColor(colors.white)
- end
- reqFuel = 500
- -------------------------------------------------- Init --------------------------------------------------
- clear()
- if not fs.exists('betterMovement') then
- print('Downloading dependencies...')
- print()
- fs.delete('betterMovement')
- shell.run('pastebin get FWMpYYcT betterMovement')
- end
- bm = require('betterMovement')
- clear()
- print()
- term.setTextColor(colors.yellow)
- print("Welcome to Josh's Essence Farm Builder!")
- term.setTextColor(colors.white)
- print()
- print('Place the turtle in the bottom-left corner of the build (facing inwards)')
- print()
- print('Press ENTER to continue...')
- cont = read()
- while turtle.getFuelLevel() < reqFuel do
- turtle.select(1)
- currFuel = turtle.getFuelLevel()
- clear()
- term.setTextColor(colors.red)
- print('---WARNING---')
- print('Fuel level low!')
- term.setTextColor(colors.white)
- print()
- print('Please put fuel into the first slot to meet the minimum fuel requirements...')
- print()
- print('Current Fuel: '..currFuel..'/'..reqFuel)
- turtle.refuel(1)
- end
- clear()
- print()
- print('Place a chest BEHIND the turtle.')
- print('Place the following items in the turtle.')
- print()
- term.setTextColor(colors.red)
- print('---WARNING---')
- term.setTextColor(colors.white)
- print('The items need to be the exact amount AND in the exact slots spesified.')
- print()
- print('Failiure to do so can cause the farm to be misbuilt!')
- print()
- print('Press ENTER to continue...')
- cont = read()
- clear()
- print('Slot 1-4 : 48 Dirt')
- print('Slot 5 : 4 Vacuum Chests')
- print('Slot 6 : 4 Plant Interactors')
- print('Slot 7 : 4 Crafters')
- print('Slot 8 : 37 Item Conduits')
- print('Slot 9 : 13 Energy Conduits')
- print('Slot 10 : 2 Pressurised Fluid Conduits')
- print()
- print('Press ENTER to continue...')
- print()
- print('Page 1/3')
- cont = read()
- clear()
- print('Slot 11 : 1 Water Tank (Agri)')
- print('Slot 12 : 24 Irrigation Channels')
- print('Slot 13 : 4 Sprinklers (Agri)')
- print('Slot 14 : 8 Glowstone')
- print('Slot 15 : 1 Chest')
- print('Slot 16 : 1 Aqueous Accumulator')
- print()
- print('Press ENTER to continue...')
- print()
- print()
- print('Page 2/3')
- cont = read()
- clear()
- print('Place the following items in the CHEST')
- print()
- print('Slot 1-2 : 1 Water Bucket')
- print('Slot 3 : 1 Diamond Hoe (optional)')
- print('Slot 4-7 : 48 Crop Sticks (optional)')
- print()
- print()
- print()
- print('Press ENTER to continue...')
- print()
- print('Page 3/3')
- cont = read()
- clear()
- print()
- print('Are you ready to run the program? (y/n)')
- conf = read()
- if conf ~= 'y' then
- clear()
- print('"y" was not selected.')
- print('The program will now quit...')
- os.sleep(1)
- error()
- end
- clear()
- print()
- print('Building will start in')
- print('3')
- os.sleep(1)
- print('2')
- os.sleep(1)
- print('1')
- os.sleep(1)
- clear()
- print()
- print('Building...')
- -------------------------------------------------- Build --------------------------------------------------
- -- 4 Quadrants
- for i=1, 4 do
- turtle.select(i)
- bm.move('uuu')
- bm.move('cCfcCfcCfcCfcCfcCfcCrfr')
- bm.move('cCfcCfcCfcCfcCfcCfcClfl')
- bm.move('cCfcCfcCfcCfcCfcCfcCrfr')
- bm.move('cCfcCfcCf')
- turtle.select(5)
- bm.move('cCf')
- turtle.select(i)
- bm.move('cCfcCfcClfl')
- bm.move('cCfcCfcCfcCfcCfcCfcCrfr')
- bm.move('cCfcCfcCfcCfcCfcCfcClfl')
- bm.move('cCfcCfcCfcCfcCfcCfcC')
- bm.move('flffuf')
- turtle.select(6) -- interactor
- turtle.placeDown()
- turtle.back()
- turtle.select(9) -- energy
- turtle.placeDown()
- turtle.back()
- turtle.down()
- turtle.select(7) -- crafter
- turtle.placeDown()
- turtle.up()
- turtle.select(9) -- energy
- turtle.placeDown()
- turtle.select(8) -- item
- turtle.placeDown()
- turtle.back()
- turtle.select(9) -- energy
- turtle.placeDown()
- turtle.select(8) -- item
- turtle.placeDown()
- bm.move('ffffddddbbbl')
- bm.move('ZfZfZfZfZrfZfZ')
- bm.move('fffrfffffffffffr') -- return to start
- end
- -- Restock from chest
- bm.move('ll')
- turtle.select(1) -- Water
- turtle.suck(1)
- turtle.select(2) -- Water
- turtle.suck(1)
- turtle.select(3) -- Hoe
- turtle.suck(1)
- turtle.select(4) -- Crop Sticks
- turtle.suck(48)
- turtle.select(5) -- Crop Sticks
- turtle.suck(48)
- turtle.select(6) -- Crop Sticks
- turtle.suck(48)
- turtle.select(7) -- Crop Sticks
- turtle.suck(48)
- bm.move('ll')
- hoe = turtle.getItemDetail(3)
- if hoe ~= nil then
- if hoe.name == 'minecraft:diamond_hoe' then
- turtle.select(8)
- bm.move('ubuuuf')
- shell.run('equip 3 left')
- for i=1, 4 do
- turtle.select(i+3)
- bm.move('cCfcCfcCfcCfcCfcCfcCrfr')
- bm.move('cCfcCfcCfcCfcCfcCfcClfl')
- bm.move('cCfcCfcCfcCfcCfcCfcCrfr')
- bm.move('cCfcCfcCfcCfcCfcCfcClfl')
- bm.move('cCfcCfcCfcCfcCfcCfcCrfr')
- bm.move('cCfcCfcCfcCfcCfcCfcClfl')
- bm.move('cCfcCfcCfcCfcCfcCfcC')
- bm.move('fffffffflffffffll') -- move to next quad
- end
- bm.move('bdddfd') -- return back
- shell.run('equip 3 left')
- end
- end
- -- Irrigation
- bm.move('fffffffrfffffffcuu')
- turtle.select(1) -- water
- turtle.place()
- bm.move('ll')
- turtle.select(2) -- water
- turtle.place()
- turtle.select(16) -- acc
- bm.move('uC')
- turtle.up()
- turtle.select(10) -- fluid
- turtle.placeDown()
- turtle.select(8) -- item
- turtle.placeDown()
- turtle.select(9) -- energy
- turtle.placeDown()
- turtle.up()
- turtle.select(10) -- fluid
- turtle.placeDown()
- turtle.select(8) -- item
- turtle.placeDown()
- turtle.select(9) -- energy
- turtle.placeDown()
- turtle.up()
- turtle.select(11) -- tank
- turtle.placeDown()
- turtle.select(12) -- irr
- turtle.turnLeft()
- for i=1, 2 do
- bm.move('fCfCfCflffffd')
- turtle.select(14) -- glo
- bm.move('lXrrXrb')
- turtle.select(12) -- irr
- turtle.place()
- turtle.down()
- turtle.select(13) -- spr
- bm.move('Xuuf')
- turtle.select(12) -- irr
- bm.move('fCfCfCfCfCfCfCfd')
- turtle.select(14) -- glo
- bm.move('lXrrXrb')
- turtle.select(12) -- irr
- turtle.place()
- turtle.down()
- turtle.select(13) -- spr
- bm.move('Xuuf')
- turtle.select(12) -- irr
- bm.move('ffffffffbbbblffff')
- end
- bm.move('lffd')
- turtle.select(15)
- turtle.placeDown()
- turtle.select(1)
- bm.move('fffdddddrfffffffrffffffffffffr') -- return home
- bm.move('rrxrr') -- break chest
- clear()
- print()
- print('Building Finished')
Add Comment
Please, Sign In to add comment