Dies ist eine alte Version des Dokuments!


Scrumboard Gruppe Grosser Bauernhof


Gruppenmitglieder : Liza Aschinger, Malin Schwab, Marlon Voss, Léanne Jungo

Ideenfindung : Ein Bauernhof

vom 10.November bis zum 20. Dezember :

  • Bauernhaus bauen
  • Felder und Gehege bauen

Arbeitsaufteilung :

  • Haus bauen - Malin und Liza
  • Felder und Gehege bauen - Marlon und Léanne
  • Zug - alle gemeinsam




Bauernhaus mit Stallanbau :

material = [PLANKS_SPRUCE, LOG_SPRUCE, SPRUCE_DOOR, GLASS, BRICK_STAIRS, ROSE_BUSH, BRICKS, BRICKS_SLAB, SPRUCE_FENCE, HAY_BLOCK]
materialE = [CHEST,FURNACE,COBBLESTONE_WALL,BOOKSHELF, CAMPFIRE, SPRUCE_TRAPDOOR]
 
 
def Haus4(l,h,b,x,y,z):
   #Haus, fenster,
   blocks.fill(material[0], world(x, y, z), world(x+l, y+h, z+b), FillOperation.HOLLOW)
   blocks.fill(material[1], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l, y, z), world(x+l, y+h, z), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l, y, z+b), world(x+l, y+h, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x, y, z+b), world(x, y+h, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x, y+h, z), world(x+l, y+h, z), FillOperation.REPLACE)
   blocks.fill(material[1], world(x, y+h, z+b), world(x+l, y+h, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l, y+h, z), world(x+l, y+h, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x, y+h, z), world(x, y+h, z+b), FillOperation.REPLACE)
   #fenster (gross)
   blocks.fill(material[3], world(x, y+2, z+2), world(x, y+h-1, z+b-2), FillOperation.REPLACE)
   #Fenster(klein)
   blocks.fill(material[3], world(x+l/2-2, y+2, z), world(x+l/2-2, y+3, z), FillOperation.REPLACE)
   blocks.fill(material[3], world(x+l/2+2, y+2, z), world(x+l/2+2, y+3, z), FillOperation.REPLACE)
   #tür
   blocks.fill(AIR, world(x+l/2, y+1, z), world(x+l/2, y+2, z), FillOperation.REPLACE)
   blocks.place(material[2], world(x+l/2, y+1, z))
 
   #Blumen
   blocks.place(material[5], world(x+l/2+1, y+1, z-1))
   blocks.place(material[5], world(x+l/2-1, y+1, z-1))
   #kamin
   blocks.fill(material[6], world(x+l/2-1, y+1, z+b-1), world(x+l/2+1, y+2, z+b-1), )
   blocks.place(AIR, world(x+l/2, y+1, z+b-1))
   blocks.place(material[6], world(x+l/2, y+3, z+b-1))
   #feuer
   blocks.place(materialE[4], world(x+l/2, y+1, z+b-1))
 
    #dach
   for i in range(l/2+1):
       blocks.fill(material[4], world(x-1+i, y+h+i, z-1), world(x-1+i, y+h+i, z+b+1),FillOperation.REPLACE)
   for i in range(l/2):
       blocks.fill(blocks.block_with_data (material[4], 1), world(x+l-i, y+h+1+i, z-1), world(x+l-i, y+h+1+i, z+b+1),FillOperation.REPLACE)
   blocks.fill(blocks.block_with_data (material[7], 1), world(x+l/2, y+h+6, z-1), world(x+l/2, y+h+6, z+b+1),FillOperation.REPLACE)
   #zweite reihe treppen
   for i in range(l/2):
       blocks.place(blocks.block_with_data (material[4], 5), world(x+i, y+h+i, z-1))
   for i in range(l/2):
       blocks.place(blocks.block_with_data (material[4], 4), world(x+l-1-i, y+h+1+i, z-1))
 
   blocks.place(blocks.block_with_data (material[4], 6), world(x+l/2, y+h+5, z-1))
   for i in range(l/2):
       blocks.place(blocks.block_with_data (material[4], 5), world(x+i, y+h+i, z+b+1))
   for i in range(l/2):
       blocks.place(blocks.block_with_data (material[4], 4), world(x+l-1-i, y+h+1+i, z+b+1))
   blocks.place(blocks.block_with_data (material[4], 7), world(x+l/2, y+h+5, z+b+1))
   #glas dach
   for i in range(0,l/2):
       blocks.fill(material[0], world(x+l-1-i, y+h+1+i, z), world(x+1+i, y+h+1+i, z), FillOperation.REPLACE)
   for i in range(0,l/2):
       blocks.fill(material[0], world(x+l-1-i, y+h+1+i, z+b), world(x+1+i, y+h+1+i, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l/2-1, y+h+1, z), world(x+l/2-1, y+h+1+3, z), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l/2+1, y+h+1, z), world(x+l/2+1, y+h+1+3, z), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l/2-1, y+h+1, z+b), world(x+l/2-1, y+h+1+3, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l/2+1, y+h+1, z+b), world(x+l/2+1, y+h+1+3, z+b), FillOperation.REPLACE)
 
#Grossanbau
   #Anbau
   blocks.fill(material[0], world(x+l, y, z), world(x+l+l, y+h, z+b), FillOperation.HOLLOW)
   blocks.fill(material[1], world(x+l, y, z), world(x+l, y+h, z), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l+l, y, z), world(x+l+l, y+h, z), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l+l, y, z+b), world(x+l+l, y+h, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l, y, z+b), world(x+l, y+h, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l, y+h, z), world(x+l+l, y+h, z), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l, y+h, z+b), world(x+l+l, y+h, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l+l, y+h, z), world(x+l+l, y+h, z+b), FillOperation.REPLACE)
   blocks.fill(material[1], world(x+l, y+h, z), world(x+l, y+h, z+b), FillOperation.REPLACE)
   #Türe
   blocks.fill(AIR, world(x+l+l/2, y+1, z), world(x+l+l/2, y+2, z), FillOperation.REPLACE)
   blocks.place(material[2], world(x+l+l/2, y+1, z))
   #Türe2
   blocks.fill(AIR, world(x+l+l/2+4, y+1, z), world(x+l+l/2+4, y+2, z), FillOperation.REPLACE)
   blocks.place(material[2], world(x+l+l/2+4, y+1, z))
   #Türe3
   blocks.fill(AIR, world(x+l+l/2-4, y+1, z), world(x+l+l/2-4, y+2, z), FillOperation.REPLACE)
   blocks.place(material[2], world(x+l+l/2-4, y+1, z))
   #fenster
   blocks.place(material[8], world(x+l+l-3, y+2, z))
   blocks.place(material[8], world(x+l+3, y+2, z))
   #Heuboden
   blocks.fill(material[9], world(x+l+1, y, z+1), world(x+l+l, y, z+b), FillOperation.REPLACE)
   #dach
   for i in range(1):
       blocks.fill(material[4], world(x+l+1+i, y+h+1+i, z-1), world(x+l+1+i, y+1+h+i, z+b+1), FillOperation.REPLACE)
   for i in range(2):
        blocks.fill(blocks.block_with_data(material[4], 1), world(x+l+l+1-i, y+h+i, z-1), world(x+l+l+1-i, y+h+i, z+b+1), FillOperation.REPLACE)
   blocks.fill(material[6], world(x+l+2, y+h+1, z), world(x+l+l-1, y+h+1, z+b), FillOperation.REPLACE)
 
   blocks.fill(blocks.block_with_data(material[4], 2), world(x+l+2, y+h+1, z-1), world(x+l+l-1, y+h+1, z-1), FillOperation.REPLACE)
   blocks.fill(blocks.block_with_data(material[4], 3), world(x+l+2, y+h+1, z+b+1), world(x+l+l-1, y+h+1, z+b+1), FillOperation.REPLACE)
 
 
 
   #Einrichtung(ohne Kamin)
   #true
   blocks.fill(blocks.block_with_data(materialE[0], 4), world(x+l-1, y+1, z+b-2), world(x+l-1, y+1, z+b-1), FillOperation.REPLACE)
   #ofen
   blocks.place(materialE[1], world(x+l-2, y+1, z+1))
   blocks.fill(materialE[2], world(x+l-2, y+2, z+1), world(x+l-2, y+3, z+1), FillOperation.REPLACE)
   #buch
   blocks.fill(materialE[3], world(x+1, y+1, z+1), world(x+1, y+3, z+1), FillOperation.REPLACE)
   #verbindungs Türe
   blocks.fill(AIR, world(x+l, y+1, z+3), world(x+l, y+2, z+4), FillOperation.REPLACE)
   blocks.place(blocks.block_with_data(material[2], 0), world(x+l, y+1, z+4))
   blocks.place(material[2], world(x+l, y+1, z+3))
 
   #tisch
 
def hausbau():
    Haus4(10, 4, 8, 362, -61, -669)
 
player.on_chat("h", hausbau)


Code von den Bäumen:

def baum():
 
    blocks.place(OAK_SAPLING,world(-50, -60, 13))
    blocks.place(OAK_SAPLING,world(-57, -60, 17))
    blocks.place(OAK_SAPLING,world(-63, -60, 14))
    blocks.place(OAK_SAPLING,world(-57, -60, 25))
    blocks.place(OAK_SAPLING,world(-61, -60, 22))
    blocks.place(OAK_SAPLING,world(-49, -60, 19))
    blocks.place(OAK_SAPLING,world(-49, -60, 26))
    blocks.place(OAK_SAPLING,world(-54, -60, 22))
    blocks.place(OAK_SAPLING,world(-40, -60, 13))
    blocks.place(OAK_SAPLING,world(-47, -60, 17))
    blocks.place(OAK_SAPLING,world(-53, -60, 14))
    blocks.place(OAK_SAPLING,world(-47, -60, 25))
    blocks.place(OAK_SAPLING,world(-51, -60, 22))
    blocks.place(OAK_SAPLING,world(-39, -60, 19))
    blocks.place(OAK_SAPLING,world(-39, -60, 26))
    blocks.place(OAK_SAPLING,world(-44, -60, 22))
 
    blocks.place(CHERRY_SAPLING,world(-80,-60,14))
    blocks.place(CHERRY_SAPLING,world(-95, -60, 10))
    blocks.place(CHERRY_SAPLING,world(-93, -60, 17))
baum()


Zusammengesetzter Bauernhof (mit Anpassungen und Interactionen) :

material = [PLANKS_SPRUCE, LOG_SPRUCE, SPRUCE_DOOR, GLASS, BRICK_STAIRS, ROSE_BUSH, BRICKS, BRICKS_SLAB, SPRUCE_FENCE, HAY_BLOCK, ]
materialE = [CHEST,FURNACE,COBBLESTONE_WALL,BOOKSHELF, CAMPFIRE, SPRUCE_TRAPDOOR, JACK_O_LANTERN ]
materialA =[GRASS_PATH,TORCH]
materialS =[PLANKS_ACACIA, SPRUCE_WOOD_STAIRS]
def Feldanfang(länge,breite,x,y,z):
    #feld
    blocks.fill(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
    blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+länge-1, y, z+breite-1), FillOperation.REPLACE)
    blocks.place(WATER, world((x+länge/2), y,(z+breite/2)))
 
 
Feldanfang(8,8,-10,-60,-12)
 
 
 
def on_item_interacted():
    def Haus4(l,h,b,x,y,z):
    #Haus, fenster,
        blocks.fill(material[0], world(x, y, z), world(x+l, y+h, z+b), FillOperation.HOLLOW)
        blocks.fill(material[1], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l, y, z), world(x+l, y+h, z), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l, y, z+b), world(x+l, y+h, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x, y, z+b), world(x, y+h, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x, y+h, z), world(x+l, y+h, z), FillOperation.REPLACE)
        blocks.fill(material[1], world(x, y+h, z+b), world(x+l, y+h, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l, y+h, z), world(x+l, y+h, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x, y+h, z), world(x, y+h, z+b), FillOperation.REPLACE)
    #fenster (gross)
        blocks.fill(material[3], world(x, y+2, z+2), world(x, y+h-1, z+b-2), FillOperation.REPLACE)
    #Fenster(klein)
        blocks.fill(material[3], world(x+l/2-2, y+2, z), world(x+l/2-2, y+3, z), FillOperation.REPLACE)
        blocks.fill(material[3], world(x+l/2+2, y+2, z), world(x+l/2+2, y+3, z), FillOperation.REPLACE)
    #tür
        blocks.fill(AIR, world(x+l/2, y+1, z), world(x+l/2, y+2, z), FillOperation.REPLACE)
        blocks.place(material[2], world(x+l/2, y+1, z))
 
    #Blumen
        blocks.place(material[5], world(x+l/2+1, y+1, z-1))
        blocks.place(material[5], world(x+l/2-1, y+1, z-1))
 
 
    #kamin
        blocks.fill(material[6], world(x+l/2-1, y+1, z+b-1), world(x+l/2+1, y+2, z+b-1), )
        blocks.place(AIR, world(x+l/2, y+1, z+b-1))
        blocks.place(material[6], world(x+l/2, y+3, z+b-1))
    #feuer
        blocks.place(materialE[4], world(x+l/2, y+1, z+b-1))
 
        #dach
        for i in range(l/2+1):
            blocks.fill(material[4], world(x-1+i, y+h+i, z-1), world(x-1+i, y+h+i, z+b+1),FillOperation.REPLACE)
        for i in range(l/2):
            blocks.fill(blocks.block_with_data (material[4], 1), world(x+l-i, y+h+1+i, z-1), world(x+l-i, y+h+1+i, z+b+1),FillOperation.REPLACE)
        blocks.fill(blocks.block_with_data (material[7], 1), world(x+l/2, y+h+6, z-1), world(x+l/2, y+h+6, z+b+1),FillOperation.REPLACE)
        #zweite reihe treppen
        for i in range(l/2):
            blocks.place(blocks.block_with_data (material[4], 5), world(x+i, y+h+i, z-1))
        for i in range(l/2):
            blocks.place(blocks.block_with_data (material[4], 4), world(x+l-1-i, y+h+1+i, z-1))
 
        blocks.place(blocks.block_with_data (material[4], 6), world(x+l/2, y+h+5, z-1))
        for i in range(l/2):
            blocks.place(blocks.block_with_data (material[4], 5), world(x+i, y+h+i, z+b+1))
        for i in range(l/2):
            blocks.place(blocks.block_with_data (material[4], 4), world(x+l-1-i, y+h+1+i, z+b+1))
        blocks.place(blocks.block_with_data (material[4], 7), world(x+l/2, y+h+5, z+b+1))
        #glas dach
        for i in range(0,l/2):
            blocks.fill(material[0], world(x+l-1-i, y+h+1+i, z), world(x+1+i, y+h+1+i, z), FillOperation.REPLACE)
        for i in range(0,l/2):
            blocks.fill(material[0], world(x+l-1-i, y+h+1+i, z+b), world(x+1+i, y+h+1+i, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l/2-1, y+h+1, z), world(x+l/2-1, y+h+1+3, z), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l/2+1, y+h+1, z), world(x+l/2+1, y+h+1+3, z), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l/2-1, y+h+1, z+b), world(x+l/2-1, y+h+1+3, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l/2+1, y+h+1, z+b), world(x+l/2+1, y+h+1+3, z+b), FillOperation.REPLACE)
 
        #Grossanbau
        #Anbau
        blocks.fill(material[0], world(x+l, y, z), world(x+l+l, y+h, z+b), FillOperation.HOLLOW)
        blocks.fill(material[1], world(x+l, y, z), world(x+l, y+h, z), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l+l, y, z), world(x+l+l, y+h, z), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l+l, y, z+b), world(x+l+l, y+h, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l, y, z+b), world(x+l, y+h, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l, y+h, z), world(x+l+l, y+h, z), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l, y+h, z+b), world(x+l+l, y+h, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l+l, y+h, z), world(x+l+l, y+h, z+b), FillOperation.REPLACE)
        blocks.fill(material[1], world(x+l, y+h, z), world(x+l, y+h, z+b), FillOperation.REPLACE)
        #Türe
        blocks.fill(AIR, world(x+l+l/2, y+1, z), world(x+l+l/2, y+2, z), FillOperation.REPLACE)
        blocks.place(material[2], world(x+l+l/2, y+1, z))
        #Türe2
        blocks.fill(AIR, world(x+l+l/2+4, y+1, z), world(x+l+l/2+4, y+2, z), FillOperation.REPLACE)
        blocks.place(material[2], world(x+l+l/2+4, y+1, z))
        #Türe3
        blocks.fill(AIR, world(x+l+l/2-4, y+1, z), world(x+l+l/2-4, y+2, z), FillOperation.REPLACE)
        blocks.place(material[2], world(x+l+l/2-4, y+1, z))
        #fenster
        blocks.place(material[8], world(x+l+l-3, y+2, z))
        blocks.place(material[8], world(x+l+3, y+2, z))
        #Heuboden
        blocks.fill(material[9], world(x+l+1, y, z+1), world(x+l+l, y, z+b), FillOperation.REPLACE)
        #dach
        for i in range(1):
            blocks.fill(material[4], world(x+l+1+i, y+h+1+i, z-1), world(x+l+1+i, y+1+h+i, z+b+1), FillOperation.REPLACE)
        for i in range(2):
                blocks.fill(blocks.block_with_data(material[4], 1), world(x+l+l+1-i, y+h+i, z-1), world(x+l+l+1-i, y+h+i, z+b+1), FillOperation.REPLACE)
        blocks.fill(material[6], world(x+l+2, y+h+1, z), world(x+l+l-1, y+h+1, z+b), FillOperation.REPLACE)
 
        blocks.fill(blocks.block_with_data(material[4], 2), world(x+l+2, y+h+1, z-1), world(x+l+l-1, y+h+1, z-1), FillOperation.REPLACE)
        blocks.fill(blocks.block_with_data(material[4], 3), world(x+l+2, y+h+1, z+b+1), world(x+l+l-1, y+h+1, z+b+1), FillOperation.REPLACE)
 
 
        #Einrichtung(ohne Kamin)
        #true
        blocks.fill(blocks.block_with_data(materialE[0], 4), world(x+l-1, y+1, z+b-2), world(x+l-1, y+1, z+b-1), FillOperation.REPLACE)
        #ofen
        blocks.place(materialE[1], world(x+l-2, y+1, z+1))
        blocks.fill(materialE[2], world(x+l-2, y+2, z+1), world(x+l-2, y+3, z+1), FillOperation.REPLACE)
        #buch
        blocks.fill(materialE[3], world(x+1, y+1, z+1), world(x+1, y+3, z+1), FillOperation.REPLACE)
        #verbindungs Türe
        blocks.fill(AIR, world(x+l, y+1, z+3), world(x+l, y+2, z+3), FillOperation.REPLACE)
        blocks.place(blocks.block_with_data(material[2], 5), world(x+l, y+1, z+3))
 
 
        #tisch
 
        #weg nach links
        blocks.fill(materialA[0], world(x+l/2, y, z-1), world(x+l/2, y, z-6), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x+l/2, y, z-6), world(x+l+l+7, y, z-6), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x+l+l+1, y, z-6), world(x+l+l+1, y, z-9), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x+l+l+7, y, z-1), world(x+l+l+7, y, z-9), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x+l+l+7, y, z-9), world(x+l+l+9, y, z-9), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x+l+l+7, y, z-3), world(x+l+l+l+7, y, z-3), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x+l+l+l+7, y, z-3), world(x+l+l+l+7, y, z+5), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x+l+l+l+7, y, z+5), world(x+l+l+l+14, y, z+5), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x+l+l+l+14, y, z+5), world(x+l+l+l+14, y, z+9), FillOperation.REPLACE)
        #weg nach rechts
        blocks.fill(materialA[0], world(x+l/2, y, z-6), world(x-3, y, z-6), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x-3, y, z-6), world(x-3, y, z+b/2), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x-3, y, z-6), world(x-3, y, z+b/2), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x-3, y, z+b/2), world(x-16, y, z+b/2), FillOperation.REPLACE)
        blocks.fill(materialA[0], world(x-10, y, z+b/2-6), world(x-10, y, z+b/2+6), FillOperation.REPLACE)
        #Laterne1
        blocks.fill(materialE[2], world(-39, y+1, -5), world(-39, y+2, -5), FillOperation.REPLACE)
        blocks.place(materialA[1], world(-39, y+3, -5))
        #Laterne2
        blocks.fill(materialE[2], world(-27, y+1, -3), world(-27, y+2, -3), FillOperation.REPLACE)
        blocks.place(materialA[1], world(-27, y+3, -3))
        #Laterne3
        blocks.fill(materialE[2], world(-28, y+1, 6), world(-28, y+2, 6), FillOperation.REPLACE)
        blocks.place(materialA[1], world(-28, y+3, 6))
        #laterne4
        blocks.fill(materialE[2], world(-20, y+1, 5), world(-20, y+2, 5), FillOperation.REPLACE)
        blocks.place(materialA[1], world(-20, y+3, 5))
        #laterne5
        blocks.fill(materialE[2], world(-69, y+1, -7), world(-69, y+2, -7), FillOperation.REPLACE)
        blocks.place(materialA[1], world(-69, y+3, -7))
        #laterne6
        blocks.fill(materialE[2], world(-91, y+1, -6), world(-91, y+2, -6), FillOperation.REPLACE)
        blocks.place(materialA[1], world(-91, y+3, -6))
        #laterne7
        blocks.fill(materialE[2], world(-83, y+1, -6), world(-83, y+2, -6), FillOperation.REPLACE)
        blocks.place(materialA[1], world(-83, y+3, -6))
 
    Haus4(10, 4, 8, -65, -61, 0)
    #1. hühner
    def Zaun(LÄNGEZ,BREITZ,a,b,c):
        blocks.fill(OAK_FENCE, world(a, b, c), world(a+LÄNGEZ, b, c+BREITZ), FillOperation.HOLLOW)
        blocks.fill(AIR, world(a+1, b, c+1), world(a+LÄNGEZ-1, b, c+BREITZ-1), FillOperation.REPLACE)
 
    Zaun(8,8,-41,-60,0)
    #2.huhn
    def Zaun2(LÄNGEZ,BREITZ,a,b,c):
        blocks.fill(OAK_FENCE, world(a, b, c), world(a+LÄNGEZ, b, c+BREITZ), FillOperation.HOLLOW)
        blocks.fill(AIR, world(a+1, b, c+1), world(a+LÄNGEZ-1, b, c+BREITZ-1), FillOperation.REPLACE)
        for i in range(7):
            mobs.spawn(CHICKEN, world(a+1+i, b, c+i))
    Zaun2(8,8,-25,-60,10)
    #3.kuh
    def ZaunKühe2(LÄNGEK,BREITEK,n,m,p):
        blocks.fill(OAK_FENCE, world(n, m, p), world(n+LÄNGEK, m, p+BREITEK), FillOperation.HOLLOW)
        blocks.fill(AIR, world(n+1, m, p+1), world(n+LÄNGEK-1, m, p+BREITEK-1), FillOperation.REPLACE)
        for i in range(9):
            mobs.spawn(COW, world(n+1+i, m, p+i))
    ZaunKühe2(10,10,-35,-60,-15)
    #2.Kuh
    def ZaunKühe(LÄNGEK,BREITEK,n,m,p):
        blocks.fill(OAK_FENCE, world(n, m, p), world(n+LÄNGEK, m, p+BREITEK), FillOperation.HOLLOW)
        blocks.fill(AIR, world(n+1, m, p+1), world(n+LÄNGEK-1, m, p+BREITEK-1), FillOperation.REPLACE)
        for i in range(9):
            mobs.spawn(COW, world(n+1+i, m, p+i))
    ZaunKühe(10,10,-50,-60,-20)
 
    def Feld(länge,breite,x,y,z):
        blocks.fill(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
        blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+länge-1, y, z+breite-1), FillOperation.REPLACE)
        blocks.place(WATER, world((x+länge/2), y,(z+breite/2)))
 
 
    Feld(8,8,-80,-60,-10)
 
    def Feld2(länge,breite,x,y,z):
        blocks.fill(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
        blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+länge-1, y, z+breite-1), FillOperation.REPLACE)
        blocks.place(WATER, world((x+länge/2), y,(z+breite/2)))
        blocks.fill(CARROTS, world(x+1, y+1, z+1), world(x+länge-1, y+1, z+breite-1), FillOperation.REPLACE)
    Feld2(8,8,-78,-60, 10)
 
    def Feld3(länge,breite,x,y,z):
        blocks.fill(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
        blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+länge-1, y, z+breite-1), FillOperation.REPLACE)
        blocks.place(WATER, world((x+länge/2), y,(z+breite/2)))
        blocks.fill(CARROTS, world(x+1, y+1, z+1), world(x+länge-1, y+1, z+breite-1), FillOperation.REPLACE)
 
    Feld3(8,8,-90,-60,0)
 
 
player.on_item_interacted(CARROTS, on_item_interacted)
#hühnerhaus
def on_item_interacted2():
    def Hühnerstall (l,h,b,x,y,z):
        blocks.fill(materialS[0], world(x, y, z), world(x+l, y+h, z+b), FillOperation.HOLLOW)
        blocks.fill(AIR, world(x+1, y, z), world(x+l-1, y+h-1, z+1), FillOperation.REPLACE)
        for i in range(0,2):
            blocks.fill(materialS[1], world(x+i, y+h+i, z-1), world(x+i, y+h+i, z+b+1), FillOperation.REPLACE)
        for i in range(0,2):
            blocks.fill(blocks.block_with_data(materialS[1], 1), world(x+l-i, y+h+i, z-1), world(x+l-i, y+h+i, z+b+1), FillOperation.REPLACE)
        blocks.fill(material[8], world(x, y, z-1), world(x, y+2, z-1), FillOperation.REPLACE)
        blocks.fill(material[8], world(x+l, y, z-1), world(x+l, y+2, z-1), FillOperation.REPLACE)
        blocks.fill(material[8], world(x+l, y, z+b+1), world(x+l, y+2, z+b+1), FillOperation.REPLACE)
        blocks.fill(material[8], world(x, y, z+b+1), world(x, y+2, z++b+1), FillOperation.REPLACE)
 
    #Zaun
        blocks.fill(material[8], world(x, y, z-2), world(x, y, z-3), FillOperation.REPLACE)
        blocks.fill(material[8], world(x+l, y, z-2), world(x+l, y, z-3), FillOperation.REPLACE)
        blocks.fill(AIR, world(x+1, y, z-4), world(x+l-1, y, z-4), FillOperation.REPLACE)
    Hühnerstall(3,3,2, -36, -60, 12)
player.on_item_interacted(SPAWN_CHICKEN, on_item_interacted2)
 
#Gewächshaus
def on_item_interacted3():
    def Gewächshaus(l,h,b,x,y,z):
        blocks.fill(material[3], world(x,y+1,z), world(x+l,y+h,z+b), FillOperation.HOLLOW)
        blocks.fill(AIR, world(x+l-1,y+1,z+b), world(x+1,y+h-1,z+b), FillOperation.REPLACE)
        blocks.fill(AIR, world(x+1,y+1,z+1), world(x+l-1,y+h-1,z+b), FillOperation.REPLACE)
        blocks.fill(STONE, world(x, y, z), world(x+l, y, z+b), FillOperation.REPLACE)
        blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+l-1, y, z+b-1), FillOperation.REPLACE)
        blocks.place(WATER, world((x+l/2), y,(z+b/2)))
    #balken
        blocks.fill(material[0], world(x, y, z), world(x, y+h-1, z), FillOperation.REPLACE)
        blocks.fill(material[0], world(x+l, y, z), world(x+l, y+h-1, z), FillOperation.REPLACE)
        blocks.fill(material[0], world(x+l, y, z+b), world(x+l, y+h-1, z+b), FillOperation.REPLACE)
        blocks.fill(material[0], world(x, y, z+b), world(x, y+h-1, z+b), FillOperation.REPLACE)
    Gewächshaus(8,4,8,-91,-61,-15)
 
player.on_item_interacted(POTATOES, on_item_interacted3)



Marlon und Léanne's Arbeit



Grundcode:

  def Feld(länge,breite,x,y,z):
  blocks.fill(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
  blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+länge-1, y, z+breite-1), FillOperation.REPLACE)
  blocks.place(WATER, world((x+länge/2), y,(z+breite/2)))
  blocks.fill(CARROTS, world(x+1, y+1, z+1), world(x+länge-1, y+1, z+breite-1), FillOperation.REPLACE)
  #Feld(8,8,-47,-60,0)
  Feld(8,8,-94,-60,-66)


def Zaun(LÄNGEZ,BREITZ,a,b,c):
    # blocks.fill( world(a, b, c),world(a, b, c) FillOperation.HOLLOW
   blocks.fill(OAK_FENCE, world(a, b, c), world(a+LÄNGEZ, b, c+BREITZ), FillOperation.HOLLOW)
   blocks.fill(AIR, world(a+1, b, c+1), world(a+LÄNGEZ-1, b, c+BREITZ-1), FillOperation.REPLACE)
   for i in range(10): 
    mobs.spawn(CHICKEN, world(a+i, b, c+i))
Zaun(8,8,-65,-60,-77)


def ZaunKühe(LÄNGEK,BREITEK,n,m,p):
    blocks.fill(OAK_FENCE, world(n, m, p), world(n+LÄNGEK, m, p+BREITEK), FillOperation.HOLLOW)
    blocks.fill(AIR, world(n+1, m, p+1), world(n+LÄNGEK-1, m, p+BREITEK-1), FillOperation.REPLACE)  
    for i in range(10):    
        mobs.spawn(COW, world(n+i, m, p+i))
ZaunKühe(10,10,-95,-60,-89)


Hauptcode:

#1. hühner 
def Zaun(LÄNGEZ,BREITZ,a,b,c):
# blocks.fill( world(a, b, c),world(a, b, c) FillOperation.HOLLOW
    blocks.fill(OAK_FENCE, world(a, b, c), world(a+LÄNGEZ, b, c+BREITZ), FillOperation.HOLLOW)
    blocks.fill(AIR, world(a+1, b, c+1), world(a+LÄNGEZ-1, b, c+BREITZ-1), FillOperation.REPLACE)
    for i in range(10):
        mobs.spawn(CHICKEN, world(a+i, b, c+i))
Zaun(8,8,24,-60,0)


#2.huhn
def Zaun2(LÄNGEZ,BREITZ,a,b,c):
    # blocks.fill( world(a, b, c),world(a, b, c) FillOperation.HOLLOW
    blocks.fill(OAK_FENCE, world(a, b, c), world(a+LÄNGEZ, b, c+BREITZ), FillOperation.HOLLOW)
    blocks.fill(AIR, world(a+1, b, c+1), world(a+LÄNGEZ-1, b, c+BREITZ-1), FillOperation.REPLACE)
    for i in range(10):
        mobs.spawn(CHICKEN, world(a+i, b, c+i))
Zaun2(8,8,40,-60,10)


#3.kuh 
def ZaunKühe2(LÄNGEK,BREITEK,n,m,p):
    blocks.fill(OAK_FENCE, world(n, m, p), world(n+LÄNGEK, m, p+BREITEK), FillOperation.HOLLOW)
    blocks.fill(AIR, world(n+1, m, p+1), world(n+LÄNGEK-1, m, p+BREITEK-1), FillOperation.REPLACE)
    for i in range(10):
        mobs.spawn(COW, world(n+i, m, p+i))
ZaunKühe2(10,10,30,-60,-15)


#2.Kuh
def ZaunKühe(LÄNGEK,BREITEK,n,m,p):
    blocks.fill(OAK_FENCE, world(n, m, p), world(n+LÄNGEK, m, p+BREITEK), FillOperation.HOLLOW)
    blocks.fill(AIR, world(n+1, m, p+1), world(n+LÄNGEK-1, m, p+BREITEK-1), FillOperation.REPLACE)
    for i in range(10):
        mobs.spawn(COW, world(n+i, m, p+i))
ZaunKühe(10,10,15,-60,-20)


Feld:

def Feld(länge,breite,x,y,z):
    blocks.fill(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
    blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+länge-1, y, z+breite-1), FillOperation.REPLACE)
    blocks.place(WATER, world((x+länge/2), y,(z+breite/2)))
    blocks.fill(CARROTS, world(x+1, y+1, z+1), world(x+länge-1, y+1, z+breite-1), FillOperation.REPLACE)
#Feld(8,8,-47,-60,0)
Feld(8,8,-15,-60,-10)
 
def Feld2(länge,breite,x,y,z):
    blocks.fill(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
    blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+länge-1, y, z+breite-1), FillOperation.REPLACE)
    blocks.place(WATER, world((x+länge/2), y,(z+breite/2)))
    blocks.fill(POTATOES, world(x+1, y+1, z+1), world(x+länge-1, y+1, z+breite-1), FillOperation.REPLACE)
#Feld(8,8,-47,-60,0)
Feld2(8,8,-13,-60, 10)
 
def Feld3(länge,breite,x,y,z):
    blocks.fill(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
    blocks.fill(FARMLAND, world(x+1, y, z+1), world(x+länge-1, y, z+breite-1), FillOperation.REPLACE)
    blocks.place(WATER, world((x+länge/2), y,(z+breite/2)))
    blocks.fill(CARROTS, world(x+1, y+1, z+1), world(x+länge-1, y+1, z+breite-1), FillOperation.REPLACE)
#Feld(8,8,-47,-60,0)
Feld3(8,8,-25,-60,0)
  • gf2/projekte/2023/minecraft/2d1gruppe4.1706630038.txt.gz
  • Zuletzt geändert: 2024/01/30 16:53
  • von jungol