Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-168265

2 Comparator loop is able to act like a 1-tick clock, when it is powered for 1-tick or when it receives subtractive pulse which length is odd number of ticks [Closed: Working as intended]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19.70
    • None
    • Unconfirmed
    • Windows

      In Java it is not possible to make "1 repeater and 1 comparator" or "2 comparator" loop that acts as 1 tick clock. But in Bedrock it is despite of MC-109737 working as intended.

      In bedrock this loops acts like a 1-tick clock when other side is powered for 1-tick (subtraction mode doesn't matter)

      In java this never acts like a clock as the comparator is unaffected by 1-tick pulses, that both sides always either on or off

      This type of circuit (and circuit where both components are comparators) shouldn't be able to act as a 1-tick clock.

      I believe that this is inconsistent with the feature in MC-109737. The comparator shouldn't be affected by a single tick pulse.

       

      Example circuit of the odd tick length subtractions that it is easier to reproduce with a simple button press

      Function:
      1-5 tick pulse generator subtracts 14 from comparator feedback loop (memory cell) that has strength 15, that it is required to subtract 14 twice until the circuit resets, this acts like toggle flip flop.
      if power is 0 redstone torch repowers the loop to strength 15

      Alternative circuit, which doesn't have repeater, but works almost identically

      A pulse which length is odd number of ticks, causes the circuit to act like a 1-tick clock on Bedrock.
      This happens when the redstone torch re-powers the circuit, but the other half has 0 state which causes 1-tick clock effect.
      The circuit can be reset by breaking the loop, or powering the "memory cell" more than 1-tick.

      On Java the comparators are unaffected by  1 tick pulses and odd tick pulses act like 1 tick shorter pulses, e.g. 3 tick pulse acts like 2 tick.

      I have attached both Java and Bedrock worlds.
      I recorded clips testing 1-5 tick length subtractions from the "memory cell".
      The 4 and 5 tick pulse circuits subtract strength of 7 twice (as intended) from the comparator loop strength 15, even this causes 1-tick clock effect.
      I am unsure why this happens only with odd tick length pulses in Bedrock.

      1-tick clock effect happens in Bedrock 1.19.70 and 1.16
      Does not happen in Java 1.16 1.17 1.19.3

      Video clips
      bedrock-simple-alt-circuit.mp4 : Alternative circuit in bedrock (different that the components do not render switching states, but the wire does)

      java-comparator-lq-2.mp4 : Shows the function in Java

      bedrock-comparator-lq.mp4 : Shows the function in Bedrock

      JavaWorld.zip Minecraft Java 1.19.3 world
      BedrockWorld.zip Minecraft Bedrock 1.19.70

        1. bedrock-comparator-lq.mp4
          8.94 MB
        2. bedrock-simple-alt-circuit.mp4
          1.78 MB
        3. BedrockWorld.zip
          169 kB
        4. BedrockWorldAlternativeCircuit.zip
          155 kB
        5. image-2023-03-14-20-45-05-436.png
          image-2023-03-14-20-45-05-436.png
          258 kB
        6. image-2023-03-14-20-56-42-807.png
          image-2023-03-14-20-56-42-807.png
          152 kB
        7. image-2023-03-14-21-00-40-403.png
          image-2023-03-14-21-00-40-403.png
          157 kB
        8. image-2023-03-14-21-49-42-113.png
          image-2023-03-14-21-49-42-113.png
          156 kB
        9. image-2023-03-14-22-06-59-836.png
          image-2023-03-14-22-06-59-836.png
          162 kB
        10. image-2023-03-14-22-09-00-060.png
          image-2023-03-14-22-09-00-060.png
          179 kB
        11. java-comparator-lq-2.mp4
          9.11 MB
        12. JavaWorld.zip
          1.17 MB

            kaelygon kaelygon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: