r/ComputerCraft • • Jan 20 '23

Concept for Create Contraption Turtle

92 Upvotes

10 comments sorted by

20

u/GildedBirch Jan 20 '23

contraption.mount() to assemble contraption.
contraption.unmount() to disassemble contraption.
contraption.isMounted() check if there is mounted contraption.
contraption.rotateLeft() turns contraption 90 decrees to left.
contraption.rotateRight() turns contraption 90 decrees to right.
contraption.rotating(boolean) true or false if contraption should rotate when turtle turns.
contraption.isRotating() check if contraption will rotate with turtle.
contraption.shaftSpeed(int) Rotation speed for the side shaft when turtle is not moving. (negative number for counterclockwise and positive for clockwise)
contraption.getShaftSpeed() check speed of the side shaft.
Feel free to steal this idea if you find it interesting.

2

u/Nemonstrocity Jan 21 '23

I would add independent speed control and independent rotational direction.

....

2

u/GildedBirch Jan 21 '23

That's just how Create handles rotation speed and direction. Wouldn't make too much sense to change it.

1

u/Nemonstrocity Jan 22 '23 edited Jan 22 '23

Agreed, what I mean is would be ... RotatesSpeedLeft(50) RotateSpeedRight(100)

Use negative to rotate clockwise.

So rather than a turtle version of the rotational speed controller more like a transmission.

A better solution is to combine the rotationSpeed into one function and do... RotateSpeed(50,100) RotateSpeed(256,-128)

The first value would be left the second right.

2

u/GildedBirch Jan 22 '23

One option would be to only have shaft on one side, so you can have another peripheral attached.

2

u/Knightedangel01 Feb 01 '23

Is this just a concept or something your coding?

3

u/GildedBirch Feb 03 '23

Just a concept. I have no bravery to tackle the beast that is java coding.

11

u/goblim88m Jan 20 '23

This is actually a great idea

1

u/Brrrrrrrrrrrr__ Aug 31 '24

Instead of using coal as fuel you could wind it up like one of those wind-up toys as fuel

1

u/przybysz112 Feb 23 '23

Concept looks EPIC, but i would be concerned on gow to balanse it and from where would it draw power.

Mebe make it soo sides are inputs, and bottom gas something like wormgear, or rotational speed controller.

In addition would be epic to be able to read speed/stress-o-meters with more than mere comparator 16 values