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 16:54] – [Material:] bischofbergere | 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)//, | + | |
| - | **Red Stone** //(Tribüne)// | + | * Brick Stairs |
| - | ** Eis ** | + | * White Carpet (Spielfeldlinien) |
| - | ** Zaun ** | + | * Oakfence (Zaun) |
| - | ** ** | + | |
| + | | ||
| + | * Villager (Zuschauer) | ||
| + | | ||
| + | | ||
| + | | ||
| Zeile 39: | Zeile 44: | ||
| * Licht | * Licht | ||
| * Spieler (in Bewegung) | * Spieler (in Bewegung) | ||
| - | * Ball (in Bewegung | + | * Ball (in Bewegung) |
| * Anzeigetafel | * Anzeigetafel | ||
| Zeile 52: | 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 64: | Zeile 69: | ||
| - | ==== Fussballfeld (Boden) ==== | + | ==== Fussballfeld (Boden |
| <code python> | <code python> | ||
| Zeile 73: | 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 79: | 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 90: | Zeile 95: | ||
| - | ====Villiger auf dem Feld==== | + | ==== Villiger auf dem Feld ==== |
| + | |||
| <code python> | <code python> | ||
| Zeile 161: | 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 198: | Zeile 180: | ||
| | | ||
| </ | </ | ||
| - | =====Fussballplatz (Elin) ===== | + | =====Fussballplatz (Boden) ===== |
| <code python> | <code python> | ||
| Zeile 263: | 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 269: | 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 304: | 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 316: | 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 326: | 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 332: | 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): | ||