Earthquake

Big crack in the earth

Disaster at your command!

GRIEFING ALERT

This mod will grief your world badly. Ask your friends before griefing their worlds.

Try the code:

player.onChat("earthquake", function () {
    let center = positions.add(
        player.position(),
        pos(-30, 0, 0)
    );
    for (let i = 0; i < 30; i++) {
        center = positions.add(center, pos(1, 0, Math.randomRange(0, 2)))
        blocks.fill(AIR,
            positions.add(center, pos(0, 0, -1)),
            positions.add(center, pos(0, -4, 1))
        )
        blocks.place(LAVA, positions.add(center, pos(0, -3, 0)))
    }
})