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

Piston placement

Started by joebodo, 20 April 2014 - 09:11 PM
joebodo #1
Posted 20 April 2014 - 11:11 PM
Version 1.6 included a change to the way pistons are placed by turtles. In the 1.6 version, the turtle can only place a piston with the piston head facing upwards. Prior to 1.6, the piston head faced in the direction the turtle was heading.

The piston can be very useful for turtles to manipulate other blocks. I currently use a piston to maneuver blocks into the correct locations for a schematic builder. Due to the changes in 1.6, I can no longer use this method.

I would like to see the following changed, if possible, for piston placement:

placeUp: piston head is pointing up
placeDown: piston head is pointing down
place: piston head is furthest away from the turtle

Please consider.
Thanks
Cranium #2
Posted 03 May 2014 - 10:09 AM
I do actually hope this gets implemented, because while it's now 100% predictable…it's not really helpful.

Good new to anyone wondering, most wrenches from other mods can change the direction of the pistons, and turtles can use those wrenches with turtle.place().
electrodude512 #3
Posted 05 May 2014 - 08:34 PM
The fact that wrenches can turn pistons is probably the reason that making pistons always face up was a viable option.
awsmazinggenius #4
Posted 05 May 2014 - 09:45 PM
What about making this so that it works on all blocks with an orientation, not just pistons?
KingofGamesYami #5
Posted 17 May 2014 - 05:12 AM
What about making this:

turtle.place($optional_argument$)
turtle.place("up")
turtle.place('down')
turtle.place('back')
turtle.place('right')
turtle.place('left')
turtle.place('forward')
--#if no argument supplied, automatically places up
--#optional argument is ignored if block does not have orientation.
Lyqyd #6
Posted 17 May 2014 - 10:01 AM
Are you placing a bunch of signs there? turtle.place already has an optional argument.
theoriginalbit #7
Posted 17 May 2014 - 10:10 AM
Personally I'd prefer that the Turtle were to always place the piston facing away from it, meaning
turtle.place would position the piston forward
turtle.placeUp would position the piston upward
turtle.placeDown would position the piston downward
with this logic it doesn't break anything (such as placing signs) and doesn't require extra methods, its just as (if not more intuitive) and means you can place the piston facing in any direction.
Edited on 17 May 2014 - 08:12 AM
awsmazinggenius #8
Posted 17 May 2014 - 01:58 PM
Will this work for things like stairs, signs and other things with an orientation?
theoriginalbit #9
Posted 17 May 2014 - 02:07 PM
Will this work for things like stairs, signs and other things with an orientation?
the method I suggested would. the rotation of those things would be dependent on the way the Turtle is facing.

with stairs just think about the bottom of the stairs always touching the Turtle and the top stair relating to the rotation… unfortunately you'll never have a perfect way to do rotations with the stairs and Turtles, they just don't have as many positions and pitch + yaw unlike a player does to be able to handle all possible rotations of stairs.
Edited on 17 May 2014 - 12:09 PM
SquidDev #10
Posted 17 May 2014 - 02:41 PM
What about making this:

turtle.place($optional_argument$)
turtle.place("up")
turtle.place('down')
turtle.place('back')
turtle.place('right')
turtle.place('left')
turtle.place('forward')
--#if no argument supplied, automatically places up
--#optional argument is ignored if block does not have orientation.

I'd have to agree with this. It would be nice to see some sort of placing system like the OpenComputers robot. The 'side'/'orientation' to place on would be an optional argument: turtle.place([string signText, [number side]])

I don't want to end up with CC copying from OC but this is one of its more useful features.
Edited on 17 May 2014 - 12:47 PM
KingofGamesYami #11
Posted 21 May 2014 - 11:00 PM
Are you placing a bunch of signs there? turtle.place already has an optional argument.
Uh, no… I totally forgot about sign text… SquidDev explained it better than I did.
Tiavor #12
Posted 13 August 2015 - 09:54 PM
6 directions aren't enough for e.g. stairs and signs. each different type of block rotation needs a different implementation.

Can turtles use wrenches to turn blocks? If they are not, then this option is useless.
Edited on 22 September 2015 - 07:12 AM
Lion4ever #13
Posted 30 December 2015 - 01:45 AM
placing the block against the turtle should be the first choice and only choice in my optionion, too.
PleaseDeleteMe #14
Posted 10 January 2016 - 04:15 PM
In 1.76 the piston will face the turtle when placed, however when you place it above or below it will still follow this orientation, there's no way yet to place a turtle facing up or down just by using the three place methods, only 4 orientations are covered. I'd also like to see an optional parameter to allow placement of blocks in a certain orientation.