gf2:projekte:minecraft:2d1gruppe6

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:minecraft:2d1gruppe6 [2023/01/27 21:02] porchetygf2:projekte:minecraft:2d1gruppe6 [2023/01/30 09:01] (aktuell) staempflim
Zeile 1: Zeile 1:
-**ZOO**+{{ :gf2:projekte:minecraft:zoo_informatik.mcworld |}}**ZOO**
  
 Wir wollen zusammen einen Zoo, evt. mit Aquarium, bauen und haben dafür zuerst einige Gehege programmiert: Wir wollen zusammen einen Zoo, evt. mit Aquarium, bauen und haben dafür zuerst einige Gehege programmiert:
Zeile 249: Zeile 249:
 </code> </code>
  
-Code für Welt: +Hier ist unsere fertige Welt:
- +
-<code python> +
-def Eingang(x,y,z): #selber Schilder und Seelenfackeln +
-    blocks.fill(PURPUR_BLOCK, world(x, y-1, z), world(x+25, y+4, z+5), FillOperation.HOLLOW) +
-    blocks.fill(STRIPPED_OAK_WOOD, world(x, y-1, z), world(x+25, y-1, z+5), FillOperation.REPLACE) +
-    blocks.fill(AIR, world(x, y, z+2), world(x, y+1, z+3), FillOperation.REPLACE) +
-    blocks.fill(AIR, world(x+25, y, z+2), world(x+25, y+1, z+3), FillOperation.REPLACE) +
-    blocks.fill(AIR, world(x+11, y, z+5), world(x+13, y+1, z+5), FillOperation.REPLACE) #Haupteingang +
-    blocks.place(AIR, world(x+12, y+2, z+5)) +
- +
-def panda_gehege(X,Y,Z): #selber Bambus +
-    blocks.fill(OAK_FENCE, world(X, Y, Z), world(X+25, Y+2, Z+25), FillOperation.HOLLOW) +
-    blocks.fill(AIR, world(X+1, Y, Z+1), world(X+24, Y+2, Z+24), FillOperation.REPLACE) +
- +
-def Streichelzoo(x,y,z): #selber Knopf für Tür & bonemeal +
-    blocks.fill(GLASS, world(x,y,z), world(x+25, y+2, z+25), FillOperation.HOLLOW) +
-    blocks.fill(AIR, world(x+1,y,z+1), world(x+24, y+2, z+24), FillOperation.REPLACE) +
-    blocks.fill(GLASS, world(x+25,y,z+14), world(x+23, y+2, z+16), FillOperation.HOLLOW) +
-    blocks.fill(AIR, world(x+25,y,z+15), world(x+23, y+1, z+15), FillOperation.REPLACE) +
-    blocks.place(IRON_DOOR, world(x+26, y, z+15)) +
-    blocks.place(STONE_PRESSURE_PLATE, world(x+27, y, z+15)) +
-    blocks.place(STONE_PRESSURE_PLATE, world(x+25, y, z+15)) +
-    blocks.place(IRON_DOOR, world(x+24, y, z+15)) +
-    blocks.fill(GRASS, world(x+10, y, z+12), world(x+15, y, z+17)) +
-    blocks.fill(GRASS, world(x+11, y+1, z+13), world(x+14, y+1, z+15)) +
-    blocks.fill(GRASS, world(x+5, y, z+2), world(x+9, y, z+9)) +
- +
-def papagei_gehege(X,Y,Z): #selber Türen & Knopf & Bäume & bonemeal +
-    blocks.fill(GLASS, world(X, Y, Z), world(X+25, Y+25, Z+25), FillOperation.HOLLOW) +
-    blocks.fill(AIR, world(X+1, Y, Z+1), world(X+24, Y+24, Z+24), FillOperation.REPLACE) +
-    blocks.fill(GLASS, world(X+11,Y,Z+24), world(X+13, Y+2, Z+20), FillOperation.HOLLOW) +
-    blocks.fill(AIR, world(X+12, Y, Z+25), world(X+12, Y+1, Z+20)) +
-    blocks.place(STONE_PRESSURE_PLATE, world(X+12, Y, Z+26)) +
-    blocks.place(STONE_PRESSURE_PLATE, world(X+12, Y, Z+24)) +
-    blocks.fill(GLASS, world(X+11,Y,Z+1), world(X+13, Y+2, Z+3), FillOperation.HOLLOW) +
-    blocks.fill(AIR, world(X+12, Y, Z), world(X+12, Y+1, Z+3)) +
-    blocks.place(STONE_PRESSURE_PLATE, world(X+12, Y, Z-1)) +
-    blocks.place(STONE_PRESSURE_PLATE, world(X+12, Y, Z+1)) +
- +
-def Wolf_Ocelot(x,y,z): #selber Bäume & bonemeal +
-    blocks.fill(SPRUCE_FENCE, world(x, y, z), world(x+14, y, z+20), FillOperation.HOLLOW) +
-    blocks.fill(AIR, world(x+1, y, z+1), world(x+13, y, z+19), FillOperation.REPLACE) +
- +
-def ziegengehege(x, y, z): #selber bonemeal +
-    blocks.fill(GLASS, world(x, y, z), world(x+14, y+5, z+20)) +
-    blocks.fill(AIR, world(x+1, y, z+1), world(x+13, y+4, z+19)) +
-    blocks.fill(GRASS, world(x+5, y, z+5), world(x+12, y, z+10)) +
-    blocks.fill(GRASS, world(x+6, y+1, z+6), world(x+10, y+1, z+9)) +
- +
-def Tintenfisch(x,y,z): #selber Tiere & Korallen +
-    blocks.fill(GLASS, world(x, y-1, z), world(x+14, y+10, z+20), FillOperation.HOLLOW) +
-    blocks.fill(GRASS, world(x, y-1, z), world(x+14, y-1, z+20), FillOperation.REPLACE) +
-    blocks.fill(SAND, world(x+1, y-1, z+1), world(x+13, y-1, z+19), FillOperation.REPLACE) +
-    blocks.fill(WATER, world(x+1, y+1, z+1), world(x+13, y+9, z+19), FillOperation.REPLACE) +
- +
-def Schildkrötenfisch(x,y,z): #selber Tiere, Korallen, Schilder +
-    blocks.fill(GLASS, world(x, y-1, z), world(x+14, y+10, z+20), FillOperation.HOLLOW) +
-    blocks.fill(GRASS, world(x, y-1, z), world(x+14, y-1, z+20), FillOperation.REPLACE) +
-    blocks.fill(SAND, world(x+1, y-1, z+1), world(x+13, y-1, z+19), FillOperation.REPLACE) +
-    blocks.fill(WATER, world(x+1, y+1, z+1), world(x+13, y+9, z+19), FillOperation.REPLACE) +
- +
-def TunnelAquarium(X,Y,Z): #selber Tiere & Korallen +
-    blocks.fill(GLASS, world(X, Y, Z), world(X+25, Y+25, Z+25), FillOperation.HOLLOW) +
-    blocks.fill(WATER, world(X+1, Y+1, Z+1), world(X+24, Y+23, Z+24), FillOperation.REPLACE) +
-    blocks.fill(GLASS, world(X+10, Y-1, Z), world(X+15, Y+5, Z+25), FillOperation.HOLLOW) +
-    blocks.fill(SAND, world(X+1,Y-1,Z+1), world(X+24,Y-1,Z+24), FillOperation.REPLACE) +
-    blocks.fill(GLOWSTONE, world(X+10,Y-1,Z), world(X+15,Y-1,Z+25), FillOperation.REPLACE) +
-    blocks.fill(AIR, world(X+11,Y,Z-1), world(X+14,Y+4,Z+25), FillOperation.REPLACE) +
- +
-def Zoo():  +
-    TunnelAquarium(-31,-60,-87) +
-    Schildkrötenfisch(-36,-60,-56) +
-    Tintenfisch(-16, -60, -56) +
-    ziegengehege(45,-60,-57) +
-    Wolf_Ocelot(25,-60,-57) +
-    papagei_gehege(29,-60,-87) +
-    Streichelzoo(14,-60,-31) +
-    panda_gehege(-16,-60,-30) +
-    Eingang(0,-60,0) +
- +
-Zoo() +
- +
-</code> +
-Code für die Welt:+
 <code python> <code python>
 def Eingang(x,y,z): #selber Schilder und Seelenfackeln def Eingang(x,y,z): #selber Schilder und Seelenfackeln
Zeile 469: Zeile 385:
     blocks.fill(STONE, world(42, -61, -61), world(40, -61, 3), FillOperation.REPLACE)     blocks.fill(STONE, world(42, -61, -61), world(40, -61, 3), FillOperation.REPLACE)
     blocks.fill(STONE, world(39, -61, 3), world(26, -61, 2), FillOperation.REPLACE)     blocks.fill(STONE, world(39, -61, 3), world(26, -61, 2), FillOperation.REPLACE)
 +    def on_travelled_walk():
 +    x = player.position().get_value(Axis.X)
 +    y = player.position().get_value(Axis.Y)
 +    z = player.position().get_value(Axis.Z)
 + 
 +    player.say("x:"+str(x)+" y:"+str(y)+" z:"+str(z))
 + 
 +    if (-20<x<20) and (y==-60) and (z==4): #für 1. und 3. Klammer, Koordinaten vom ganzen Zoo eingeben
 +        mobs.spawn(BEE, pos(0, 0, 0))
 + 
 +player.on_travelled(WALK, on_travelled_walk)
 Zoo() Zoo()
  
 </code> </code>
- 
  
  • gf2/projekte/minecraft/2d1gruppe6.1674849733.txt.gz
  • Zuletzt geändert: 2023/01/27 21:02
  • von porchety