Hot Tub
Create a hot tub with soul sand and water

player.onChat("hottub", function (num1) {
blocks.fill(
AIR,
pos(0, -2, 0),
pos(num1, -2, num1),
FillOperation.Replace
)
blocks.fill(
SOUL_SAND,
pos(0, -2, 0),
pos(num1, -2, num1),
FillOperation.Replace
)
blocks.fill(
WATER,
pos(0, -1, 0),
pos(num1, -1, num1),
FillOperation.Replace
)
})
def on_on_chat(num1):
blocks.fill(AIR,
pos(0, -2, 0),
pos(num1, -2, num1),
FillOperation.REPLACE)
blocks.fill(SOUL_SAND,
pos(0, -2, 0),
pos(num1, -2, num1),
FillOperation.REPLACE)
blocks.fill(WATER,
pos(0, -1, 0),
pos(num1, -1, num1),
FillOperation.REPLACE)
player.on_chat("hottub", on_on_chat)
コメント