#block cancel with after event

1 messages · Page 1 of 1 (latest)

languid yarrow
#

maxDistance query

#

About radius 2

manic quarry
#

that'd work right?

proud torrent
#

U should do with beforeEvents of playerBreakBlock and event.cancel = true to cancel the block action that has been broken by the player

manic quarry
#

It's very weird when mining

proud torrent
proud torrent
# manic quarry beforeEvents with playerBreakBlock doesnt work how I like it

Example a snippet of your code in beforeEvents```js
if (Math.random() < 0.00077) {
system.run(() => {
const item = new ItemStack("minecraft:ominous_trial_key");
item.nameTag = "§r§dMine Crate Key";
player.getComponent("inventory").container.addItem(item);
player.sendMessage("§5§l!§r§d You found a mine crate key!");
player.playSound("random.levelup");
})
}

proud torrent
#

Srr, but i not good English to understand what u just said. I dont understand something very "weird"