How do I change a block at a given position? I know the block.place event let's you easily change one relevant block but if I want to change blocks around it I have no idea.
const level = event.block.level
const pos = [1,2,3]
const id = 'minecraft:dirt'
level.set(pos, id)
level.setBlock(pos, id)
level.setBlockState(pos, id)
None of those last 3 lines work because those functions don't seem to exist there unlike what I've read.