parent
53fe827e4d
commit
294713ce56
@ -1,20 +1,18 @@
|
|||||||
-- See README for usage info
|
-- See README for usage info
|
||||||
-- https://git.desu.ltd/salt/mc-scripts/src/branch/master/stoneblock-3-chicken-breeder/README.md
|
-- https://git.desu.ltd/salt/mc-scripts/src/branch/master/stoneblock-3-chicken-breeder/README.md
|
||||||
|
|
||||||
-- Breaks and replaces the breeder on top of the turtle
|
|
||||||
-- This is called after every generation
|
|
||||||
function placeBreeder()
|
function placeBreeder()
|
||||||
print('Initializing breeder...')
|
print('Initializing breeder...')
|
||||||
breeder = peripheral.wrap('top')
|
breeder = peripheral.wrap('top')
|
||||||
-- This ensures that we have the new generation chicken in slot 1
|
-- Why are we discarding slot 2?
|
||||||
|
-- Because, by design, it MUST be
|
||||||
|
-- the trash chicken from the last
|
||||||
|
-- generation.
|
||||||
|
breeder.pushItems('bottom', 2)
|
||||||
for i = 1, 16, 1 do
|
for i = 1, 16, 1 do
|
||||||
turtle.select(i)
|
turtle.select(i)
|
||||||
turtle.suckUp()
|
turtle.suckUp()
|
||||||
end
|
end
|
||||||
turtle.digUp()
|
turtle.digUp()
|
||||||
-- Why are we discarding slot 2? Because, by design, it MUST be the trash
|
|
||||||
-- chicken from the last generation.
|
|
||||||
breeder.pushItems('bottom', 2)
|
|
||||||
selectItem('chickens:breeder')
|
selectItem('chickens:breeder')
|
||||||
turtle.placeUp()
|
turtle.placeUp()
|
||||||
selectItem('minecraft:wheat_seeds')
|
selectItem('minecraft:wheat_seeds')
|
||||||
|
Loading…
Reference in New Issue
Block a user