Posted 23 December 2012 - 09:31 AM
Sorry if this is a stupid question, but I am new to programming and even newer to Lua
Here's my code
it gives me an attempt to call nil error on the line with
any help would be appreciated, I just can't figure out what I am doing wrong, I come from a Java background, so some of this syntax is somewhat frustrating. This is probably really simple, I just want to start learning some Lua, because this mod is really interesting
Here's my code
print("How High?")
h = tonumber(read())
turtle.goUp(h)
turtle.select(1)
if turtle.getItemCount(1) < 1 then
turtle.select(2)
end
turlte.place()
print("Your Platform is complete")
it gives me an attempt to call nil error on the line with
turtle.goUp(h)
any help would be appreciated, I just can't figure out what I am doing wrong, I come from a Java background, so some of this syntax is somewhat frustrating. This is probably really simple, I just want to start learning some Lua, because this mod is really interesting