Jump to content




turtle.push() and turtle.pull()


  • This topic is locked This topic is locked
23 replies to this topic

#1 GhostShadow

  • Members
  • 22 posts

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.

#2 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 06 January 2013 - 06:16 PM

so like a piston turtle peripheral?
i like :3

#3 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 06 January 2013 - 06:22 PM

+1. This would be nice.

#4 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 06 January 2013 - 07:35 PM

I fourth this motion. THINK OF THE POSSIBILITIES!

#5 Sebra

  • Members
  • 726 posts

Posted 06 January 2013 - 11:21 PM

Piston peripheral suggested already. Sunk in sands of messages.

#6 ChunLing

  • Members
  • 2,027 posts

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.

#7 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 09 January 2013 - 06:59 AM

Nice idea! Go on CC modders.

#8 nutcase84

  • Members
  • 711 posts
  • LocationIn My Lonely Little Computer Corner

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.

#9 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 09 January 2013 - 07:21 AM

View Postnutcase84, on 09 January 2013 - 07:10 AM, said:

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?

#10 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 09 January 2013 - 07:22 AM

I like nutcase's idea. That would be pretty cool.

#11 ChunLing

  • Members
  • 2,027 posts

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.

#12 nutcase84

  • Members
  • 711 posts
  • LocationIn My Lonely Little Computer Corner

Posted 09 January 2013 - 07:32 AM

View PostPixelToast, on 09 January 2013 - 07:21 AM, said:

sort of like a block grabber?
No, a block sticker. It sticks to the turtle until you say turtle.stick(side, false).

#13 Sebra

  • Members
  • 726 posts

Posted 09 January 2013 - 07:33 AM

View Postnutcase84, on 09 January 2013 - 07:10 AM, said:

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")


#14 nutcase84

  • Members
  • 711 posts
  • LocationIn My Lonely Little Computer Corner

Posted 09 January 2013 - 07:35 AM

View PostSebra, on 09 January 2013 - 07:33 AM, said:

View Postnutcase84, on 09 January 2013 - 07:10 AM, said:

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.

#15 ElvishJerricco

  • Members
  • 803 posts

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.

#16 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

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.

#17 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

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?

#18 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 09 January 2013 - 11:17 AM

View PostLeo Verto, on 09 January 2013 - 10:03 AM, said:

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.

#19 ChunLing

  • Members
  • 2,027 posts

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.

#20 Sebra

  • Members
  • 726 posts

Posted 10 January 2013 - 02:53 AM

View PostLeft4Cake, on 09 January 2013 - 11:17 AM, said:

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.

View Postnutcase84, on 09 January 2013 - 07:35 AM, said:

No, I like the "stick" idea.
Just another option. Seems valid too.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users