Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-172782

[ScriptAPI] ContainerSlot not working for not chest block containers

XMLWordPrintable

    • Confirmed
    • Multiple
    • 1074271

      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

            ConMaster2112 ConMaster2112
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: