Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| gf2:projekte:minecraft:2d1gruppe3 [2023/01/09 09:39] – heckelsmuellerj | gf2:projekte:minecraft:2d1gruppe3 [2023/02/06 08:36] (aktuell) – heckelsmuellerj | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| __**Dokumentation**__ | __**Dokumentation**__ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | {{ : | ||
| **Einführung: | **Einführung: | ||
| Zeile 28: | Zeile 32: | ||
| **Skilift Stationsplatform: | **Skilift Stationsplatform: | ||
| <code python> | <code python> | ||
| - | def platform(breite, | + | def platform(breite, |
| - | | + | |
| blocks.fill(STONE_BRICKS, | blocks.fill(STONE_BRICKS, | ||
| - | platform(5, 13) | + | |
| + | platform(5, 13)# | ||
| </ | </ | ||
| **Bahntunnel: | **Bahntunnel: | ||
| <code python> | <code python> | ||
| - | mat = [PLANKS_SPRUCE, | + | mat = [PLANKS_SPRUCE, |
| x = -113 | x = -113 | ||
| y = 150 | y = 150 | ||
| Zeile 43: | Zeile 47: | ||
| l = 94 | l = 94 | ||
| - | def entfernen(): | + | def entfernen(): |
| for count in range(0, l): | for count in range(0, l): | ||
| - | blocks.fill(AIR, | + | blocks.fill(AIR, |
| - | def bahn(): | + | def bahn(): |
| for count in range(l): | for count in range(l): | ||
| blocks.fill(mat[0], | blocks.fill(mat[0], | ||
| blocks.fill(mat[1], | blocks.fill(mat[1], | ||
| - | blocks.fill(mat[2], | + | blocks.fill(mat[2], |
| - | | + | |
| - | # | + | |
| def tunnel(): | def tunnel(): | ||
| for count in range(l): | for count in range(l): | ||
| - | blocks.fill(mat[4], | + | blocks.fill(mat[4], |
| for i in range(l): | for i in range(l): | ||
| - | if (i%20==0): | + | if (i%20==0): |
| blocks.place(mat[5], | blocks.place(mat[5], | ||
| blocks.place(mat[5], | blocks.place(mat[5], | ||
| entfernen() | entfernen() | ||
| bahn() | bahn() | ||
| - | | + | |
| - | # | + | |
| - | + | ||
| - | entfernen() | + | |
| - | #while (blocks.test_for_block(AIR, | + | |
| - | #tunnel(l) | + | |
| - | #bahn() | + | |
| tunnel() | tunnel() | ||
| - | |||
| </ | </ | ||
| Zeile 78: | Zeile 73: | ||
| **Brücke: | **Brücke: | ||
| <code python> | <code python> | ||
| - | #agent settings | + | #Hier sind die Agent settings, bedeutet soviel wie die Anfangseinstellungen des Agents |
| - | agent.set_item(LOG_SPRUCE, | + | agent.set_item(LOG_SPRUCE, |
| agent.set_item(PLANKS_SPRUCE, | agent.set_item(PLANKS_SPRUCE, | ||
| agent.set_item(CHAIN, | agent.set_item(CHAIN, | ||
| Zeile 86: | Zeile 81: | ||
| agent.set_item(SPRUCE_WOOD_STAIRS, | agent.set_item(SPRUCE_WOOD_STAIRS, | ||
| agent.set_assist(PLACE_ON_MOVE, | agent.set_assist(PLACE_ON_MOVE, | ||
| + | |||
| - | + | def BrückeSprucePlanks(): | |
| - | + | ||
| - | #Brücke Spruce Slabs | + | |
| - | + | ||
| - | + | ||
| - | def BrückeSprucePlanks(): | + | |
| agent.set_slot(2) | agent.set_slot(2) | ||
| for i in range(2): | for i in range(2): | ||
| Zeile 105: | Zeile 96: | ||
| agent.turn(LEFT) | agent.turn(LEFT) | ||
| | | ||
| - | def SpruceGelände(): | + | def SpruceGelände(): |
| agent.set_slot(1) | agent.set_slot(1) | ||
| agent.place(RIGHT) | agent.place(RIGHT) | ||
| Zeile 128: | Zeile 119: | ||
| agent.set_assist(PLACE_ON_MOVE, | agent.set_assist(PLACE_ON_MOVE, | ||
| - | def brückeMitte(): | + | def brückeMitte(): |
| agent.set_slot(1) | agent.set_slot(1) | ||
| agent.set_assist(PLACE_ON_MOVE, | agent.set_assist(PLACE_ON_MOVE, | ||
| Zeile 135: | Zeile 126: | ||
| agent.place(RIGHT) | agent.place(RIGHT) | ||
| agent.place(LEFT) | agent.place(LEFT) | ||
| - | for l in range(17): | + | for l in range(17): |
| agent.set_slot(6) | agent.set_slot(6) | ||
| agent.set_assist(PLACE_ON_MOVE, | agent.set_assist(PLACE_ON_MOVE, | ||
| Zeile 156: | Zeile 147: | ||
| agent.set_assist(PLACE_ON_MOVE, | agent.set_assist(PLACE_ON_MOVE, | ||
| - | def brückeTotal(): | + | def brückeTotal(): |
| BrückeSprucePlanks() | BrückeSprucePlanks() | ||
| SpruceGelände() | SpruceGelände() | ||
| Zeile 167: | Zeile 158: | ||
| agent.move(FORWARD, | agent.move(FORWARD, | ||
| SpruceGelände() | SpruceGelände() | ||
| - | | + | # |
| - | agent.teleport_to_player() | + | agent.teleport_to_player() |
| brückeTotal() | brückeTotal() | ||
| </ | </ | ||