Computercraft Compatability with Sequenced Gearshift and Rotation Speed Controller is broken
CatsAndSecrets opened this issue ยท 5 comments
Describe the Bug
when attempting to control shafts or cogs through lua via computercraft, it doesnt work. when trying to use the sequenced gearshift with it, it even shows the expected rotation on the bit of the shaft on the gearshift but it doesnt affect anything you have that connected to.
i tested it on 1.20.1 and 1.19.2
Reproduction Steps
- have computercraft and create
- have a computercraft computer with a sequenced gearshift next to it
- write a program making use of the sequencedgearshift.rotate() function
- run it
...
Expected Result
the shaft in front of the gearshift would move with the one in the gearshift, rather than whats in the picture
Screenshots and Videos
Crash Report or Log
No response
Operating System
windows 11
Mod Version
0.5.1f
Minecraft Version
1.20.1
Forge Version
47.2.17
Other Mods
computercraft
Additional Context
No response
and my lua code
gearshift = peripheral.wrap("right")
i = 1
while i == 1 do
gearshift.rotate(1)
end
Ok - the problem is that when you are rotating it one degree at a time, you are sending orders to the gearshift too quickly, so the kinetic network can't cope. You can put a sleep(0.2) after your order, but this is janky, and might not work for your use case. What are you trying to achieve? There is probably a better way to do it.