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

Durability Queries Don't Work In Resource Packs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.18.0.22 Beta, 1.18.0.20 Beta, 1.17.40.23 Beta, 1.17.40.20 Beta, 1.17.30.24 Beta, 1.17.30.23 Beta, 1.17.30.22 Beta, 1.17.30.21 Beta, 1.17.30.20 Beta, 1.17.11 Hotfix, 1.17.20.22 Beta, 1.17.20.21 Beta, 1.17.10, 1.17.10.23 Beta, 1.17.1 Hotfix, 1.17.10.20 Beta, 1.17.0.58 Beta, 1.17.0.56 Beta, 1.17.0.54 Beta, 1.17.0.52 Beta, 1.17.0.50 Beta, 1.16.230.56 Beta, 1.16.230.54 Beta, 1.16.220, 1.16.230.50 Beta, 1.16.220.52 Beta, 1.16.220.51 Beta, 1.16.220.50 Beta, 1.16.210.61 Beta, 1.16.201 Hotfix, 1.16.210, 1.16.221 Hotfix, 1.17.0, 1.18.2 Hotfix, 1.18.30.33 Preview, 1.18.12 Hotfix, 1.19.20.24 Preview, 1.19.11 Hotfix, 1.19.63, 1.20.50.22 Preview, 1.20.50.23 Preview, 1.20.41 Hotfix
    • Confirmed
    • Multiple
    • 784640

      When attempting to make animations, render controllers, etc. Using the query.remaining_durability or query.max_durability queries, the queries always return 0, despite held items having some durability.

       

      Steps To Reproduce:

      1. Download, install and start a world with the supplied pack
      2. Hold any durable item, go into third person and observe nothing strange
      3. Go into the players resource file and in animate -> Durability Bug, change the comments so that the durability test equal to 0 us uncommented
      4. Reload and observe that when holding any item (durable or not, even no item) you'll begin to constantly spin forwards

      Expected Behavior:

      • Durability queries work in resource packs

      Actual Behavior:

      • Durability queries always return 0 in resource packs

            Gruntastic Gruntastic
            Votes:
            7 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: