Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| gf2:projekte:2024:minecraft:2d1gruppe1 [2025/04/06 17:02] – [Material:] strittl | gf2:projekte:2024:minecraft:2d1gruppe1 [2025/04/06 17:32] (aktuell) – [Fertiger Code] bischofbergere | ||
|---|---|---|---|
| Zeile 14: | Zeile 14: | ||
| <color #ffaec9> | <color #ffaec9> | ||
| </ | </ | ||
| - | ===== Grössen: ===== | ||
| Zeile 23: | Zeile 22: | ||
| - | Weisser Beton (Grundlage) | + | * Green Carpet |
| - | Red Stone (Tribüne) | + | * Brick Stairs |
| - | Eis (Ball) | + | * White Carpet |
| - | Zaun | + | * Oakfence (Zaun) |
| - | Villager | + | * Birch Door (Türe) |
| - | RMADILLO | + | * White Concrete + Cobweb (Tore) |
| + | * Villager | ||
| + | * Armadillo | ||
| + | * Shroomlight (Lichter) | ||
| + | * Ice (Eis unter dem Feld) | ||
| Zeile 40: | Zeile 44: | ||
| * Licht | * Licht | ||
| * Spieler (in Bewegung) | * Spieler (in Bewegung) | ||
| - | * Ball (in Bewegung | + | * Ball (in Bewegung) |
| * Anzeigetafel | * Anzeigetafel | ||
| Zeile 53: | Zeile 57: | ||
| * Beleuchtung im Stadion | * Beleuchtung im Stadion | ||
| * Zaun | * Zaun | ||
| - | * Ball | + | * Schriftzug vor dem Stadion |
| ===== Zu erledigen: ===== | ===== Zu erledigen: ===== | ||
| **Skizze des Fussballplatzes**// | **Skizze des Fussballplatzes**// | ||
| - | <color # | + | <color # |
| Zeile 74: | Zeile 78: | ||
| blocks.fill(AIR, | blocks.fill(AIR, | ||
| blocks.fill(GREEN_CARPET, | blocks.fill(GREEN_CARPET, | ||
| - | blocks.fill(ICE, | + | blocks.fill(ICE, |
| for i in range(radius): | for i in range(radius): | ||
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| Zeile 80: | Zeile 84: | ||
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| - | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | + | blocks.fill(blocks.block_with_data(BRICK_STAIRS, |
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| Zeile 91: | Zeile 95: | ||
| - | ====Villiger auf dem Feld==== | + | ==== Villiger auf dem Feld ==== |
| + | |||
| <code python> | <code python> | ||
| Zeile 162: | Zeile 168: | ||
| </ | </ | ||
| - | ===== Bewegender Ball ===== | ||
| - | <code python> | ||
| - | running = True # solange dies auf True ist, läuft der Game-Loop | ||
| - | |||
| - | def stopGame(): # wenn " | ||
| - | global running | ||
| - | running = False | ||
| - | |||
| - | player.on_chat(" | ||
| - | |||
| - | x = 716 | ||
| - | frame = 0 | ||
| - | |||
| - | while running: | ||
| - | frame += 1 | ||
| - | if (frame % 50 == 0): # immer nach 50 Frames | ||
| - | for i in range(70): | ||
| - | blocks.place(DIAMOND_BLOCK, | ||
| - | blocks.place(AIR, | ||
| - | for i in range(70): | ||
| - | | ||
| - | | ||
| - | running = True # solange dies auf True ist, läuft der Game-Loop | ||
| - | |||
| - | </ | ||
| ===== Fussball ===== | ===== Fussball ===== | ||
| Zeile 199: | Zeile 180: | ||
| | | ||
| </ | </ | ||
| - | =====Fussballplatz (Elin) ===== | + | =====Fussballplatz (Boden) ===== |
| <code python> | <code python> | ||
| Zeile 264: | Zeile 245: | ||
| blocks.fill(AIR, | blocks.fill(AIR, | ||
| blocks.fill(GREEN_CARPET, | blocks.fill(GREEN_CARPET, | ||
| - | blocks.fill(ICE, | + | blocks.fill(ICE, |
| for i in range(radius): | for i in range(radius): | ||
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| Zeile 270: | Zeile 251: | ||
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| - | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | + | blocks.fill(blocks.block_with_data(BRICK_STAIRS, |
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| blocks.fill(blocks.block_with_data(BRICK_STAIRS, | blocks.fill(blocks.block_with_data(BRICK_STAIRS, | ||
| Zeile 305: | Zeile 286: | ||
| blocks.fill(WHITE_CONCRETE, | blocks.fill(WHITE_CONCRETE, | ||
| blocks.fill(COBWEB, | blocks.fill(COBWEB, | ||
| - | blocks.fill(WHITE_CONCRETE, | + | blocks.fill(WHITE_CONCRETE, |
| blocks.fill(WHITE_CONCRETE, | blocks.fill(WHITE_CONCRETE, | ||
| blocks.fill(WHITE_CONCRETE, | blocks.fill(WHITE_CONCRETE, | ||
| blocks.fill(COBWEB, | blocks.fill(COBWEB, | ||
| - | blocks.fill(OAK_FENCE, | + | blocks.fill(OAK_FENCE, |
| blocks.fill(OAK_FENCE, | blocks.fill(OAK_FENCE, | ||
| blocks.fill(OAK_FENCE, | blocks.fill(OAK_FENCE, | ||
| Zeile 317: | Zeile 298: | ||
| blocks.fill(SHROOMLIGHT, | blocks.fill(SHROOMLIGHT, | ||
| blocks.fill(SHROOMLIGHT, | blocks.fill(SHROOMLIGHT, | ||
| - | + | | |
| - | # Eckzäune (4 Ecken extra absichern) | + | |
| - | | + | |
| blocks.place(OAK_FENCE, | blocks.place(OAK_FENCE, | ||
| blocks.place(OAK_FENCE, | blocks.place(OAK_FENCE, | ||
| Zeile 327: | Zeile 306: | ||
| def mobspawn(x, | def mobspawn(x, | ||
| for i in range(100): | for i in range(100): | ||
| - | mobs.spawn(VILLAGER, | + | mobs.spawn(VILLAGER, |
| for i in range(100): | for i in range(100): | ||
| mobs.spawn(VILLAGER, | mobs.spawn(VILLAGER, | ||
| Zeile 333: | Zeile 312: | ||
| mobs.spawn(VILLAGER, | mobs.spawn(VILLAGER, | ||
| for i in range (1): | for i in range (1): | ||
| - | mobs.spawn(ARMADILLO, | + | mobs.spawn(ARMADILLO, |
| def stadiondach(x, | def stadiondach(x, | ||
| for i in range(radius): | for i in range(radius): | ||