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

GameTest: setting amount on an ItemStack doesn't update the actual amount in the stack ingame

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.18.12 Hotfix
    • None
    • Unconfirmed
    • Windows

      When using the GameTest framework, you can look up the amount of an item stack. According to the documentation, this amount property is read/write (while the other properties on the item stack are read-only). 

      However, trying to change the amount in the stack by changing the value (which I assume is the intended use for the r/w-ness of the property), the stack in the game is not updated and keeps the amount as is.

      Reading the value after setting it does return the updated value.

      I don't know if this is intentional, but if it is, I don't think having this property as r/w doesn't make sense as it creates the wrong expectations. I would rather have it to work as I expect to, though.

      I'm building this on a Windows 11 PC, but it would apply for all platforms using Realms or a server.

            Inferis Tom Adriaenssen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: