TNT Spleef

A spleef platform next to TNT

A variation of the Spleef game that’s a bit more explosive.

Try the code:

player.onChat("spleef", function () {
    blocks.fill(
        BEDROCK,
        pos(0, 50, 0),
        pos(20, 50, 20),
        FillOperation.Replace
    )
    blocks.fill(
        REDSTONE_TORCH,
        pos(0, 51, 0),
        pos(20, 51, 20),
        FillOperation.Replace
    )
    blocks.fill(
        DIRT,
        pos(0, 52, 0),
        pos(20, 52, 20),
        FillOperation.Replace
    )
    mobs.teleportToPosition(
        mobs.target(ALL_PLAYERS),
        pos(10, 55, 10)
    )
    mobs.give(mobs.target(ALL_PLAYERS), TNT, 64)
    gameplay.setGameMode(
        SURVIVAL,
        mobs.target(ALL_PLAYERS)
    )
})