This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TyDoesMC's profile picture

Mob Grinder (Very Basic Small Code) And Random!

Started by TyDoesMC, 05 August 2013 - 03:03 PM
TyDoesMC #1
Posted 05 August 2013 - 05:03 PM
One Of My Random Program's.


--[[ Mob Grinder ]]--
--[[ Functions ]]--
function attack()
turtle.attack()
end
end
--[[ Code ]]--
while true do
attack()
end
H4X0RZ #2
Posted 05 August 2013 - 05:20 PM
It would crash with eof on line 6
TyDoesMC #3
Posted 05 August 2013 - 05:54 PM
Try Adding more [end] to the next line if it says: EOF Expected line 6

If Not Then Try Removing The Only [end] I Highly Doubt It Will Work Though
Kingdaro #4
Posted 05 August 2013 - 05:56 PM
This one line of code does the exact same thing:
while 1 do turtle.attack() end
LadyXI #5
Posted 06 August 2013 - 12:55 AM
Just delete one of the 'end' below turtle.attack() ;)/>