Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| gf2:projekte:minecraft:2d1gruppe6 [2023/01/27 21:02] – porchety | gf2:projekte:minecraft:2d1gruppe6 [2023/01/30 09:01] (aktuell) – staempflim | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | **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 für Welt: | + | Hier ist unsere fertige |
| - | + | ||
| - | <code python> | + | |
| - | def Eingang(x, | + | |
| - | blocks.fill(PURPUR_BLOCK, | + | |
| - | blocks.fill(STRIPPED_OAK_WOOD, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.place(AIR, | + | |
| - | + | ||
| - | def panda_gehege(X, | + | |
| - | blocks.fill(OAK_FENCE, | + | |
| - | blocks.fill(AIR, | + | |
| - | + | ||
| - | def Streichelzoo(x, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.place(IRON_DOOR, | + | |
| - | blocks.place(STONE_PRESSURE_PLATE, | + | |
| - | blocks.place(STONE_PRESSURE_PLATE, | + | |
| - | blocks.place(IRON_DOOR, | + | |
| - | blocks.fill(GRASS, | + | |
| - | blocks.fill(GRASS, | + | |
| - | blocks.fill(GRASS, | + | |
| - | + | ||
| - | def papagei_gehege(X, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.place(STONE_PRESSURE_PLATE, | + | |
| - | blocks.place(STONE_PRESSURE_PLATE, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.place(STONE_PRESSURE_PLATE, | + | |
| - | blocks.place(STONE_PRESSURE_PLATE, | + | |
| - | + | ||
| - | def Wolf_Ocelot(x, | + | |
| - | blocks.fill(SPRUCE_FENCE, | + | |
| - | blocks.fill(AIR, | + | |
| - | + | ||
| - | def ziegengehege(x, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(AIR, | + | |
| - | blocks.fill(GRASS, | + | |
| - | blocks.fill(GRASS, | + | |
| - | + | ||
| - | def Tintenfisch(x, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(GRASS, | + | |
| - | blocks.fill(SAND, | + | |
| - | blocks.fill(WATER, | + | |
| - | + | ||
| - | def Schildkrötenfisch(x, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(GRASS, | + | |
| - | blocks.fill(SAND, | + | |
| - | blocks.fill(WATER, | + | |
| - | + | ||
| - | def TunnelAquarium(X, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(WATER, | + | |
| - | blocks.fill(GLASS, | + | |
| - | blocks.fill(SAND, | + | |
| - | blocks.fill(GLOWSTONE, | + | |
| - | blocks.fill(AIR, | + | |
| - | + | ||
| - | def Zoo(): | + | |
| - | TunnelAquarium(-31, | + | |
| - | Schildkrötenfisch(-36, | + | |
| - | Tintenfisch(-16, | + | |
| - | ziegengehege(45, | + | |
| - | Wolf_Ocelot(25, | + | |
| - | papagei_gehege(29, | + | |
| - | Streichelzoo(14, | + | |
| - | panda_gehege(-16, | + | |
| - | Eingang(0, | + | |
| - | + | ||
| - | Zoo() | + | |
| - | + | ||
| - | </ | + | |
| - | Code für die Welt: | + | |
| <code python> | <code python> | ||
| def Eingang(x, | def Eingang(x, | ||
| Zeile 469: | Zeile 385: | ||
| blocks.fill(STONE, | blocks.fill(STONE, | ||
| blocks.fill(STONE, | blocks.fill(STONE, | ||
| + | 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(" | ||
| + | |||
| + | if (-20< | ||
| + | mobs.spawn(BEE, | ||
| + | |||
| + | player.on_travelled(WALK, | ||
| Zoo() | Zoo() | ||
| </ | </ | ||
| - | |||