Idk why it gives me this error, im clearly geting the tags from the equippableItem variiable
at forEach (native)
at <anonymous> (custom_components/wand.js:45)```
Here my code
```js
system.runInterval(() => {
world.getAllPlayers().forEach(player => {
if (!player) return;
const equippable = player.getComponent("minecraft:equippable");
const equippedItem = equippable?.getEquipment("Mainhand");
const itemTag = equippedItem.getTags();
if (equippedItem && equippedItem?.typeId === "wands:wand" || itemTag === "wands") {
player?.runCommand(`title @s actionbar §b:: Mana: ${mana}/${maxMana} ::`);
}
});
}, 20);