mojira.dev
MCPE-161747

[Gametest] No Way To Check Other Inventory Slots?

Please correct me if I'm wrong as I'm just starting to learn the scripting framework, but there is no way to check slots other than the inventory itself as in no offhand slot test or armor slot tests as the inventory returns a size of 36 for players which excludes the 4 armor slots and the 1 offhand slot.

If so this seems like a major oversight.

Steps To Reproduce:

  • Set up a script to get the players components

  • Observe under 'inventory' the size is 36

Observed Results:

  • There is no way to alter or check armor or the offhand slots using the gametest framework

Expected Results:

  • There is a direct way to check the other inventory slots or the inventory size reflects these extra slots in addition to the base 36 slots.

Comments 1

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Is this still an issue in the latest version? If yes, could you please attach an example mcaddon showcasing the issue?

This ticket will automatically reopen when you reply.

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

Gruntastic

(Unassigned)

Plausible

Multiple

GameTest, add-on, inventory, scripting-api

1.19.21 Hotfix, 1.19.63

Retrieved