Brakeless Gate Loop

Severity:

Status:

Code:

Description: The Brakeless Gate Loop is a circuit where Redstone CG logic gates are arranged in a loop without any spaces or components between them. This loop can consist of any combination of logic gates and must have at least 4 components, increasing in increments of 2.

Cause: When the last block in the loop is placed, it triggers neighbor updates, causing the gates to recursively check their inputs. This results in an overwhelming recursion, leading to a StackOverflowError exception in Java.

Consequences: The Minecraft world is not corrupted and can be reloaded. However, if the loop updates immediately upon reloading, the game crashes again. To fix this, the loop must be disarmed by removing one of the blocks without causing updates.

Safe Configurations: Include at least one Redstone Dust Wire or any non-logic gate component in the loop to break the recursion.

Buffer Brakeless Gate Loop