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

minecraft:hand_container returns null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.16.221 Hotfix
    • None
    • Unconfirmed
    • Windows

      system.getComponent(player, "minecraft:hand_container") returns null.
      Taken from tis example: https://bedrock.dev/docs/stable/Scripting#minecraft:hand_container
       
      Checked with this code:
      system.checkMainHand = function(eventData){
      let handContainer = system.getComponent(eventData.data.player, "minecraft:hand_container");
      if (player == null) {
      this.executeCommand('say ' + "player is null", () => {})
      }    
      if (player.handContainer == null) {
            this.executeCommand('say ' + "handContainer is null", () => {})
          }
      };
      returns null

            MendCraft Walker Humphrey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: