Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- V 1.4
- Created by Minecraft user Paperclip_Tank for an automatic smoothie making machine in FTB infinite
- Place storage containers in according locations
- Place starting item in each location
- Berries = Front - Slot 1
- Snowball = Bottom - Slot 2
- Output = Top - Slot 3
- Juicer = - Slot 5
- ============================
- Modem Side - Left
- Crafting - Right
- Display - Displays number of made items - REMOVED WIRELESS
- Supply - Checks to make sure there are enough Berries and Snowballs - refills as needed
- Create - Checks to make sure there are enough Berries, Snowballs, space for new smoothie - creates new smoothie
- DropOff - Drops off created smoothies into container
- --]]
- local count = 0
- local function counting()
- count = count + 1
- end
- local function display()
- term.clear()
- term.setCursorPos(1,1)
- print(count)
- end
- local function supply()
- if turtle.getItemCount(1) < 2 then
- turtle.select(1)
- turtle.suck(62)
- end
- if turtle.getItemCount(2) < 2 then
- turtle.select(2)
- turtle.suckDown(14)
- end
- end
- local function create()
- if turtle.getItemCount(3) == 0 then
- if turtle.getItemCount(1) > 1 then
- if turtle.getItemCount(2) > 1 then
- counting()
- turtle.select(1)
- turtle.craft()
- end
- end
- end
- end
- local function dropOff()
- turtle.select(3)
- turtle.dropUp()
- end
- while true do
- supply()
- create()
- dropOff()
- display()
- sleep(.8)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement