gf2:projekte:2023:minecraft:2d1gruppe4

Dies ist eine alte Version des Dokuments!


Erste Planung der Gruppe 4 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.

< code python > 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 >

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)
  • gf2/projekte/2023/minecraft/2d1gruppe4.1703063804.txt.gz
  • Zuletzt geändert: 2023/12/20 10:16
  • von schwabm