https://pastein.ru/t/aOV

  скопируйте уникальную ссылку для отправки


from mcpi.minecraft import Minecraft
from collections.abc import Iterable
import mcpi.block as block
import collections
import time

collections.Iterable = Iterable

mc = Minecraft.create()

pos = mc.player.getTilePos()
x = pos.x + 1
y = pos.y
z = pos.z


def avto1():
    mc.setBlocks(x, y, z, x + 1, y + 2, z + 4, 5)
    mc.setBlocks(x, y + 1, z, x + 1, y + 2, z, 0)
    mc.setBlocks(x, y + 1, z + 2, x + 1, y + 1, z + 2, 0)
    mc.setBlocks(x, y + 1, z + 4, x + 1, y + 2, z + 4, 0)


def avto2():
    mc.setBlocks(x, y, z, x + 4, y + 2, z + 1, 5)
    mc.setBlocks(x, y + 1, z, x, y + 2, z + 1, 0)
    mc.setBlocks(x + 2, y + 1, z, x + 2, y + 1, z + 1, 0)
    mc.setBlocks(x + 4, y + 1, z, x + 4, y + 2, z + 1, 0)


for i in range(10):
    avto1()
    z = z + 5
    time.sleep(1)
    mc.setBlocks(x, y, z - 5, x + 1, y + 2, z, 0)
for i in range(10):
    avto2()
    x = x + 5
    time.sleep(1)
    mc.setBlocks(x - 5, y, z, x, y + 2, z + 1, 0)
for i in range(10):
    avto1()
    z = z - 5
    time.sleep(1)
    mc.setBlocks(x, y, z, x + 1, y + 2, z + 10, 0)
for i in range(10):
    avto2()
    x = x - 5
    time.sleep(1)
    mc.setBlocks(x, y, z, x + 10, y + 2, z + 1, 0)