reduce badness
This commit is contained in:
parent
61eefcba8c
commit
c91761f3a1
9 changed files with 846 additions and 2333 deletions
|
@ -1,34 +0,0 @@
|
|||
chest = peripheral.wrap("front")
|
||||
|
||||
local function bake()
|
||||
for i = 2,16 do
|
||||
turtle.select(i)
|
||||
turtle.drop()
|
||||
end
|
||||
turtle.suck()
|
||||
items = chest.list()
|
||||
local pretty = require "cc.pretty"
|
||||
pretty.pretty_print(items)
|
||||
for k,v in pairs(items) do
|
||||
if v.name == "minecraft:wheat" then
|
||||
chest.pushItems("front",k,64,1)
|
||||
end
|
||||
end
|
||||
turtle.drop()
|
||||
turtle.select(2)
|
||||
count = chest.getItemDetail(1).count/3
|
||||
turtle.suck(count)
|
||||
turtle.select(5)
|
||||
turtle.suck(count)
|
||||
turtle.select(6)
|
||||
turtle.suck(count)
|
||||
for i = 1, count do
|
||||
turtle.select(1)
|
||||
turtle.placeDown()
|
||||
turtle.craft()
|
||||
turtle.select(3)
|
||||
turtle.drop()
|
||||
end
|
||||
end
|
||||
bake()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue