Last active
August 29, 2015 13:55
-
-
Save Mumberthrax/8727255 to your computer and use it in GitHub Desktop.
automated unstable ingot crafting with openperipherals' PIM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Automatic Unstable ingot crafting | |
by Mumberthrax | |
license: cc-by-sa | |
vervion 1.1: fixed a derp up in shovel/wand crafting. forgot an "if" | |
--------------- | |
For best results, use with a | |
crafting station, a PIM, and some | |
method of item transfer from PIM to | |
turtle (e.g. transfer node) | |
* comment out undesired section | |
* uncomment desired section | |
* save | |
* fill turtle crafting grid appropriately | |
* run program | |
* place sigil, diamond, and iron into | |
crafting station - only put as many | |
dia/iron as you need | |
* stand on PIM | |
* shift-click on unstable ingots | |
* ??? | |
* profit | |
--------------------------------- | |
Table of contents: | |
* sword | |
* pickaxe | |
* axe | |
* shovel / builder's wand | |
* hoe | |
* portal to the deep dark | |
* ethereal glass | |
* sonar goggles | |
* block | |
--]] | |
--[[ | |
-- Sword | |
-- place stick in 2nd column 3rd row | |
while true do | |
if turtle.getItemCount(2)==1 then | |
turtle.select(1) | |
turtle.transferTo(6) | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] | |
--[[ | |
-- Pickaxe | |
-- place stick in column 2 rows 2&3 | |
while true do | |
if turtle.getItemCount(3)==1 then | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] | |
--[[ | |
-- axe | |
-- place stick in column 2 rows 2&3 | |
while true do | |
if turtle.getItemCount(3)==1 then | |
turtle.select(3) | |
turtle.transferTo(5) | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] | |
--[[ | |
-- shovel / wand | |
-- put sticks in turtle, column 1 | |
-- row 2&3 for shovel | |
-- just row 2 for wand | |
while true do | |
if turtle.getItemCount(1)==1 then | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] | |
--[[ | |
-- hoe | |
-- place stick in column 2 rows 2&3 | |
while true do | |
if turtle.getItemCount(2)==1 then | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] | |
--[[ | |
-- Portale to the Deep Dark | |
-- place triple compressed cobble and | |
-- quadruple compressed cobble in | |
-- appropriate spots in turtle | |
while true do | |
if turtle.getItemCount(7)==1 then | |
turtle.select(4) | |
turtle.transferTo(10) | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] | |
--[[ | |
-- Ethereal Glass | |
-- place crafting ingredients in | |
-- appropriate spots in turtle | |
while true do | |
if turtle.getItemCount(4)==1 then | |
turtle.select(4) | |
turtle.transferTo(6) | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] | |
--[[ | |
-- Sonar Goggles | |
-- place ingredients in turtle in | |
-- apporpriate spots | |
while true do | |
if turtle.getItemCount(4)==1 then | |
turtle.select(4) | |
turtle.transferTo(6) | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] | |
--[[ | |
-- Unstable block | |
while true do | |
if turtle.getItemCount(9)==1 then | |
turtle.select(4) | |
turtle.transferTo(10) | |
turtle.select(8) | |
turtle.transferTo(11) | |
turtle.craft() | |
end | |
sleep(1) | |
end | |
--]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment