- ComputerCraft | Programmable Computers for Minecraft
- → yarma92's Content
yarma92's Content
There have been 11 items by yarma92 (Search limited from 10-February 22)
#102018 Turtle Swarm Quarry v0.3 and master/module APIs
Posted by
yarma92
on 26 March 2013 - 07:32 AM
in
Turtle Programs
#101924 Turtle Swarm Quarry v0.3 and master/module APIs
Posted by
yarma92
on 26 March 2013 - 03:35 AM
in
Turtle Programs
#101918 Turtle Swarm Quarry v0.3 and master/module APIs
Posted by
yarma92
on 26 March 2013 - 03:26 AM
in
Turtle Programs
This is what you said they are doing.
x 3 2 1 <- {-37, 63, 924}
x x x x
x x x x
{-49, 63, 912} -> x x x x
However -37, 63, 924 is a different chunk :S It is the chunk to the east of the one I want them to mine.
#101908 Turtle Swarm Quarry v0.3 and master/module APIs
Posted by
yarma92
on 26 March 2013 - 03:16 AM
in
Turtle Programs
#101901 Turtle Swarm Quarry v0.3 and master/module APIs
Posted by
yarma92
on 26 March 2013 - 03:02 AM
in
Turtle Programs
mastermine -49 63 912 16 16
Module 1 is mining at {-37, 63, 924}
Module 2 is mining at {-37, 63, 920}
Module 3 is mining at {-37, 63, 916}
#97968 Turtle Swarm Quarry v0.3 and master/module APIs
Posted by
yarma92
on 17 March 2013 - 12:55 AM
in
Turtle Programs
#97695 Enchant-o-matic
Posted by
yarma92
on 16 March 2013 - 07:56 AM
in
Turtle Programs

Its a simple set up really, the turtle dumps enchanted books into the chest at the (or on the right if you want it to) and pulls books 1 at a time from the chest above and produces level 30 enchantments.
Here is the code, and the pastebin http://pastebin.com/P7qXS1sS
m=peripheral.wrap("right")
m.setAutoCollect(true)
function levelCheck()
level = m.getLevels()
shell.run("clear")
print ("Currently level: "..level)
return level
end
function getBook()
local bookCount
local toReturn
turtle.suckUp()
bookCount = turtle.getItemCount(1)
if bookCount == 0 then
while bookCount == 0 do
shell.run("clear")
print ("Please Reload the Chest")
sleep(1)
turtle.suckUp()
bookCount = turtle.getItemCount(1)
end
end
if bookCount ~= 0 then do
print("Returning Books")
sleep(2)
returnBooks(bookCount)
print("Extra books returned")
end
end
end
function returnBooks(x)
x = x-1
print("Returning "..x.." books")
sleep(4)
turtle.transferTo(2, x)
turtle.select(2)
turtle.dropUp()
turtle.select(1)
end
while true do
local lv = levelCheck()
if lv >= 30 then
getBook()
m.enchant(30)
turtle.drop()
end
sleep (2)
end
Please comment with feedback and suggestions/improvements.
Edit: New version is up.
Change Log
16/03/12 - Fixed a bug where it would not replace books correctly when reloading the top chest.
Yarma
#97689 Turtle Swarm Quarry v0.3 and master/module APIs
Posted by
yarma92
on 16 March 2013 - 07:40 AM
in
Turtle Programs
#97682 Turtle Swarm Quarry v0.3 and master/module APIs
Posted by
yarma92
on 16 March 2013 - 07:07 AM
in
Turtle Programs
Yarma.
#60795 MLG Mining: Circular Branch Mining
Posted by
yarma92
on 17 December 2012 - 12:21 PM
in
Turtle Programs
Ulthean, on 17 December 2012 - 06:16 AM, said:
yarma92, on 17 December 2012 - 02:57 AM, said:
digTunnel -l 32 -torchs -torchS up
It returns the error saying invalid direction. This is happening regardless of the direction
You are correct, I accidentaly put isDir(dir) even though dir wasn't correctly declared/initiated.
Thanks for pointing it out, I will update the code immediatly
I guess I wasn't exactly my sharpest at 6 o'clock in the morning
Its seems to be running through all 3 updated programs with the torches etc. Also i dont know many who are at their best then.
#60607 MLG Mining: Circular Branch Mining
Posted by
yarma92
on 17 December 2012 - 02:57 AM
in
Turtle Programs
digTunnel -l 32 -torchs -torchS up
It returns the error saying invalid direction. This is happening regardless of the direction
edit: from some testing I have it seems the direction you specify after -torcheS is not being parsed through correctly
Edit 2: Found a fix my using a loca var to hold the direction and then passing the local var to the direction check.
elseif args[readParams+1] == "-torchS" then if not (readParams + 1 < #args) then printManual() return end local x=args[readParams+2] --This line is the declaration/assignament-- if not isDir(x) then --originally if not isDir(dir) then-- printDirs() return end torchSuckDir=args[readParams+2] readParams=readParams+2
- ComputerCraft | Programmable Computers for Minecraft
- → yarma92's Content


