Well, I would like to know how to make the protection script that is in an addon but this is all I get. I don't know how to set it to only protect specific coordinates. Someone would please help me, and maybe if it has
import { world } from "mojang-minecraft"
world.events.blockBreak.subscribe(event => {
if (event.player.hasTag("creative") == false) {
const permutation = event.brokenBlockPermutation
const block = event.block
//Blacklist
var b = ["minecraft:stone"]
if (b.includes(permutation.type.id)) {
} else {
block.setPermutation(permutation)
}
}
})