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

Turtles / computers initiating trains

Started by Guido, 27 March 2018 - 03:57 PM
Guido #1
Posted 27 March 2018 - 05:57 PM
Hello everyone,

I'm working on a storage project with communicating storage units. I'm using turtles to transport items between them. It would be cool if I could build a train for mass transport. I just can't figure out how to move a train with a turtle or a computer. Has anyone a working example I can copy paste?

Thanks in advance,
Guido.
KingofGamesYami #2
Posted 27 March 2018 - 06:01 PM
Did minecraft add trains while I wasn't looking or are they from another mod? If they're from another mod we need to know which one; various implementations of trains behave differently.
Guido #3
Posted 27 March 2018 - 06:03 PM
I mean a vanilla minecart, like one with a chest or furnace:

https://minecraft.gamepedia.com/Minecart
https://minecraft.gamepedia.com/Minecart_with_Chest
https://minecraft.gamepedia.com/Minecart_with_Furnace
KingofGamesYami #4
Posted 27 March 2018 - 06:04 PM
Ah, minecarts. You can use powered rails and tell the turtle/computer to emit a redstone signal.

link.
Edited on 27 March 2018 - 04:05 PM
Lupus590 #5
Posted 27 March 2018 - 06:05 PM
Sounds like this, which I need to finish at some point.

Edit: Now that I see Yami's posts I can see that it may not be like that. Still I should get back to that project.
Edited on 27 March 2018 - 04:07 PM
Guido #6
Posted 27 March 2018 - 06:06 PM
Thanks, I'll have a look.
Guido #7
Posted 27 March 2018 - 07:30 PM
So I build some tracks, had some of them powered rails (https://minecraft.gamepedia.com/Powered_Rail) and a lever next to it. Then I placed a minecart on top of the powered rail, and activated the lever. The powered rails gave a red glow, but the cart did not move. It starts only when me (the players) moves it a little, then it goes faster in that direction.

So I want the cart to move without a player, just a computer. What am I doing wrong?
EveryOS #8
Posted 27 March 2018 - 08:07 PM
As far as MC 360, you have to place a block behind the powered rail. Not sure about the computer edition though, I don't think that that was a limitation

EDIT: Once again, as far as MC 360, you could also place a sloped track. Note that in MC 360 the block has to be placed on the opposite side of the rail as you would like the minecart to go.
Edited on 27 March 2018 - 06:09 PM
Lupus590 #9
Posted 27 March 2018 - 08:20 PM
Turtles can access chestCart inventories, and both turtles and computers can produce redstone. Combining these, a turtle can load up a chestCart and activate the powered rail under it to send the cart on it's way.
Guido #10
Posted 27 March 2018 - 09:29 PM
Thanks, now it's working. A little powered rail with a block at the end, and the cart on the rail next to the block. I can make a track layout now with redstone control! Thanks again.