Mojira Archive
MCPE-172782

[ScriptAPI] ContainerSlot not working for not chest block containers

ContainerSlot fails, when is used on block with containers except chest and traped_chest,
behavior:
Can get ContainerSlot instance but can't be used.

tested blocks:

  • chest works
  • trap_chest works
  • undyed_shulker_box doesn't work
  • furnace doesn't work
  • barrel doesn't work

to reproduce:
use any ContianerSlot getter/setter/method

code to reproduce:

shulkerBlock.getComponent("inventory").container.getSlot(0).typeId;

Error:

Pack: ContainerSlot not working.js.mcpack

Fixed

ConMaster2112

2023-07-09, 06:34 PM

2023-09-19, 07:47 PM

2023-09-19, 07:47 PM

1

1

Confirmed

1074271

Script-API

1.20.20.20 Preview

1.20.20.22 Preview, 1.20.30