Compare commits

..

No commits in common. "8129f039cd939ed5b3ef5d664805b3bb28e4f9ed" and "5fcd59806752582a6f451abb69f1ff531eb7577a" have entirely different histories.

View File

@ -1,24 +1,20 @@
-- See README for usage info
-- 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()
print('Initializing breeder...')
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.suckUp()
-- Then, we destroy the breeder
-- Then we select the next slot and bop the breeder
turtle.select(2)
turtle.digUp()
-- We are now in a position where we have:
-- 1: Good chicken
-- 2: Inferior chicken
-- 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
-- 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')
turtle.placeUp()
selectItem('minecraft:wheat_seeds')