why its acceptable by the game but doesnt do what is the code say;;;
import { World, Scoreboard,WorldAfterEvents,BlockPermutation,Player} from "@minecraft/server";
world.afterEvents.blockBreak.subscribe(async => {
if (brokenBlockPermutation.typeid === "minecraft:stone")
player.runCommandAsync("scoreboard player add @s 10 Points")
})
the reason for that code is to detect the block that had been mined and run a command