grid

Grid World

Slice your world into a grid pattern

let x = 0
player.onChat("grid", function () {
    for (let index = 0; index <= 19; index++) {
        x = index * 3
        blocks.fill(
        AIR,
        pos(x, -4, 0),
        pos(x, 5, 60),
        FillOperation.Replace
        )
        blocks.fill(
        AIR,
        pos(0, -4, x),
        pos(60, 5, x),
        FillOperation.Replace
        )
    }
})
x = 0

def on_on_chat():
    global x
    for index in range(20):
        x = index * 3
        blocks.fill(AIR, pos(x, -4, 0), pos(x, 5, 60), FillOperation.REPLACE)
        blocks.fill(AIR, pos(0, -4, x), pos(60, 5, x), FillOperation.REPLACE)
player.on_chat("grid", on_on_chat)

コメント

タイトルとURLをコピーしました