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

variable.attack_time fails with Cod runtime ID

XMLWordPrintable

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

      I am trying to add an attack animation to my hostile fish mob, but I'm finding that variable.attack_time is not defined when using the cod runtime id. Without the cod runtime_id, my fish flies into space.

       

      This seems similar to MCPE-110042

      In the logs I get this error:

      Error: unhandled request for unknown variable 'variable.attack_time'

       

      The error goes away if I use a different runtime identifier such as minecraft:guardian.

       

            EwokSithLord747 EwokSithLord747
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: