Minecraft
ComputerCraft/Feed The Beast Code
ONE WIDE STRIP / THAT CANINDIAN
ComputerCraft is a mod for Minecraft that allows you to program computers called turtles to do work for you. Feed The Beast is a mod pack for Minecraft that has the ComputerCraft mod in it.
This program is a custom made program that does the simple job of making a 1 wide strip of any length. All you have to do is type (name of program) (hight).
local tArgs = {...}
local todo = tonumber(tArgs[1])
local sslot = 1
function checkSlot()
turtle.getItemCount(sslot)
while turtle.getItemCount(sslot) < 1 do
sslot = (sslot%16)+1
turtle.select(sslot)
end
end
for i = 1, todo do
if turtle.detect() == true then
repeat
checkSlot()
turtle.dig()
sleep(0.5)
until turtle.detect() == false
turtle.place()
turtle.up()
else
checkSlot()
turtle.place()
turtle.up()
end
end
for i = 1, todo do
turtle.down()
end
No comments:
Post a Comment