https://pastein.ru/t/KwV
скопируйте уникальную ссылку для отправки
from mcpi.minecraft import Minecraft
from collections.abc import Iterable
import collections
import mcpi.block as block
import random
import time
collections.Iterable = Iterable
mc = Minecraft.create()
pos = mc.player.getTilePos()
while True:
k = random.randint(0, 15)
mc.setBlock(pos.x + 2, pos.y, pos.z, 35, k)
time.sleep(0.1)
k = random.randint(0, 15)
mc.setBlocks(pos.x + 2, pos.y, pos.z + 5, pos.x + 2, pos.y + k, pos.z + 5, 35, k)
mc.setBlocks(pos.x + 2, pos.y + k, pos.z + 5, pos.x + 2, pos.y + 14, pos.z + 5, 0)
time.sleep(0.1)
k = random.randint(0, 15)
mc.setBlock(pos.x + 2, pos.y, pos.z + 2, 35, k)
mc.setBlocks(pos.x + 2, pos.y, pos.z + 4, pos.x + 2, pos.y + k, pos.z + 4, 35, k)
mc.setBlocks(pos.x + 2, pos.y + k, pos.z + 4, pos.x + 2, pos.y + 14, pos.z + 4, 0)
time.sleep(0.1)
k = random.randint(0, 15)
mc.setBlock(pos.x + 2, pos.y, pos.z + 2, 35, k)
mc.setBlocks(pos.x + 2, pos.y, pos.z + 3, pos.x + 2, pos.y + k, pos.z + 3, 35, k)
mc.setBlocks(pos.x + 2, pos.y + k, pos.z + 3, pos.x + 2, pos.y + 14, pos.z + 3, 0)
time.sleep(0.1)