[ComputerCraft] The Basics

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Sorcelator

New Member
Jul 29, 2019
3
0
0
I've been reading over the Wiki and the forums here and I can't seem to get my Turtles to just do a basic action like Move. Our server does not require turtles to be fueled so I know that is not the issue.

My basic code is this:
Code:
while turtle.detectDown() do
  turtle.forward()
end

I'm really confused. I can get it to Turn however. That same code works just fine if I replace turtle.forward with turtle.turnLeft it will turn left forever until I ctrl+t the program. So what am I missing? Is the server configured to not allow move commands? When I go in to the API Mode and do any turtle move commands it returns false.
 

VikeStep

New Member
Jul 29, 2019
1,117
0
0
You know now you mention it, I haven't been able to do this on the server i play on as well. Its interesting though that the excavate command works and it uses turtle.forward() yet this doesn't work. I'm starting to think it might have to do with protection plugins on the server but it seems unlikely since i can still turtle.dig() blocks in a claim

can you try it in SSP?

EDIT: just remembered, you need fuel! put some coal in the first slot and type refuel
 

SkyBoy96

New Member
Jul 29, 2019
100
0
0
Two things, not sure which is right. One: you might need to specify whether it is looking for true or false. So,
Code:
while turtle.detectDown() = true do
  turtle.forward()
end
Also, is there a block under your turtle? Cause that's what it's looking for, and it won't move without it with the code I gave, I believe.
EDIT: is there a block in front of the turtle? The side with the chest is the back, and the side with the disk slot thing is the front. If the turtle has something in front of it, it won't be able to move, due to the laws of physics that say two objects cannot occupy the same space at the same time
 

Sorcelator

New Member
Jul 29, 2019
3
0
0
Its in the middle of a room on the floor so there is a block under it. The server doesn't require fuel, I've tested it with every slot inside filled with coal, still nothing. I think there is something not set right on the server that is restricting the movement of the turtle itself.
 

VikeStep

New Member
Jul 29, 2019
1,117
0
0
the slots dont need to be filled with coal you need to type the command refuel into it so it uses that coal
 

Sorcelator

New Member
Jul 29, 2019
3
0
0
yeah I just figured out that you have to give it a command to actually fuel haha. I'm really dumb.