-
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