Walk on Water

Walking on water

See if you can walk on water. Don’t get your toes wet! If there’s no water nearby, use the pool command to make some to walk on.

Try the code:

player.onTravelled(TravelMethod.SwimWater, function () {
    blocks.fill(
    blocks.block(Block.Ice),
    positions.create(-1, -1, -1),
    positions.create(1, -1, 1),
    FillOperation.Replace
    )
})
player.onChat("pool", function () {
    blocks.fill(
    Block.Water,
    positions.create(-4, -1, -4),
    positions.create(4, -1, 4),
    FillOperation.Replace
    )
})