https://pastein.ru/t/-sV

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


from mcpi.minecraft import Minecraft
from collections.abc import Iterable


import collections
import mcpi.block as block

collections.Iterable = Iterable

mc = Minecraft.create()
pos = mc.player.getTilePos()


sx = pos.x + 2 + 5/2  # центр по X
sy = pos.y + 5/2  # центр по Y
sz = pos.z + 5/2  # центр по Z

mc.setBlocks(pos.x + 1, pos.y, pos.z, pos.x + 6, pos.y + 5, pos.z + 5, block.GOLD_BLOCK.id)
mc.setBlocks(pos.x + 2, pos.y + 1, pos.z + 1, pos.x + 5, pos.y + 4, pos.z + 4, block.AIR.id)

mc.setBlocks(pos.x + 6, pos.y + 1, sz, pos.x + 6, pos.y + 2, sz + 1, block.AIR.id)
mc.setBlocks(pos.x + 6, sy + 1, sz + 2, pos.x + 6, sy + 2, sz + 2, block.GLASS.id)
mc.setBlocks(pos.x + 6, sy + 1, sz - 1, pos.x + 6, sy + 2, sz - 1, block.GLASS.id)

mc.setBlocks(sx - 1, sy + 1, pos.z, sx - 1, sy + 2, pos.z, block.GLASS.id)
mc.setBlocks(sx + 1, sy + 1, pos.z, sx + 1, sy + 2, pos.z, block.GLASS.id)
mc.setBlocks(sx - 1, sy + 1, pos.z + 5, sx - 1, sy + 2, pos.z + 5, block.GLASS.id)
mc.setBlocks(sx + 1, sy + 1, pos.z + 5, sx + 1, sy + 2, pos.z + 5, block.GLASS.id)

mc.setBlocks(pos.x + 1, pos.y + 6, pos.z, pos.x + 6, pos.y + 6, pos.z + 5, block.IRON_BLOCK.id)
mc.setBlocks(pos.x + 1, pos.y + 7, pos.z + 1, pos.x + 6, pos.y + 7, pos.z + 4, block.IRON_BLOCK.id)
mc.setBlocks(pos.x + 1, pos.y + 8, pos.z + 2, pos.x + 6, pos.y + 8, pos.z + 3, block.IRON_BLOCK.id)