Jump to content




Code missing a = expected


  • You cannot reply to this topic
1 reply to this topic

#1 Brandonlxd0

  • New Members
  • 1 posts

Posted 15 June 2013 - 08:36 PM

mPeripheral=peripheral.wrap("right")
mPeripheral.setAutoCollect(true)
while true do
if not turtle.attack() then
for i = 1,16 do
if turtle.getItemCount(i) >0 then
turtle.select(i)
turtle.dropDown()
else
break
end
end
end 
if mPeripheral.getLevels() >=30 then
turtle.turnRight()
turtle.turnRight()
turtle.select(2)
turtle.dropDown()
turtle.select(1)
turtle.dropDown()
turtle.suck()
turtle.transferTo(2, 1)
turtle.drop()
turtle.select(2)
mPeripheral.enchant(30)
turtle.drop()
turtle.select(1)
turtle.turnRight
turtle.turnRight
end
end turtle.select(1) end 

Edited by Lyqyd, 17 June 2013 - 12:26 PM.
added code tags


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 17 June 2013 - 12:28 PM

Split into new topic.

turtle.turnRight requires parentheses just like every function. Add parentheses to the two instances of it near the bottom of your code, so that they are `turtle.turnRight()`.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users