Mojira Archive
MCPE-119301

Durability Queries Don't Work In Resource Packs

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