Conveyor Belts acting funky

Godot Version 4.4.1

Hey folks, very new to godot, trying to recreate a project I made a while back in Unreal Engine
Ive been working on conveyor belts similar to those found in factorio, the idea is that they are tile/grid based and the player places them down similar to in minecraft. Ideally the conveyors only move one direction, and the player can manually rotate the tile instead of direction changes being written in code. I originally used a tutorial I found online to make these belts in 2D (https://www.youtube.com/watch?v=ZkMEltXDsAw&ab_channel=ConstellationSloth ), which worked pretty well, my issue is the act very funky now that Ive (mostly) moved them to 3D. They seem to reach a certain point and move backwards and I cant figure out why ( Imgur: The magic of the Internet to see the issue)

The conveyors are made from 3 scripts: Imgur: The magic of the Internet
Im not really sure how to share these so Ill just put photos in here
Conveyor Belt: Imgur: The magic of the Internet
Detector: Imgur: The magic of the Internet
Item Holder: Imgur: The magic of the Internet

Additionally, on the far end of the belt is a scene named “giver” which spawns the items on the belt
Here is its code: Imgur: The magic of the Internet
Im not sure if its needed, as its simply just a mesh, but here is also the code for the item moving on the belt: Imgur: The magic of the Internet

Any help is appreciated, I have no idea why they keep turning around, I even tried offsetting the detectors so it can only overlap with the next belt in the line.

Is your item holder positioned correctly? You could change it’s type to a Marker3D so it’s target position is more visible


Please paste scripts instead of screenshots