Mojira Archive
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.

Awaiting Response

Gruntastic

2022-08-30, 07:19 PM

2023-08-22, 06:12 PM

2023-08-22, 06:12 PM

0

1

Plausible

GameTest, add-on, inventory, scripting-api

1.19.21 Hotfix, 1.19.63

-