gf2:projekte:2024:minecraft:2d2gruppe2

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:2024:minecraft:2d2gruppe2 [2025/04/12 19:16] bockmgf2:projekte:2024:minecraft:2d2gruppe2 [2025/04/12 20:17] (aktuell) haennil
Zeile 306: Zeile 306:
  
    
-**Aquarium Noël: +**Aquarium Noël:** 
  
  
 **Kompletter Code: ** **Kompletter Code: **
 <code python> <code python>
-# Startkoordinaten: -105, -60, 0 
    
 +
 +​# Startkoordinaten: -105, -60, 0
 +
 #NM #NM
 def aquarium(x, y, z): def aquarium(x, y, z):
-   y_base = 0 +   y_base = 0 
-   bottom = 1 +   bottom = 1 
-   tunnelY = 2 +   tunnelY = 2 
-   tunnelHeight = 5 +   tunnelHeight = 5 
-  + 
-   blocks.fill(GLASS, world(-104, -60, 1), world(-104 + x, -60 + y, 1 + z), FillOperation.HOLLOW) +   blocks.fill(GLASS, world(-104, -60, 1), world(-104 + x, -60 + y, 1 + z), FillOperation.HOLLOW) 
-   blocks.fill(WATER, world(-104, -60, 1), world(-104 + x, -60 + y, 1 + z), FillOperation.KEEP) +   blocks.fill(WATER, world(-104, -60, 1), world(-104 + x, -60 + y, 1 + z), FillOperation.KEEP) 
-  + 
-   for i in range(2, x + 1): +   for i in range(2, x + 1): 
-       for k in range(2, z + 1): +       for k in range(2, z + 1): 
-           thickness = randint(1, 3) +           thickness = randint(1, 3) 
-           top_sand = bottom + thickness - 1 +           top_sand = bottom + thickness - 1 
-           if randint(0, 25) == 1: +           if randint(0, 25) == 1: 
-               blocks.fill(SEA_LANTERN, world(-105 + i, -59, 0 + k), world(-105 + i, -59 + top_sand, 0 + k), FillOperation.REPLACE) +               blocks.fill(SEA_LANTERN, world(-105 + i, -59, 0 + k), world(-105 + i, -59 + top_sand, 0 + k), FillOperation.REPLACE) 
-               for f in range(2): +               for f in range(2): 
-                   mobs.spawn(TROPICAL_FISH, world(-105 + i, -59 + top_sand + 2, 0 + k)) +                   mobs.spawn(TROPICAL_FISH, world(-105 + i, -59 + top_sand + 2, 0 + k)) 
-                   if randint(0, 35) == 1: +                   if randint(0, 35) == 1: 
-                       mobs.spawn(AXOLOTL, world(-105 + i, -59 + top_sand + 2, 0 + k)) +                       mobs.spawn(AXOLOTL, world(-105 + i, -59 + top_sand + 2, 0 + k)) 
-                       mobs.spawn(GLOW_SQUID, world(-105 + i, -59 + top_sand + 2, 0 + k)) +                       mobs.spawn(GLOW_SQUID, world(-105 + i, -59 + top_sand + 2, 0 + k)) 
-                       if randint(0, 5) == 1: +                       if randint(0, 5) == 1: 
-                           mobs.spawn(DROWNED, world(-105 + i, -59 + top_sand + 2, 0 + k)) +                           mobs.spawn(DROWNED, world(-105 + i, -59 + top_sand + 2, 0 + k)) 
-           else: +           else: 
-               if randint(0, 10) == 1: +               if randint(0, 10) == 1: 
-                   blocks.fill(GRAVEL, world(-105 + i, -59, 0 + k), world(-105 + i, -59 + top_sand, 0 + k), FillOperation.REPLACE) +                   blocks.fill(GRAVEL, world(-105 + i, -59, 0 + k), world(-105 + i, -59 + top_sand, 0 + k), FillOperation.REPLACE) 
-               else: +               else: 
-                   blocks.fill(SAND, world(-105 + i, -59, 0 + k), world(-105 + i, -59 + top_sand, 0 + k), FillOperation.REPLACE) +                   blocks.fill(SAND, world(-105 + i, -59, 0 + k), world(-105 + i, -59 + top_sand, 0 + k), FillOperation.REPLACE) 
-  + 
-   mid_x = (1 + x / 2) +   mid_x = (1 + x / 2) 
-   blocks.fill(GLASS, world(-105 + mid_x - 2, -59 + tunnelY - 1, 1), world(-105 + mid_x + 2, -59 + tunnelHeight + 2, 1 + z), FillOperation.REPLACE) +   blocks.fill(GLASS, world(-105 + mid_x - 2, -59 + tunnelY - 1, 1), world(-105 + mid_x + 2, -59 + tunnelHeight + 2, 1 + z), FillOperation.REPLACE) 
-   blocks.fill(GLASS, world(-104, -59 + tunnelY - 1, 1 + mid_x - 2), world(-104 + x, -59 + tunnelHeight + 2, 1 + mid_x + 2), FillOperation.REPLACE) +   blocks.fill(GLASS, world(-104, -59 + tunnelY - 1, 1 + mid_x - 2), world(-104 + x, -59 + tunnelHeight + 2, 1 + mid_x + 2), FillOperation.REPLACE) 
-   blocks.fill(AIR, world(-104, -59 + tunnelHeight + 2, 1 + mid_x), world(-104 + x, -59 + tunnelHeight + 2, 1 + mid_x), FillOperation.REPLACE) +   blocks.fill(AIR, world(-104, -59 + tunnelHeight + 2, 1 + mid_x), world(-104 + x, -59 + tunnelHeight + 2, 1 + mid_x), FillOperation.REPLACE) 
-   blocks.fill(AIR, world(-105 + mid_x, -59 + tunnelHeight + 2, 1), world(-105 + mid_x, -59 + tunnelHeight + 2, 1 + z), FillOperation.REPLACE) +   blocks.fill(AIR, world(-105 + mid_x, -59 + tunnelHeight + 2, 1), world(-105 + mid_x, -59 + tunnelHeight + 2, 1 + z), FillOperation.REPLACE) 
-   blocks.fill(SEA_LANTERN, world(-104, -59 + tunnelHeight + 3, 1 + mid_x), world(-104 + x, -59 + tunnelHeight + 3, 1 + mid_x), FillOperation.REPLACE) +   blocks.fill(SEA_LANTERN, world(-104, -59 + tunnelHeight + 3, 1 + mid_x), world(-104 + x, -59 + tunnelHeight + 3, 1 + mid_x), FillOperation.REPLACE) 
-   blocks.fill(SEA_LANTERN, world(-105 + mid_x, -59 + tunnelHeight + 3, 1), world(-105 + mid_x, -59 + tunnelHeight + 3, 1 + z), FillOperation.REPLACE) +   blocks.fill(SEA_LANTERN, world(-105 + mid_x, -59 + tunnelHeight + 3, 1), world(-105 + mid_x, -59 + tunnelHeight + 3, 1 + z), FillOperation.REPLACE) 
-   blocks.fill(AIR, world(-105 + mid_x - 1, -60 + tunnelY, 1), world(-105 + mid_x + 1, -59 + tunnelHeight + 1, 1 + z), FillOperation.REPLACE) +   blocks.fill(AIR, world(-105 + mid_x - 1, -60 + tunnelY, 1), world(-105 + mid_x + 1, -59 + tunnelHeight + 1, 1 + z), FillOperation.REPLACE) 
-   blocks.fill(AIR, world(-104, -60 + tunnelY, 1 + mid_x - 1), world(-104 + x, -59 + tunnelHeight + 1, 1 + mid_x + 1), FillOperation.REPLACE) +   blocks.fill(AIR, world(-104, -60 + tunnelY, 1 + mid_x - 1), world(-104 + x, -59 + tunnelHeight + 1, 1 + mid_x + 1), FillOperation.REPLACE) 
- +
 aquarium(12, 12, 12) aquarium(12, 12, 12)
 </code>  </code> 
Zeile 453: Zeile 455:
  
 (Im endgültigen Code wurden bei def Funktionen die Initialen der verantwortlichen Person geschrieben.) (Im endgültigen Code wurden bei def Funktionen die Initialen der verantwortlichen Person geschrieben.)
 +
 +**Anweisungen und der komplette Code für die Testspieler:**
  
 **Bei Spieleinstellungen muss man:** **Bei Spieleinstellungen muss man:**
  • gf2/projekte/2024/minecraft/2d2gruppe2.1744478212.txt.gz
  • Zuletzt geändert: 2025/04/12 19:16
  • von bockm