Lava Tower

Introduction

Hey, let’s try something dramatic! This tutorial makes a lava tower.

It slowly descends from the sky, and then our command waits for it to flow to the ground. You can then add some water to cool the lava. You’re going to use a ||loops:pause|| loop to add some wait time and let the lava reach the ground before cooling it down.

The sky is falling

Chat Command

Put in an ||player:on chat command|| and rename it to tower.

player.onChat("tower", function () {
})

Lava from above

Using ||blocks:place||, put a lava block in the sky 20 blocks above you.

player.onChat("tower", function () {
    blocks.place(LAVA, pos(5, 20, 0))
})

Just add water

Use another ||blocks:place|| to add some water to cool the flowing lava. We want to make sure the lava has time to flow all the way to the ground before the water reaches it, so make the water appear very high in the sky, 135 blocks above you.

player.onChat("tower", function () {
    blocks.place(LAVA, pos(5, 20, 0))
    blocks.place(WATER, pos(5, 135, 0))
})

Stop the water

Ok, get rid of the water. Use a ||loops:pause|| of 1000 milliseconds. Add a ||blocks:place|| with air to dry the water.

player.onChat("tower", function () {
    blocks.place(LAVA, pos(5, 20, 0))
    blocks.place(WATER, pos(5, 135, 0))
    loops.pause(1000)
    blocks.place(AIR, pos(5, 135, 0))
})

Try it out!

Go to Minecraft, type t to open the chat and enter tower. Don’t move though! The lava, water, and air need to fall from the sky at same position near you. It will take some time for the lava to cool and for the water to dry. Be careful, lava can be destructive!