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

turtle.push() and turtle.pull()

Started by GhostShadow, 06 January 2013 - 04:59 PM
GhostShadow #1
Posted 06 January 2013 - 05:59 PM
The idea would be like (movable) Vanilla pistons. The turtles will be able to just push-pull blocks like (sticky)pistons can do. We can make some nifty little elevators that way.


turtle.push()
turtle.pushUp()
turtle.pushDown()

--
turtle.pull()
turtle.pullDown()
turtle.pullUp()

You might be thinking that you can just place a piston and pulse a redstone signal to get the same effect, right? But pistons are directional blocks, how could I know the piston is facing the right direction?

EDIT: I was planning to make elevators :|
Others might think of making something more creative.
PixelToast #2
Posted 06 January 2013 - 06:16 PM
so like a piston turtle peripheral?
i like :3
Dlcruz129 #3
Posted 06 January 2013 - 06:22 PM
+1. This would be nice.
Shnupbups #4
Posted 06 January 2013 - 07:35 PM
I fourth this motion. THINK OF THE POSSIBILITIES!
Sebra #5
Posted 06 January 2013 - 11:21 PM
Piston peripheral suggested already. Sunk in sands of messages.
ChunLing #6
Posted 07 January 2013 - 08:43 PM
The most significant problem is that turtles can already place and use pistons. They just don't place them very usefully in every case.
Zudo #7
Posted 09 January 2013 - 06:59 AM
Nice idea! Go on CC modders.
nutcase84 #8
Posted 09 January 2013 - 07:10 AM
This would be nice, but I think it should work like this:

turtle.stick(side, true)
turtle.down/up/left/right/forward/backwards()
turtle.stick(side, false)
It would simplify it a little.
PixelToast #9
Posted 09 January 2013 - 07:21 AM
This would be nice, but I think it should work like this:

turtle.stick(side, true)
turtle.down/up/left/right/forward/backwards()
turtle.stick(side, false)
It would simplify it a little.
sort of like a block grabber?
Kingdaro #10
Posted 09 January 2013 - 07:22 AM
I like nutcase's idea. That would be pretty cool.
ChunLing #11
Posted 09 January 2013 - 07:31 AM
If turtles would consistently place pistons so that they faced away from the turtle, this suggestion would be almost wholly unnecessary. Unfortunately they don't.
nutcase84 #12
Posted 09 January 2013 - 07:32 AM
sort of like a block grabber?
No, a block sticker. It sticks to the turtle until you say turtle.stick(side, false).
Sebra #13
Posted 09 January 2013 - 07:33 AM
This would be nice, but I think it should work like this:

turtle.stick(side, true)
turtle.down/up/left/right/forward/backwards()
turtle.stick(side, false)
It would simplify it a little.
May be better:

p=peripheral.wrap("right")
p.push("up")
p.pull("forward")
nutcase84 #14
Posted 09 January 2013 - 07:35 AM
This would be nice, but I think it should work like this:

turtle.stick(side, true)
turtle.down/up/left/right/forward/backwards()
turtle.stick(side, false)
It would simplify it a little.
May be better:

p=peripheral.wrap("right")
p.push("up")
p.pull("forward")
No, I like the "stick" idea.
ElvishJerricco #15
Posted 09 January 2013 - 09:07 AM
I came to the forums today specifically to suggest exactly this. Same function names and everything.

One minor thing I just thought of:

The turtle should move forward when pushing so that it looks like the turtle is doing the pushing.
Cloudy #16
Posted 09 January 2013 - 09:34 AM
I don't like this idea. There's really no point in it. You want a piston, you place a piston.
Leo Verto #17
Posted 09 January 2013 - 10:03 AM
I agree with Cloudy, I don't really see the point of this, how would you be able to use it? What would make it different from regular pistons?
Left4Cake #18
Posted 09 January 2013 - 11:17 AM
I agree with Cloudy, I don't really see the point of this, how would you be able to use it? What would make it different from regular pistons?

It would be a mobile piston? It could push a block then move and push it aging. Other then making Sokoban in Minecraft, I am not sure how useful this is.
ChunLing #19
Posted 09 January 2013 - 05:29 PM
Really, you can already place pistons in most directions if you get experience with the vagaries of how turtles place them. I still don't know how to get a piston placed so it pushes up, though.
Sebra #20
Posted 10 January 2013 - 02:53 AM
It would be a mobile piston? It could push a block then move and push it aging. Other then making Sokoban in Minecraft, I am not sure how useful this is.
Give your Turtle sample of some ore and let it find it and deliver to you.

For Sokoban/Pusher ability to move one block before by moving fit better.
No, I like the "stick" idea.
Just another option. Seems valid too.
Heracles421 #21
Posted 10 January 2013 - 06:02 AM
Well, another use: Have a house made of turtles holding blocks. You could then send messages to the turtles in order to rearrange the house, make it bigger, smaller, taller, etc. You could even move the entire house!
Matt21 #22
Posted 10 January 2013 - 06:12 AM
Nice idea!
GhostShadow #23
Posted 30 March 2013 - 05:25 AM
I was planning to make elevators. :|
Others might think of something more creative.
Lyqyd #24
Posted 30 March 2013 - 05:31 AM
Locked. No need to revive a suggestion like this.