gf2:projekte:2023:minecraft:2d1gruppe4

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
gf2:projekte:2023:minecraft:2d1gruppe4 [2024/01/10 11:14] aschingerlgf2:projekte:2023:minecraft:2d1gruppe4 [2024/01/31 09:43] (aktuell) marroc
Zeile 1: Zeile 1:
-Erste Planung der Gruppe +====== Scrumboard Gruppe Grosser Bauernhof ======
-vom 10. November +
-Idee: Bauernhof+
  
-zeitliche Planung:  +\\
-2 Wochen +
--> Haus bauen (Liza + Malin) +
--> Felder und Gehege bauen (Léanne + Marlon) +
  
-Der erste Code ist für das Feld und der andere Teil ist ein Feld. Diese Feld hat Kühe drinnen.+{{ :gf2:projekte:2023:minecraft:bauernhof.mcworld |Welt}}
  
-< code python > +===== Erste Planung =====
-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) +
-< /code >+
  
 +__Gruppenmitglieder__ : Liza Aschinger, Malin Schwab, Marlon Voss, Léanne Jungo
 +\\
 +\\
 +__Ideenfindung__ : Ein Bauernhof
 +\\
 +
 +==== Zeitliche Planung und Arbeitsaufteilung ====
 + 
 +__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
  
-Bauernhaus mit Stallanbau+\\ 
 +\\ 
 +==== Malin und Liza's Arbeit ==== 
 +\\ 
 +__Bauernhaus mit Stallanbau__ : 
 +\\
 <code python> <code python>
 material = [PLANKS_SPRUCE, LOG_SPRUCE, SPRUCE_DOOR, GLASS, BRICK_STAIRS, ROSE_BUSH, BRICKS, BRICKS_SLAB, SPRUCE_FENCE, HAY_BLOCK] material = [PLANKS_SPRUCE, LOG_SPRUCE, SPRUCE_DOOR, GLASS, BRICK_STAIRS, ROSE_BUSH, BRICKS, BRICKS_SLAB, SPRUCE_FENCE, HAY_BLOCK]
Zeile 149: Zeile 142:
    blocks.place(material[2], world(x+l, y+1, z+3))    blocks.place(material[2], world(x+l, y+1, z+3))
        
-   #tisch+   
          
 def hausbau(): def hausbau():
Zeile 156: Zeile 149:
 player.on_chat("h", hausbau) player.on_chat("h", hausbau)
  
 +</code>
 +//
 +__Weg und Laternen__:
 +//
 +<code pyton>
 +        #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))
 </code> </code>
  
 +\\
 +__Code von den Bäumen__:
 +\\
 +<code pyton>
  
-Zusammengesetzter Bauernhof +def baum():
-<code pyton> +
-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]+
    
 +    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()
 +</code>
    
-def Haus4(l,h,b,x,y,z): +\\ 
-   #Haus, fenster, +__Zusammengesetzter Bauernhof (mit Anpassungen und Interactionen)__ 
-   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) +<code pyton>
-   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], 5), world(x+l, y+1, z+4)) +
-   blocks.place(blocks.block_with_data(material[2], 5), world(x+l, y+1, z+3)) +
-    +
-    +
-   #tisch +
-    +
-    +
-  +
-  +
-Haus4(10, 4, 8, 0, -61, 0)+
  
 +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)
 +
 +</code>
 +\\
 +\\
 +
 +=== 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)
 +
 +\\
 +<code python>
 +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)
 +</code>
 +\\
 +<code python>
 +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)
 +</code>
 +\\
 +__Hauptcode__:
 +\\
 +<code python>
 #1. hühner  #1. hühner 
 def Zaun(LÄNGEZ,BREITZ,a,b,c): def Zaun(LÄNGEZ,BREITZ,a,b,c):
Zeile 290: Zeile 534:
         mobs.spawn(CHICKEN, world(a+i, b, c+i))         mobs.spawn(CHICKEN, world(a+i, b, c+i))
 Zaun(8,8,24,-60,0) Zaun(8,8,24,-60,0)
- +</code> 
 +\\ 
 +<code python>
 #2.huhn #2.huhn
 def Zaun2(LÄNGEZ,BREITZ,a,b,c): def Zaun2(LÄNGEZ,BREITZ,a,b,c):
Zeile 300: Zeile 545:
         mobs.spawn(CHICKEN, world(a+i, b, c+i))         mobs.spawn(CHICKEN, world(a+i, b, c+i))
 Zaun2(8,8,40,-60,10) Zaun2(8,8,40,-60,10)
- +</code> 
- +\\ 
- +<code python>
- +
 #3.kuh  #3.kuh 
 def ZaunKühe2(LÄNGEK,BREITEK,n,m,p): def ZaunKühe2(LÄNGEK,BREITEK,n,m,p):
Zeile 312: Zeile 555:
         mobs.spawn(COW, world(n+i, m, p+i))         mobs.spawn(COW, world(n+i, m, p+i))
 ZaunKühe2(10,10,30,-60,-15) ZaunKühe2(10,10,30,-60,-15)
 +</code> 
 +\\ 
 +<code python>
 #2.Kuh #2.Kuh
 def ZaunKühe(LÄNGEK,BREITEK,n,m,p): def ZaunKühe(LÄNGEK,BREITEK,n,m,p):
Zeile 320: Zeile 565:
         mobs.spawn(COW, world(n+i, m, p+i))         mobs.spawn(COW, world(n+i, m, p+i))
 ZaunKühe(10,10,15,-60,-20) ZaunKühe(10,10,15,-60,-20)
- +</code> 
 +\\ 
 +__Feld__: 
 +\\ 
 +<code python>
 def Feld(länge,breite,x,y,z): 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(BRICKS, world(x, y, z), world(x+länge, y, z+breite), FillOperation.HOLLOW)
  • gf2/projekte/2023/minecraft/2d1gruppe4.1704881695.txt.gz
  • Zuletzt geändert: 2024/01/10 11:14
  • von aschingerl