Compare commits
No commits in common. "8129f039cd939ed5b3ef5d664805b3bb28e4f9ed" and "5fcd59806752582a6f451abb69f1ff531eb7577a" have entirely different histories.
8129f039cd
...
5fcd598067
@ -1,24 +1,20 @@
|
|||||||
-- 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')
|
||||||
-- First, we nab the new chicken in slot 1
|
-- This ensures that we have the new generation chicken in slot 1
|
||||||
turtle.select(1)
|
turtle.select(1)
|
||||||
turtle.suckUp()
|
turtle.suckUp()
|
||||||
-- Then, we destroy the breeder
|
-- Then we select the next slot and bop the breeder
|
||||||
turtle.select(2)
|
turtle.select(2)
|
||||||
turtle.digUp()
|
turtle.digUp()
|
||||||
-- We are now in a position where we have:
|
-- Why are we discarding slot 2? Because, by design, it MUST be the trash
|
||||||
-- 1: Good chicken
|
-- chicken from the last generation.
|
||||||
-- 2: Inferior chicken
|
breeder.pushItems('bottom', 2)
|
||||||
-- 3: Seeds/second inferior chicken
|
|
||||||
-- 4: Breeder/seeds
|
|
||||||
-- 5: Null/breeder
|
|
||||||
-- In any case, discarding 1 item in slot 2 will eliminate poor genes
|
|
||||||
--turtle.select(2) -- Unnecessary due to previous instr
|
|
||||||
turtle.dropDown(1)
|
|
||||||
-- Now we re set-up the breeder
|
|
||||||
selectItem('chickens:breeder')
|
selectItem('chickens:breeder')
|
||||||
turtle.placeUp()
|
turtle.placeUp()
|
||||||
selectItem('minecraft:wheat_seeds')
|
selectItem('minecraft:wheat_seeds')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user