Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
1.4 kB
0
Indexable
Never
import mcpi.minecraft as minecraft
import mcpi.block as block
import collections

collections.Iterable = collections.abc.Iterable

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

x = pos.x + 1
y = pos.y
z = pos.z

mc.setBlocks(x,y, z, x+100, y+2, z+100, block.BRICK_BLOCK.id)

x = pos.x + 20
y = pos.y + 3
z = pos.z + 15

for a in range(4):
    mc.setBlocks(x,y, z, x+13, y+4, z+7, block.IRON_BLOCK.id)
    mc.setBlocks(x,y + 1, z, x+12, y+2, z+6, block.GLASS.id)
    mc.setBlocks(x,y + 1, z, x, y+2, z, block.DIAMOND_ORE.id)
    mc.setBlocks(x + 1,y + 1, z + 1, x+12, y+2, z+6, block.AIR.id)
    if    a==0:
        mc.setBlocks(x + 7,y + 2, z, x+7, y+1, z+7, block.AIR.id)
        mc.setBlocks(x + 7,y + 2, z + 7, x+7, y+1, z+7, block.AIR.id)
    y += 4
for b in range(10):
    mc.setBlocks(x - 6,y - 16, z + 8, x+19, y-10, z+20, block.IRON_BLOCK.id)
    mc.setBlocks(x - 6,y - 15, z + 8, x+18, y-11, z+19, block.GLASS.id)
    mc.setBlocks(x- 6,y - 15, z + 8, x - 6, y-11, z+8, block.DIAMOND_ORE.id)
    mc.setBlocks(x - 5, y - 15, z + 9, x+18, y-11, z+20, block.AIR.id)
    y += 6
for c in range(20):
    mc.setBlocks(x - 16,y - 76, z + 16, x+29, y-9, z+35, block.IRON_BLOCK.id)
    mc.setBlocks(x - 16,y - 75, z + 16, x+28, y-10, z+34, block.GLASS.id)
    mc.setBlocks(x - 15, y - 75, z + 17, x+28, y-10, z+34, block.AIR.id)
    y += 12
Leave a Comment