Posted 30 March 2013 - 07:18 PM
In CC v1.5.2, turtles place most rotatable blocks (tested with pistons/logs/stairs) so that they're oriented opposite of the turtle's facing. In other words, most blocks always face the turtle when place() is used, and placeUp/Down() uses the same orientation as place().
There is no way in vanilla CC (that I'm aware of) for turtles to place these blocks oriented Up or Down.
Oddly, wood logs are always placed facing Up.
The only work-around I know of is to use the Prototype Omniwrench from Omnitools (via turtle.place()) when it gets updated.
It does have a major limitation: while it works with vanilla minecraft blocks, most rotatable mod blocks can't be rotated with it.
I propose adding a parameter to place/Up/Down() that specifies how the placed block should be oriented (if it can be). This would allow for a consistent method of placing rotatable blocks in all 6 directions, 2 of which are currently impossible. It would support all turtle placeable blocks whereas Omnitools only supports a small subset.
If there isn't a method in MC to directly rotate blocks, I imagine this would still be implementable by adjusting the fake player's orientation,looking vector, and/or other fiddly bits. It may require a block to be present in the proper spot for the rotatable block to be placed against.
Example parameter details:
There is no way in vanilla CC (that I'm aware of) for turtles to place these blocks oriented Up or Down.
Oddly, wood logs are always placed facing Up.
The only work-around I know of is to use the Prototype Omniwrench from Omnitools (via turtle.place()) when it gets updated.
It does have a major limitation: while it works with vanilla minecraft blocks, most rotatable mod blocks can't be rotated with it.
I propose adding a parameter to place/Up/Down() that specifies how the placed block should be oriented (if it can be). This would allow for a consistent method of placing rotatable blocks in all 6 directions, 2 of which are currently impossible. It would support all turtle placeable blocks whereas Omnitools only supports a small subset.
If there isn't a method in MC to directly rotate blocks, I imagine this would still be implementable by adjusting the fake player's orientation,looking vector, and/or other fiddly bits. It may require a block to be present in the proper spot for the rotatable block to be placed against.
Example parameter details:
- If the parameter == 1, then rotate the placed block so that it faces the turtle (like how it does atm).
- If the parameter == 2, then rotate the placed block so that it faces away from the turtle.
- If the parameter == 3, then rotate the placed block so that it faces left from the turtle's facing.
- If the parameter == 4, then rotate the placed block so that it faces right from the turtle's facing.
- If the parameter == 5, then rotate the placed block so that it faces up.
- If the parameter == 6, then rotate the placed block so that it faces down.