mojira.dev
MCPE-152564

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

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.

Comments 2

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Also, just a reminder, to make your bug report as effective as possible, please try and include the following steps to reproduce the problem:
Steps to Reproduce:

Observed Results:
(Briefly describe what happens)
Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Tom Adriaenssen

(Unassigned)

Unconfirmed

Windows

Windows 11

1.18.12 Hotfix

Retrieved