gf2:projekte:2024:minecraft:2d2gruppe2

Dies ist eine alte Version des Dokuments!


Gruppe 2

Mitglieder: Magda, Lívia, Ava, Valérie, Noël

Projektidee: Bei unserem Projekt wollten wir einen Zoo mit verschiedenen Gehegen bauen. Um eine abwechslungsreiche Umgebung zu programmieren sollte jeder der Mitglieder ein eigenes Gehege mitsamt einem Special-effect programmieren.

Objekte im Projekt: 5 Gehege: Aquarium, Pilzkuh-Gehege,Lama-/Esel-/Pferdestall, Schaf-/Schweine-Gehege & Panda-Gehege. 1 Torbogen(Eingang) 1 Mauer um das gesamte Areal

Schwierigkeiten:

-Lívia Problem: beim Baum programmieren war mir nicht bewusst das der Stamm in die Baumkrone ragen muss. Ansonsten starben nämlich die Blätter des Baumes ab.

Lösung:Den Baumstamm um einige Blöcke verlängern.

-Ava Problem: Am Anfang hatte ich Probleme mit den Koordinaten.

Lösung:Livia hat es mir erklärt und mir geholfen.

-Noël Problem: Die Musik einzufügen, ich wusste nicht wie man „Klänge“ in Minecraft programmiert.

Lösung: Lucas nach Rat gefragt.

-Magda Problem: Blumen random im Gehege einzufügen. Die Blumen waren immer in einer Linie oder es hat die Funktion teilweise gar nicht ausgeführt.

Lösung:Mithilfe von Frau Marro und Lucas hat es dann geklappt.

-Valérie Problem: Unverständnis für Alles.

Lösung: Tutorials angeschaut und so die Basics erworben.

Vorgehensweise: Am Anfang haben wir eine kleine Skizze von unserem Zoo angefertigt. Fortführend hat sich jeder ein Gehege ausgesucht. Um den Fortschritt festzuhalten haben wir auf Teams beim Scrumbboard To-Do's erstellt. Die Codes wurden je nachdem in den Chat geschickt, da viele die gleichen Haupt-Elemente brauchten wie der Zaun oder ein Baum. Jeder hat etwas gemacht und am Schluss haben wir die letzten Angleichungen aufgeteilt.

Schaf-/Schweinegehege (Magda)

doppelter Zaun:

def zaunI(x,y,z):
    blocks.fill(BIRCH_FENCE, world(x,y,z), world(x+25,y,z+25), FillOperation.HOLLOW)
    blocks.fill(AIR, world(x+1,y,z+1), world(x+24,y,z+24), FillOperation.HOLLOW)
zaunI(80,-60,20)
 
def zaunII(x,y,z):
    blocks.fill(BIRCH_FENCE, world(x,y,z), world(x+25,y,z+25), FillOperation.HOLLOW)
    blocks.fill(AIR, world(x+1,y,z+1), world(x+24,y,z+24), FillOperation.HOLLOW)
zaunII(80,-60,20)

spawnen von Tieren:

def spawn_tiere(x,y,z):
    My_list = [PIG, SHEEP]
    for i in range(4):
        mobs.spawn(My_list[0],world(x+5,y,z+5))
        mobs.spawn(My_list[1], world(x+5,y,z+5))
 
spawn_tiere(80,-60,20)

spawnen von Blumen:

def spawn_blumen(x_base,y_base,z_base):
    blumen = [OXEYE_DAISY, PINK_TULIP, LILY_OF_THE_VALLEY, CORNFLOWER, ALLIUM]
    for x in range(24):
        for z in range(24):
            if randint(0,5) == 0:
                blocks.place(blumen[randint(0,4)], world(x_base + 1 + x, y_base, z_base + 1 + z))
spawn_blumen(80,-60,20)

Baum:

def baum(x,y,z):
    blocks.fill(LEAVES_BIRCH, world(x + 6, y + 4, z + 6), world(x, y + 7, z), FillOperation.REPLACE)
    blocks.fill(LOG_BIRCH, world(x + 3, y, z + 3), world(x + 3, y + 5, z + 3), FillOperation.REPLACE)
 
baum(80,-60,20)

Kompletter Code:

def zaunI(x,y,z):
    blocks.fill(BIRCH_FENCE, world(x,y,z), world(x+25,y,z+25), FillOperation.HOLLOW)
    blocks.fill(AIR, world(x+1,y,z+1), world(x+24,y,z+24), FillOperation.HOLLOW)
zaunI(80,-60,20)
 
def zaunII(x,y,z):
    blocks.fill(BIRCH_FENCE, world(x,y,z), world(x+25,y,z+25), FillOperation.HOLLOW)
    blocks.fill(AIR, world(x+1,y,z+1), world(x+24,y,z+24), FillOperation.HOLLOW)
zaunII(80,-60,20)
 
def spawn_tiere(x,y,z):
    My_list = [PIG, SHEEP]
    for i in range(4):
        mobs.spawn(My_list[0],world(x+5,y,z+5))
        mobs.spawn(My_list[1], world(x+5,y,z+5))
 
spawn_tiere(80,-60,20)
 
def spawn_blumen(x_base,y_base,z_base):
    blumen = [OXEYE_DAISY, PINK_TULIP, LILY_OF_THE_VALLEY, CORNFLOWER, ALLIUM]
    for x in range(24):
        for z in range(24):
            if randint(0,5) == 0:
                blocks.place(blumen[randint(0,4)], world(x_base + 1 + x, y_base, z_base + 1 + z))
spawn_blumen(80,-60,20)
 
def baum(x,y,z):
    blocks.fill(LEAVES_BIRCH, world(x + 6, y + 4, z + 6), world(x, y + 7, z), FillOperation.REPLACE)
    blocks.fill(LOG_BIRCH, world(x + 3, y, z + 3), world(x + 3, y + 5, z + 3), FillOperation.REPLACE)
 
baum(80,-60,20)
 

Pilzkuh-gehege (Ava) doppelter Zaun:

def zaunI(x, y, z):
blocks.fill(BIRCH_FENCE, world(x, y, z), world(x + 25, y, z + 25), FillOperation.HOLLOW)
blocks.fill(AIR, world(x + 1, y, z + 1), world(x + 24, y, z + 24), FillOperation.HOLLOW)
zaunI(-85, -60, -23)
def zaunII(x, y, z):
blocks.fill(BIRCH_FENCE, world(x, y, z), world(x + 25, y, z + 25), FillOperation.HOLLOW)
blocks.fill(AIR, world(x + 1, y, z + 1), world(x + 24, y, z + 24), FillOperation.HOLLOW)
zaunII(-110, -60, -2)
 

Wasser:

blocks.fill(WATER, world(-122, -61, 19), world(-125, -61, 22), FillOperation.HOLLOW)
 

Baum:

blocks.fill(LEAVES_SPRUCE, world(-118, -58, 18), world(-116, -56, 20), FillOperation.HOLLOW)
locks.fill(LOG_SPRUCE, world(-117, -60, 19), world(-117, -57, 19), FillOperation.HOLLOW)
Unterstand
blocks.fill(MOSSY_STONE_BRICKS, world(35, -60, -7), world(41, -58, -7), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(35, -60, 2), world(41, -58, 2), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(41, -60, 1), world(41, -58, -6), FillOperation.HOLLOW)
blocks.fill(PLANKS_SPRUCE, world(35, -57, -7), world(41, -57, 2), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(-113, -60, 4), world(-113, -58, 0), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(35, -60, 2), world(41, -58, 2), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(41, -60, 1), world(41, -58, -6), FillOperation.HOLLOW)
blocks.fill(PLANKS_SPRUCE, world(35, -57, -7), world(41, -57, 2), FillOperation.HOLLOW)
 

Unterstand:

def wand(x,y,z):
blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z), world(x, y+2, z-4), FillOperation.HOLLOW)
wand(-113, -60, 4)
wand(-123, -60, 4)
def wand2(x,y,z):
blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z), world(x-8, y+2, z), FillOperation.HOLLOW)
wand2 (-114,-60,0)
def wand3(x,y,z):
blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z), world(x-10, y, z+4), FillOperation.HOLLOW)
wand3(-113, -57, 0)
def hay(x,y,z):
blocks.fill(HAY_BLOCK, world(x, y, z), world(x+2, y, z), FillOperation.HOLLOW)
hay(-117, -60, 3)
 

spawn von Tieren:

def spawn_tiere(x,y,z):
My_list = [MUSHROOM_COW] 
for i in range(1):
mobs.spawn (My_list[0],world(x,y,z))
spawn_tiere(-122, -60, 11)
 

Kompletter Code:

def zaunI(x, y, z):
blocks.fill(BIRCH_FENCE, world(x, y, z), world(x + 25, y, z + 25), FillOperation.HOLLOW)
blocks.fill(AIR, world(x + 1, y, z + 1), world(x + 24, y, z + 24), FillOperation.HOLLOW)
zaunI(-85, -60, -23)
def zaunII(x, y, z):
blocks.fill(BIRCH_FENCE, world(x, y, z), world(x + 25, y, z + 25), FillOperation.HOLLOW)
blocks.fill(AIR, world(x + 1, y, z + 1), world(x + 24, y, z + 24), FillOperation.HOLLOW)
zaunII(-110, -60, -2)
blocks.fill(WATER, world(-122, -61, 19), world(-125, -61, 22), FillOperation.HOLLOW)
blocks.fill(LEAVES_SPRUCE, world(-118, -58, 18), world(-116, -56, 20), FillOperation.HOLLOW)
blocks.fill(LOG_SPRUCE, world(-117, -60, 19), world(-117, -57, 19), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(35, -60, -7), world(41, -58, -7), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(35, -60, 2), world(41, -58, 2), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(41, -60, 1), world(41, -58, -6), FillOperation.HOLLOW)
blocks.fill(PLANKS_SPRUCE, world(35, -57, -7), world(41, -57, 2), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(-113, -60, 4), world(-113, -58, 0), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(35, -60, 2), world(41, -58, 2), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(41, -60, 1), world(41, -58, -6), FillOperation.HOLLOW)
blocks.fill(PLANKS_SPRUCE, world(35, -57, -7), world(41, -57, 2), FillOperation.HOLLOW)
def wand(x,y,z):
blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z), world(x, y+2, z-4), FillOperation.HOLLOW)
wand(-113, -60, 4)
wand(-123, -60, 4)
def wand2(x,y,z):
blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z), world(x-8, y+2, z), FillOperation.HOLLOW)
wand2 (-114,-60,0)
def wand3(x,y,z):
blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z), world(x-10, y, z+4), FillOperation.HOLLOW)
wand3(-113, -57, 0)
def hay(x,y,z):
blocks.fill(HAY_BLOCK, world(x, y, z), world(x+2, y, z), FillOperation.HOLLOW)
hay(-117, -60, 3)
def spawn_tiere(x,y,z):
My_list = [MUSHROOM_COW] 
for i in range(1):
mobs.spawn (My_list[0],world(x,y,z))
spawn_tiere(-122, -60, 11)
 

Pferde-/Esel-/Alpakagehege (Lívia)

Zaun:

def zaun(x,y,z):
blocks.fill(SPRUCE_FENCE, world(x, y, z), world(x-19, y+1, z-29), FillOperation.HOLLOW)
blocks.fill(AIR, world(x-1, y, z-1), world(x-18, y+1, z-28), FillOperation.HOLLOW)
zaun(-60, -60, -33)
 

Unterstand: def unterstand(x,y,z): blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z), world(x+6, y+2, z), FillOperation.HOLLOW) blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z+9), world(x+6, y+2, z+9), FillOperation.HOLLOW) blocks.fill(MOSSY_STONE_BRICKS, world(x+6, y, z+8), world(x+6, y+2, z+1), FillOperation.HOLLOW) blocks.fill(PLANKS_SPRUCE, world(x, y+3, z), world(x+6, y+3, z+9), FillOperation.HOLLOW) unterstand(-67, -60, -43) </code> Teich:

def teich(x,y,z):
blocks.fill(WATER, world(x, y, z), world(x+3, y, z-4), FillOperation.HOLLOW)
teich(-68, -61, -53)
 

Baum:

def baum(x,y,z):
blocks.fill(LEAVES_BIRCH, world(x, y, z), world(x+2, y+2, z-4), FillOperation.HOLLOW)
blocks.fill(LOG_BIRCH, world(x+1, y-4, z-2), world(x+1, y+1, z-2), FillOperation.HOLLOW)
baum(-74, -56, -57)
baum(-77, -56, -40)
baum(-71, -56, -45)
 

Heu:

def heu(x,y,z):
blocks.fill(HAY_BLOCK, world(x, y, z), world(x, y, z), FillOperation.HOLLOW)
heu(-73, -60, -37)
heu(-73, -60, -36)
heu(-62, -60, -40)
 

Tiere

def spawn_tiere(x,y,z):
My_list = [HORSE, DONKEY,LLAMA] # Erweiterungsmöglichkeit
for i in range(2):
mobs.spawn (My_list[0],world(x+3,y,z+3))
mobs.spawn(My_list[1], world(x+2,y,z+2))
mobs.spawn(My_list[2], world(x+2,y,z+2))
spawn_tiere(-74, -60, -52)
 

Kompletter Code:

def zaun(x,y,z):
blocks.fill(SPRUCE_FENCE, world(x, y, z), world(x-19, y+1, z-29), FillOperation.HOLLOW)
blocks.fill(AIR, world(x-1, y, z-1), world(x-18, y+1, z-28), FillOperation.HOLLOW)
zaun(-60, -60, -33)
def unterstand(x,y,z):
blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z), world(x+6, y+2, z), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(x, y, z+9), world(x+6, y+2, z+9), FillOperation.HOLLOW)
blocks.fill(MOSSY_STONE_BRICKS, world(x+6, y, z+8), world(x+6, y+2, z+1), FillOperation.HOLLOW)
blocks.fill(PLANKS_SPRUCE, world(x, y+3, z), world(x+6, y+3, z+9), FillOperation.HOLLOW)
unterstand(-67, -60, -43)
def teich(x,y,z):
blocks.fill(WATER, world(x, y, z), world(x+3, y, z-4), FillOperation.HOLLOW)
teich(-68, -61, -53)
def baum(x,y,z):
blocks.fill(LEAVES_BIRCH, world(x, y, z), world(x+2, y+2, z-4), FillOperation.HOLLOW)
blocks.fill(LOG_BIRCH, world(x+1, y-4, z-2), world(x+1, y+1, z-2), FillOperation.HOLLOW)
baum(-74, -56, -57)
baum(-77, -56, -40)
baum(-71, -56, -45)
def heu(x,y,z):
blocks.fill(HAY_BLOCK, world(x, y, z), world(x, y, z), FillOperation.HOLLOW)
heu(-73, -60, -37)
heu(-73, -60, -36)
heu(-62, -60, -40)
def spawn_tiere(x,y,z):
My_list = [HORSE, DONKEY,LLAMA] # Erweiterungsmöglichkeit
for i in range(2):
mobs.spawn (My_list[0],world(x+3,y,z+3))
mobs.spawn(My_list[1], world(x+2,y,z+2))
mobs.spawn(My_list[2], world(x+2,y,z+2))
spawn_tiere(-74, -60, -52)
 

Aquarium Noël: Position:

start_pos = pos(0, -1, 0).to_world()
sx, sy, sz = (start_pos.get_value(Axis.X), start_pos.get_value(Axis.Y), start_pos.get_value(Axis.Z))
def position(x, y, z):
return world(sx + x, sy + y, sz + z)

Aquarium & Tiere:

def aquarium(x, y, z):
    bottom = 0
    tunnelY = 4
    tunnelHeight = 5
 
    blocks.fill(GLASS, position(1, -1, 1), position(x + 1, y - 1, z + 1), FillOperation.HOLLOW)
    blocks.fill(WATER, position(1, -1, 1), position(x + 1, y - 1, z + 1), FillOperation.KEEP)
 
    for i in range(2, x + 1):
        for k in range(2, z + 1):
            thickness = randint(1, 2)
            top_sand = bottom + thickness - 1
            if randint(0, 15) == 1:
                blocks.fill(SEA_LANTERN, position(i, bottom, k), position(i, top_sand, k), FillOperation.REPLACE)
                for f in range(2):
                    mobs.spawn(TROPICAL_FISH, position(i, top_sand, k))
                    if randint(0, 25) == 1:
                        mobs.spawn(AXOLOTL, position(i, top_sand, k))
                        if randint(0, 25) == 1:
                            mobs.spawn(DROWNED, position(i, top_sand, k))
            else:
                if randint(0, 10) == 1:
                    blocks.fill(GRAVEL, position(i, bottom, k), position(i, top_sand, k), FillOperation.REPLACE)
                else:
                    blocks.fill(SAND, position(i, bottom, k), position(i, top_sand, k), FillOperation.REPLACE)
 
    blocks.fill(GLASS, position((1 + x / 2) - 2, tunnelY - 1, 1), position((1 + x / 2) + 2, tunnelHeight + 2, z + 1), FillOperation.REPLACE)
    blocks.fill(GLASS, position(1, tunnelY - 1, (1 + x / 2) - 2), position(x + 1, tunnelHeight + 2, (1 + x / 2) + 2), FillOperation.REPLACE)
    blocks.fill(AIR, position(1,  tunnelHeight + 2, (1 + x / 2)), position(x + 1, tunnelHeight + 2, (1 + x / 2)), FillOperation.REPLACE)
    blocks.fill(AIR, position((1 + x / 2), tunnelHeight + 2, 1), position((1 + x / 2), tunnelHeight + 2, z + 1), FillOperation.REPLACE)
    blocks.fill(SEA_LANTERN, position(1,  tunnelHeight + 3, (1 + x / 2)), position(x + 1, tunnelHeight + 3, (1 + x / 2)), FillOperation.REPLACE)
    blocks.fill(SEA_LANTERN, position((1 + x / 2), tunnelHeight + 3, 1), position((1 + x / 2), tunnelHeight + 3, z + 1), FillOperation.REPLACE)
    blocks.fill(AIR, position((1 + x / 2) - 1, tunnelY, 1), position((1 + x / 2) + 1, tunnelHeight + 1, z + 1), FillOperation.REPLACE)
    blocks.fill(AIR, position(1, tunnelY, (1 + x / 2) - 1), position(x + 1, tunnelHeight + 1, (1 + x / 2) + 1), FillOperation.REPLACE)
aquarium(30, 30, 30) 

Kompletter Code:

start_pos = pos(0, -1, 0).to_world()
sx, sy, sz = (start_pos.get_value(Axis.X), start_pos.get_value(Axis.Y), start_pos.get_value(Axis.Z))
def position(x, y, z):
    return world(sx + x, sy + y, sz + z)
 
def aquarium(x, y, z):
    bottom = 0
    tunnelY = 4
    tunnelHeight = 5
 
    blocks.fill(GLASS, position(1, -1, 1), position(x + 1, y - 1, z + 1), FillOperation.HOLLOW)
    blocks.fill(WATER, position(1, -1, 1), position(x + 1, y - 1, z + 1), FillOperation.KEEP)
 
    for i in range(2, x + 1):
        for k in range(2, z + 1):
            thickness = randint(1, 2)
            top_sand = bottom + thickness - 1
            if randint(0, 15) == 1:
                blocks.fill(SEA_LANTERN, position(i, bottom, k), position(i, top_sand, k), FillOperation.REPLACE)
                for f in range(2):
                    mobs.spawn(TROPICAL_FISH, position(i, top_sand, k))
                    if randint(0, 25) == 1:
                        mobs.spawn(AXOLOTL, position(i, top_sand, k))
                        if randint(0, 25) == 1:
                            mobs.spawn(DROWNED, position(i, top_sand, k))
            else:
                if randint(0, 10) == 1:
                    blocks.fill(GRAVEL, position(i, bottom, k), position(i, top_sand, k), FillOperation.REPLACE)
                else:
                    blocks.fill(SAND, position(i, bottom, k), position(i, top_sand, k), FillOperation.REPLACE)
 
    blocks.fill(GLASS, position((1 + x / 2) - 2, tunnelY - 1, 1), position((1 + x / 2) + 2, tunnelHeight + 2, z + 1), FillOperation.REPLACE)
    blocks.fill(GLASS, position(1, tunnelY - 1, (1 + x / 2) - 2), position(x + 1, tunnelHeight + 2, (1 + x / 2) + 2), FillOperation.REPLACE)
    blocks.fill(AIR, position(1,  tunnelHeight + 2, (1 + x / 2)), position(x + 1, tunnelHeight + 2, (1 + x / 2)), FillOperation.REPLACE)
    blocks.fill(AIR, position((1 + x / 2), tunnelHeight + 2, 1), position((1 + x / 2), tunnelHeight + 2, z + 1), FillOperation.REPLACE)
    blocks.fill(SEA_LANTERN, position(1,  tunnelHeight + 3, (1 + x / 2)), position(x + 1, tunnelHeight + 3, (1 + x / 2)), FillOperation.REPLACE)
    blocks.fill(SEA_LANTERN, position((1 + x / 2), tunnelHeight + 3, 1), position((1 + x / 2), tunnelHeight + 3, z + 1), FillOperation.REPLACE)
    blocks.fill(AIR, position((1 + x / 2) - 1, tunnelY, 1), position((1 + x / 2) + 1, tunnelHeight + 1, z + 1), FillOperation.REPLACE)
    blocks.fill(AIR, position(1, tunnelY, (1 + x / 2) - 1), position(x + 1, tunnelHeight + 1, (1 + x / 2) + 1), FillOperation.REPLACE)
aquarium(30, 30, 30) 

Panda-Gehege (Valerie)

Zaun

def zaun (x,y,z):
   blocks.fill(DARK_OAK_FENCE, world(x,y,z,), world(x+24,y,z+24), FillOperation.HOLLOW)
   blocks.fill (AIR, world(x+1,y,z+1),world(x+23,y,z+23), FillOperation.HOLLOW)                      
zaun(-79,-60,-17)    
 

Bambus

def Bambus (x,y,z):
   blocks.fill(BAMBOO, world(x,y,z), world(x,y+4,z), FillOperation.REPLACE)
   blocks.fill(BAMBOO, world(x,y,z+1), world(x,y+3,z+1), FillOperation.REPLACE)
   blocks.fill(BAMBOO, world(x-1,y,z), world(x-1,y+2,z), FillOperation.REPLACE)
Bambus (-76,-60,-13)
Bambus (-76,-60,3)
Bambus (-74,-60,5)
Bambus (-60,-60,-11)
Bambus (-65,-60,-15)
Bambus (-71,-60,-3)
Bambus (-60,-60,3)
 

Bambushaus

def Bambushaus (x,y,z):
   for i in range (4):
       blocks.fill(BAMBOO_MOSAIC, world(x,y+i,z+i), world(x+6-i,y+i,z+i), FillOperation.HOLLOW)
       blocks.fill(BAMBOO_MOSAIC, world(x+6-i,y+i,z+i), world(x+6-i,y+i,z+7-i), FillOperation.HOLLOW)
       blocks.fill(BAMBOO_MOSAIC, world(x+6-i,y+i,z+7-i), world(x,y+i,z+7-i), FillOperation.HOLLOW)
 
Bambushaus (-69,-60,-11)
 

Tiere

def spawn_tiere(x,y,z):
   My_list = [PANDA]
   for i in range(1):
       mobs.spawn (My_list[0], world(x,y,z))
spawn_tiere(-76,-60,-7)
spawn_tiere(-66,-60,-13)
spawn_tiere(-66,-60,-13)
spawn_tiere(-69,-60,0)
spawn_tiere(-66,-56,-8)
 

Kompletter Code

def zaun (x,y,z):
   blocks.fill(DARK_OAK_FENCE, world(x,y,z,), world(x+24,y,z+24), FillOperation.HOLLOW)
   blocks.fill (AIR, world(x+1,y,z+1),world(x+23,y,z+23), FillOperation.HOLLOW)                      
zaun(-79,-60,-17)      
 
def Bambus (x,y,z):
   blocks.fill(BAMBOO, world(x,y,z), world(x,y+4,z), FillOperation.REPLACE)
   blocks.fill(BAMBOO, world(x,y,z+1), world(x,y+3,z+1), FillOperation.REPLACE)
   blocks.fill(BAMBOO, world(x-1,y,z), world(x-1,y+2,z), FillOperation.REPLACE)
Bambus (-76,-60,-13)
Bambus (-76,-60,3)
Bambus (-74,-60,5)
Bambus (-60,-60,-11)
Bambus (-65,-60,-15)
Bambus (-71,-60,-3)
Bambus (-60,-60,3)
def Bambushaus (x,y,z):
   for i in range (4):
       blocks.fill(BAMBOO_MOSAIC, world(x,y+i,z+i), world(x+6-i,y+i,z+i), FillOperation.HOLLOW)
       blocks.fill(BAMBOO_MOSAIC, world(x+6-i,y+i,z+i), world(x+6-i,y+i,z+7-i), FillOperation.HOLLOW)
       blocks.fill(BAMBOO_MOSAIC, world(x+6-i,y+i,z+7-i), world(x,y+i,z+7-i), FillOperation.HOLLOW)
 
Bambushaus (-69,-60,-11)
def spawn_tiere(x,y,z):
   My_list = [PANDA]
   for i in range(1):
       mobs.spawn (My_list[0], world(x,y,z))
spawn_tiere(-76,-60,-7)
spawn_tiere(-66,-60,-13)
spawn_tiere(-66,-60,-13)
spawn_tiere(-69,-60,0)
spawn_tiere(-66,-56,-8)
 
  • gf2/projekte/2024/minecraft/2d2gruppe2.1744103244.txt.gz
  • Zuletzt geändert: 2025/04/08 11:07
  • von bockm