#GRteo17

1 messages · Page 1 of 1 (latest)

idle thistle
#

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

idle thistle
#

@hushed hollow and what I write on code;;;

fathom palm
#

No

#

Block Permutation Class doesn't have typeId or typeid property