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

Molang’s query “query.hurt_time” doesn’t work correctly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.2 Hotfix
    • None
    • Unconfirmed
    • Windows

      When used in a resource pack’s animation controller “query.hurt_time” seems to always returns 0.

      -Step to reproduce:

      1 Create a behavior pack's animation controller like the attached one.

      2 Link it with your entity.

      -Expected result: The entity when hurt plays his animation for 30s/600 ticks and then stops.

      -Observed result: The entity never plays the hurt’s animations even when I hurt It. when I remove “&& query.hurt_time != 0” the entity plays the animation without being hurt but never stops.

        1. test.json
          0.4 kB
          yoyolerigolo

            yoyolerigolo yoyolerigolo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: