mojira.dev
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:

[media]

Pack:

[media]

Attachments

Comments 0

No comments.

ConMaster2112

(Unassigned)

1074271

Confirmed

Multiple

Windows 11

Script-API

1.20.20.20 Preview

1.20.20.22 Preview, 1.20.30

Retrieved