====== Amina, Leon ======
===Amina===
def on_on_chat(xPos, yPos, zPos):
blocks.fill(GRASS, pos(0, -1, 0), pos(17, -1, 23), FillOperation.REPLACE)
blocks.fill(IRON_BARS,
pos(0, 0, 0),
pos(17, 1, 23),
FillOperation.REPLACE)
blocks.fill(AIR, pos(1, 0, 1), pos(16, 1, 22), FillOperation.REPLACE)
blocks.fill(HAY_BLOCK, pos(6, 0, 6), pos(8, 0, 8), FillOperation.REPLACE)
blocks.fill(LOG_OAK,
pos(12, 0, 14),
pos(12, 5, 14),
FillOperation.REPLACE)
blocks.fill(LEAVES_OAK,
pos(11, 3, 13),
pos(13, 6, 15),
FillOperation.KEEP)
blocks.fill(LEAVES_OAK,
pos(10, 4, 12),
pos(14, 5, 16),
FillOperation.KEEP)
blocks.fill(LOG_BIRCH,
pos(3, 0, 19),
pos(3, 6, 19),
FillOperation.REPLACE)
blocks.fill(LEAVES_BIRCH,
pos(2, 4, 18),
pos(4, 8, 20),
FillOperation.KEEP)
blocks.fill(LEAVES_BIRCH,
pos(1, 5, 17),
pos(5, 7, 21),
FillOperation.KEEP)
blocks.fill(PLANKS_OAK,
pos(17, 2, 0),
pos(6, 0, 3),
FillOperation.REPLACE)
blocks.fill(PLANKS_OAK,
pos(17, 2, 0),
pos(12, 0, 10),
FillOperation.REPLACE)
blocks.fill(AIR, pos(16, 1, 1), pos(7, 0, 3), FillOperation.REPLACE)
blocks.fill(AIR, pos(16, 1, 1), pos(10, 0, 9), FillOperation.REPLACE)
for index in range(3):
mobs.spawn(SHEEP, pos(5, 0, 5))
mobs.spawn(HORSE, pos(1, 0, 1))
mobs.spawn(COW, pos(2, 0, 2))
mobs.spawn(CHICKEN, pos(3, 0, 3))
mobs.spawn(PIG, pos(4, 0, 4))
player.on_chat("gehege", on_on_chat)
===Leon===
def tunnel(xpos,ypos,width,height,length):
for i in range(width):
(BLOCK_OF_QUARTZ, height)
builder.move(FORWARD, 1)
blocks.fill(BLOCK_OF_QUARTZ, pos(xpos, 0, ypos), pos(xpos+width, height, ypos+length), FillOperation.HOLLOW)
blocks.fill(BLOCK_OF_QUARTZ,pos(xpos,0,ypos+length),pos(xpos+length+width,height,ypos+length+width),FillOperation.HOLLOW)
blocks.fill(AIR,pos(xpos+1,1,ypos+length),pos(xpos+width-1,height-1,ypos+length))
tunnel(5,4,20,6,20)
function mobsrun(xpos: number, ypos: number, length: number)
mobs.spawn(HORSE, pos(xpos, 0, ypos))
for i in range(length):
mobs.teleportToPosition(mobs.entitiesByType(HORSE), pos(xpos + i, 0, ypos))
loops.pause(1000)
mobsrun(4, 5, 10)