Posted 03 November 2016 - 11:17 PM
I made this to change slots in a turtle:
turtle.select(turtle.getSeletedSlot() + 1)
This changes the slot by 1. The problem is the code doesn't work at slot 16 (there is no slot 17)
I added some stuff and now it doesn't work. Here's the code that doesn't work.
turtle.select(turtle.getSelectedSlot() + 1 if turtle.getSelectedSlot() = 16 then turtle.select(1))
I can't figure out why it doesn't work. I need help please.
turtle.select(turtle.getSeletedSlot() + 1)
This changes the slot by 1. The problem is the code doesn't work at slot 16 (there is no slot 17)
I added some stuff and now it doesn't work. Here's the code that doesn't work.
turtle.select(turtle.getSelectedSlot() + 1 if turtle.getSelectedSlot() = 16 then turtle.select(1))
I can't figure out why it doesn't work. I need help please.