https://pastein.ru/t/NpV

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


from mcpi.minecraft import Minecraft
import mcpi.block as block
import minecraftstuff
import time
import random
import threading

from mcpi import minecraft

# Константы арены
ARENAX = 10
ARENAZ = 20
ARENAY = 3


# Создание арены
def createArena(pos):
    mc = Minecraft.create()

    mc.setBlocks(pos.x - 1, pos.y, pos.z - 1,
                 pos.x + ARENAX + 1, pos.y - 3, pos.z + ARENAZ + 1,
                 block.GRASS.id)

    mc.setBlocks(pos.x - 1, pos.y + 1, pos.z - 1,
                 pos.x + ARENAX + 1, pos.y + ARENAY, pos.z + ARENAZ + 1,
                 block.GLASS.id)
    mc.setBlocks(pos.x, pos.y + 1, pos.z,
                 pos.x + ARENAX, pos.y + ARENAY, pos.z + ARENAZ,
                 block.AIR.id)


def theWall(arenaPos, wallZPos):
    pass


def theRiver(arenaPos, riverZPos):
    pass


def theHoles(arenaPos, holesZPos):
    pass


def createDiamonds(arenaPos, number):
    pass


mc = Minecraft.create()

gameOver = False

arenaPos = mc.player.getTilePos()
createArena(arenaPos)