| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung |
| gf2:projekte:2024:minecraft:2d1gruppe4 [2025/04/06 22:29] – bulambog | gf2:projekte:2024:minecraft:2d1gruppe4 [2025/04/07 13:25] (aktuell) – [Code] nelai |
|---|
| \\ | \\ |
| ===== Welt ===== | ===== Welt ===== |
| \\ | \\ Seed: -2916915734141507220 |
| \\ | \\ |
| ===== Code ===== | ===== Code ===== |
| |
| |
| #Die Aussenterrasse und Treppe welche hinein und raus führt werden programmiert. | |
| def Aussen(x,y,z): | |
| material=[CRACKED_STONE_BRICKS,OAK_WOOD_STAIRS,OAK_FENCE] | |
| blocks.fill(material[0], world(x+30, y+7, z-15), world(x-7, y+7, z-19), FillOperation.REPLACE) | |
| blocks.fill(material[0], world(x+30, y+7, z-20), world(x+17, y+7, z-30), FillOperation.REPLACE) | |
| blocks.fill(material[0], world(x-7, y+7, z-20), world(x+6, y+7, z-30), FillOperation.REPLACE) | |
| blocks.fill(material[0], world(x+30, y+7, z-31), world(x-7, y+7, z-43), FillOperation.REPLACE) | |
| for i in range(6,-1,-1): | |
| blocks.fill(blocks.block_with_data(material[1],2), world(x+16, y+7-i, z-20-i), world(x+7, y+7-i, z-20-i), FillOperation.REPLACE) | |
| blocks.fill(material[2], world(x+16, y+8-i, z-20-i), world(x+16, y+9-i, z-20-i), FillOperation.REPLACE) | |
| blocks.fill(material[2], world(x+7, y+8-i, z-20-i), world(x+7, y+9-i, z-20-i), FillOperation.REPLACE) | |
| blocks.fill(material[2], world(x+17, y+8, z-31), world(x+17, y+8, z-20), FillOperation.REPLACE) | |
| blocks.fill(material[2], world(x+6, y+8, z-31), world(x+6, y+8, z-20), FillOperation.REPLACE) | |
| blocks.fill(material[2], world(x+17, y+8, z-31), world(x+6, y+8, z-31), FillOperation.REPLACE) | |
| blocks.fill(material[2], world(x+30, y+8, z-35), world(x-7, y+8, z-35), FillOperation.REPLACE) | |
| blocks.fill(material[2], world(x+30, y+8, z-34), world(x+30, y+8, z-15), FillOperation.REPLACE) | |
| blocks.fill(material[2], world(x-7, y+8, z-34), world(x-7, y+8, z-15), FillOperation.REPLACE) | |
| |
| | |
| | #Die Aussenterrasse und Treppe welche hinein und raus führt werden programmiert. |
| | |
| | def Aussen(x,y,z): |
| | material=[CRACKED_STONE_BRICKS,OAK_WOOD_STAIRS,OAK_FENCE] |
| | blocks.fill(material[0], world(x+30, y+7, z-15), world(x-7, y+7, z-19), FillOperation.REPLACE) |
| | blocks.fill(material[0], world(x+30, y+7, z-20), world(x+17, y+7, z-30), FillOperation.REPLACE) |
| | blocks.fill(material[0], world(x-7, y+7, z-20), world(x+6, y+7, z-30), FillOperation.REPLACE) |
| | blocks.fill(material[0], world(x+30, y+7, z-31), world(x-7, y+7, z-43), FillOperation.REPLACE) |
| | for i in range(6,-1,-1): |
| | blocks.fill(blocks.block_with_data(material[1],2), world(x+16, y+7-i, z-20-i), world(x+7, y+7-i, z-20-i), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x+16, y+8-i, z-20-i), world(x+16, y+9-i, z-20-i), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x+7, y+8-i, z-20-i), world(x+7, y+9-i, z-20-i), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x+17, y+8, z-31), world(x+17, y+8, z-20), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x+6, y+8, z-31), world(x+6, y+8, z-20), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x+17, y+8, z-31), world(x+6, y+8, z-31), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x+30, y+8, z-43), world(x-7, y+8, z-43), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x+30, y+8, z-42), world(x+30, y+8, z-15), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x-7, y+8, z-42), world(x-7, y+8, z-15), FillOperation.REPLACE) |
| | |
| |
| #die Tribüne links und rechts vom Feld wird gebaut. | #die Tribüne links und rechts vom Feld wird gebaut. |
| blocks.fill(material[2], world(x+15, y+5, z+5), world(x-14, y+5, z+5), FillOperation.REPLACE) | blocks.fill(material[2], world(x+15, y+5, z+5), world(x-14, y+5, z+5), FillOperation.REPLACE) |
| blocks.fill(material[2], world(x+15, y+6, z+6), world(x-14, y+6, z+6), FillOperation.REPLACE) | blocks.fill(material[2], world(x+15, y+6, z+6), world(x-14, y+6, z+6), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],N), world(x+3, y, z), world(x-1, y, z), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],2), world(x+3, y, z), world(x-1, y, z), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],N), world(x+3, y+1, z+1), world(x-1, y+1, z+1), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],2), world(x+3, y+1, z+1), world(x-1, y+1, z+1), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],N), world(x+3, y+2, z+2), world(x-1, y+2, z+2), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],2), world(x+3, y+2, z+2), world(x-1, y+2, z+2), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],N), world(x+3, y+3, z+3), world(x-1, y+3, z+3), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],2), world(x+3, y+3, z+3), world(x-1, y+3, z+3), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],N), world(x+3, y+4, z+4), world(x-1, y+4, z+4), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],2), world(x+3, y+4, z+4), world(x-1, y+4, z+4), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],N), world(x+3, y+5, z+5), world(x-1, y+5, z+5), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],2), world(x+3, y+5, z+5), world(x-1, y+5, z+5), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],N), world(x+3, y+6, z+6), world(x-1, y+6, z+6), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],2), world(x+3, y+6, z+6), world(x-1, y+6, z+6), FillOperation.REPLACE) |
| blocks.fill(material[1], world(x+15, y+1, z), world(x-14, y+1, z), FillOperation.REPLACE) | blocks.fill(material[1], world(x+15, y+1, z), world(x-14, y+1, z), FillOperation.REPLACE) |
| blocks.fill(material[1], world(x+15, y+2, z+1), world(x-14, y+2, z+1), FillOperation.REPLACE) | blocks.fill(material[1], world(x+15, y+2, z+1), world(x-14, y+2, z+1), FillOperation.REPLACE) |
| blocks.fill(material[2], world(x+15, y+5, z-28), world(x-14, y+5, z-28), FillOperation.REPLACE) | blocks.fill(material[2], world(x+15, y+5, z-28), world(x-14, y+5, z-28), FillOperation.REPLACE) |
| blocks.fill(material[2], world(x+15, y+6, z-29), world(x-14, y+6, z-29), FillOperation.REPLACE) | blocks.fill(material[2], world(x+15, y+6, z-29), world(x-14, y+6, z-29), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],S), world(x+3, y, z-23), world(x-1, y, z-23), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],3), world(x+3, y, z-23), world(x-1, y, z-23), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],S), world(x+3, y+1, z-24), world(x-1, y+1, z-24), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],3), world(x+3, y+1, z-24), world(x-1, y+1, z-24), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],S), world(x+3, y+2, z-25), world(x-1, y+2, z-25), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],3), world(x+3, y+2, z-25), world(x-1, y+2, z-25), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],S), world(x+3, y+3, z-26), world(x-1, y+3, z-26), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],3), world(x+3, y+3, z-26), world(x-1, y+3, z-26), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],S), world(x+3, y+4, z-27), world(x-1, y+4, z-27), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],3), world(x+3, y+4, z-27), world(x-1, y+4, z-27), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],S), world(x+3, y+5, z-28), world(x-1, y+5, z-28), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],3), world(x+3, y+5, z-28), world(x-1, y+5, z-28), FillOperation.REPLACE) |
| blocks.fill(blocks.block_with_data(material[0],S), world(x+3, y+6, z-29), world(x-1, y+6, z-29), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[0],3), world(x+3, y+6, z-29), world(x-1, y+6, z-29), FillOperation.REPLACE) |
| blocks.fill(material[1], world(x+15, y+1, z-23), world(x-14, y+1, z-23), FillOperation.REPLACE) | blocks.fill(material[1], world(x+15, y+1, z-23), world(x-14, y+1, z-23), FillOperation.REPLACE) |
| blocks.fill(material[1], world(x+15, y+2, z-24), world(x-14, y+2, z-24), FillOperation.REPLACE) | blocks.fill(material[1], world(x+15, y+2, z-24), world(x-14, y+2, z-24), FillOperation.REPLACE) |
| blocks.fill(material[3], world(x+3, y+6, z-28), world(x-1, y+6, z-28), FillOperation.REPLACE) | blocks.fill(material[3], world(x+3, y+6, z-28), world(x-1, y+6, z-28), FillOperation.REPLACE) |
| blocks.fill(material[3], world(x+3, y+7, z-29), world(x-1, y+7, z-29), FillOperation.REPLACE) | blocks.fill(material[3], world(x+3, y+7, z-29), world(x-1, y+7, z-29), FillOperation.REPLACE) |
| N = 2 | |
| S = 3 | |
| |
| def Gitter(x,y,z): | def Gitter(x,y,z): |
| #Dekoration für den Eingang wird gebaut. | #Dekoration für den Eingang wird gebaut. |
| def Deco(x,y,z): | def Deco(x,y,z): |
| material=[CHERRY_LEAVES,TORCH,BANNER,CHERRY_PLANKS,AIR] | material=[CHERRY_LEAVES,TORCH,BANNER,CHERRY_PLANKS,AIR, PINK_TULIP] |
| for i in range(16): | for i in range(16): |
| if i % 2 == 0: | if i % 2 == 0: |
| blocks.fill(material[0], world(x+16, y, z-27-i), world(x+16, y+1, z-27-i), FillOperation.REPLACE) | blocks.fill(material[0], world(x+16, y, z-27-i), world(x+16, y+1, z-27-i), FillOperation.REPLACE) |
| else: | else: |
| blocks.fill(material[1], world(x+16, y, z-27-i), world(x+16, y, z-27-i), FillOperation.REPLACE) | blocks.fill(material[1], world(x+16, y, z-27-i), world(x+16, y, z-27-i), FillOperation.REPLACE) |
| for i in range(16): | for i in range(16): |
| if i % 2 == 0: | if i % 2 == 0: |
| blocks.fill(blocks.block_with_data(material[2],S), world(x+10, y+7, z-15), world(x+10, y+7, z-15), FillOperation.REPLACE) | blocks.fill(blocks.block_with_data(material[2],S), world(x+10, y+7, z-15), world(x+10, y+7, z-15), FillOperation.REPLACE) |
| blocks.fill(material[1], world(x+12, y+9, z-15), world(x+11, y+9, z-15), FillOperation.REPLACE) | blocks.fill(material[1], world(x+12, y+9, z-15), world(x+11, y+9, z-15), FillOperation.REPLACE) |
| blocks.fill(material[3], world(x+13, y, z-44), world(x+9, y+3, z-44), FillOperation.REPLACE) | blocks.fill(material[3], world(x+13, y, z-43), world(x+9, y+3, z-43), FillOperation.REPLACE) |
| blocks.fill(material[4], world(x+12, y, z-44), world(x+10, y+2, z-44), FillOperation.REPLACE) | blocks.fill(material[4], world(x+12, y, z-43), world(x+10, y+2, z-43), FillOperation.REPLACE) |
| blocks.fill(material[1], world(x+13, y+3, z-45), world(x+9, y+3, z-45), FillOperation.REPLACE) | blocks.fill(material[1], world(x+13, y+3, z-44), world(x+9, y+3, z-44), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+13, y, z-44), world(x+13, y, z-44), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+9, y, z-44), world(x+9, y, z-44), FillOperation.REPLACE) |
| S=9 | S=9 |
| N=7 | N=7 |
| | |
| | |
| | #Die Garderobe mit den Bänken und Hacken um Jacken aufzuhängen wir programmiert |
| | def garderobe(x,y,z): |
| | material=[GRAY_CONCRETE, LOG_DARK_OAK, DARK_OAK_DOOR,GLASS_PANE, SPRUCE_WOOD_STAIRS, SPRUCE_FENCE, AIR] |
| | blocks.fill(material[0], world(x, y, z), world(x+7, y+5, z+10), FillOperation.HOLLOW) |
| | blocks.fill(material[1], world(x, y, z), world(x+7, y, z+10), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x, y+1, z+5), world(x, y+1, z+5), FillOperation.HOLLOW) |
| | blocks.fill(blocks.block_with_data(material[4], 2), world(x+3, y+1, z+9), world(x+6, y+1, z+9), FillOperation.REPLACE) |
| | blocks.fill(blocks.block_with_data(material[4], 3), world(x+3, y+1, z+1), world(x+6, y+1, z+1), FillOperation.REPLACE) |
| | blocks.fill(blocks.block_with_data(material[4], 3), world(x+3, y+1, z+6), world(x+6, y+1, z+6), FillOperation.REPLACE) |
| | blocks.fill(blocks.block_with_data(material[4], 2), world(x+3, y+1, z+4), world(x+6, y+1, z+4), FillOperation.REPLACE) |
| | blocks.fill(material[3], world(x+7, y+2, z+3), world(x+7, y+3, z+4), FillOperation.REPLACE) |
| | blocks.fill(material[3], world(x+7, y+2, z+6), world(x+7, y+3, z+7), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+3, y+3, z+9), world(x+6, y+3, z+9), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+3, y+3, z+4), world(x+6, y+3, z+6), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+3, y+1, z+5), world(x+6, y+2, z+5), FillOperation.REPLACE) |
| | blocks.fill(material[6], world(x+4, y+1, z+5), world(x+4, y+3, z+5), FillOperation.REPLACE) |
| | blocks.fill(material[6], world(x+6, y+1, z+5), world(x+6, y+3, z+5), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+3, y+3, z+1), world(x+6, y+3, z+1), FillOperation.REPLACE) |
| | |
| | #Das Licht, Laternen und Waschbecken wird programmiert |
| | def details(x,y,z): |
| | material=[GLOWSTONE, DARK_OAK_PRESSURE_PLATE, DARK_OAK_BUTTON, CHAIN] |
| | blocks.fill(material[0], world(x+2, y, z+3), world(x+3, y, z+4), FillOperation.REPLACE) |
| | blocks.fill(material[0], world(x+4, y, z+6), world(x+5, y, z+7), FillOperation.REPLACE) |
| | blocks.fill(material[1], world(x+1, y-4, z+5), world(x+1, y-4, z+5), FillOperation.REPLACE) |
| | blocks.fill(blocks.block_with_data(material[2], 4), world(x-1, y-3, z+6), world(x-1, y-3, z+6), FillOperation.REPLACE) |
| | blocks.fill(material[3], world(x+6, y-1, z+2), world(x+6, y-1, z+2), FillOperation.REPLACE) |
| | blocks.clone(world(92, -60, 145), world(92,-60,145), world(x+6, y-2,z+2), CloneMask.REPLACE, CloneMode.NORMAL) |
| | blocks.fill(material[3], world(x+2, y-1, z+9), world(x+2, y-1, z+9), FillOperation.REPLACE) |
| | blocks.clone(world(196, -58, 99), world(195,-60,98), world(x+1, y-3,z+8), CloneMask.REPLACE, CloneMode.NORMAL) |
| | blocks.clone(world(195, -61, 101), world(195,-61,101), world(x+1, y-4, z+1), CloneMask.REPLACE, CloneMode.NORMAL) |
| | blocks.clone(world(201, -59, 96), world(201,-59,96), world(x+1, y-3, z+1), CloneMask.REPLACE, CloneMode.NORMAL) |
| | |
| | #Die Garderobe wird bei der anderen Seite platziert |
| | def garderobe2(x,y,z): |
| | material=[GRAY_CONCRETE, LOG_DARK_OAK, DARK_OAK_DOOR,GLASS_PANE, SPRUCE_WOOD_STAIRS, SPRUCE_FENCE, AIR] |
| | blocks.fill(material[0], world(x, y, z), world(x+7, y+5, z+10), FillOperation.HOLLOW) |
| | blocks.fill(material[1], world(x, y, z), world(x+7, y, z+10), FillOperation.REPLACE) |
| | blocks.fill(material[2], world(x+7, y+1, z+5), world(x+7, y+1, z+5), FillOperation.HOLLOW) |
| | blocks.fill(blocks.block_with_data(material[4], 2), world(x+4, y+1, z+9), world(x+1, y+1, z+9), FillOperation.REPLACE) |
| | blocks.fill(blocks.block_with_data(material[4], 3), world(x+4, y+1, z+1), world(x+1, y+1, z+1), FillOperation.REPLACE) |
| | blocks.fill(blocks.block_with_data(material[4], 3), world(x+4, y+1, z+6), world(x+1, y+1, z+6), FillOperation.REPLACE) |
| | blocks.fill(blocks.block_with_data(material[4], 2), world(x+4, y+1, z+4), world(x+1, y+1, z+4), FillOperation.REPLACE) |
| | blocks.fill(material[3], world(x, y+2, z+3), world(x, y+3, z+4), FillOperation.REPLACE) |
| | blocks.fill(material[3], world(x, y+2, z+6), world(x, y+3, z+7), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+4, y+3, z+9), world(x+1, y+3, z+9), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+4, y+3, z+4), world(x+1, y+3, z+6), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+4, y+1, z+5), world(x+1, y+2, z+5), FillOperation.REPLACE) |
| | blocks.fill(material[6], world(x+3, y+1, z+5), world(x+3, y+3, z+5), FillOperation.REPLACE) |
| | blocks.fill(material[6], world(x+1, y+1, z+5), world(x+1, y+3, z+5), FillOperation.REPLACE) |
| | blocks.fill(material[5], world(x+4, y+3, z+1), world(x+1, y+3, z+1), FillOperation.REPLACE) |
| | |
| | |
| | def details2(x,y,z): |
| | material=[GLOWSTONE, DARK_OAK_PRESSURE_PLATE, DARK_OAK_BUTTON, CHAIN] |
| | blocks.fill(material[0], world(x+2, y, z+3), world(x+3, y, z+4), FillOperation.REPLACE) |
| | blocks.fill(material[0], world(x+4, y, z+6), world(x+5, y, z+7), FillOperation.REPLACE) |
| | blocks.fill(material[1], world(x+6, y-4, z+5), world(x+6, y-4, z+5), FillOperation.REPLACE) |
| | |
| | #Wenn man das Feld betritt werden Villagers gespawned als Zuschauer |
| | def on_travelled_walk(): |
| | def on_forever(): |
| | x = player.position().get_value(Axis.X) |
| | y = player.position().get_value(Axis.Y) |
| | z = player.position().get_value(Axis.Z) |
| | |
| | if (129<=x<= 152) and (-61<=y<=-58) and (216<=z<=230): |
| | |
| | mobs.spawn(VILLAGER, world(141, -53, 241)) |
| | mobs.spawn(VILLAGER, world(141, -53, 203)) |
| | |
| | loops.forever(on_forever) |
| |
| Treppe(140, -60, 233) | Treppe(140, -60, 233) |
| Steg(129,-61,216) | Steg(129,-61,216) |
| Weg(129,-61,216) | Weg(129,-61,216) |
| Deco(129,-60,216) | Deco(129,-60,216) |
| | garderobe(151,-54,177) |
| | garderobe(151,-54,190) |
| | details(151, -49, 177) |
| | details(151, -49, 190) |
| | garderobe2(123,-54,177) |
| | details2(123, -49, 177) |
| | garderobe2(123,-54,190) |
| | details2(123, -49, 190) |
| | on_travelled_walk() |
| </code> | </code> |