gf2:projekte:minecraft:2d2gruppe5

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
gf2:projekte:minecraft:2d2gruppe5 [2023/02/03 18:57] huerlimanndgf2:projekte:minecraft:2d2gruppe5 [2023/02/07 12:16] (aktuell) huerlimannd
Zeile 2: Zeile 2:
 Konzept: Gebäude (Villa) programmieren um sie durch Code bauen zu können. Konzept: Gebäude (Villa) programmieren um sie durch Code bauen zu können.
  
-Code für einen Raum:+Code für Villa (1): 
 +<code> 
 +house() 
 +room() 
 +bathfoundation() 
 +bathroomdoor() 
 +bathroomlights() 
 +bathfurniture() 
 +bathroom() 
 +pool() 
 +#Fundament vom ganzen Haus 
 +def house(): 
 +    blocks.fill(CYAN_CONCRETE, world(49, -62, 38), world(73, -49, 61), FillOperation.REPLACE) 
 +    blocks.fill(AIR, world(50, -61, 39), world(72, -50, 60), FillOperation.REPLACE) 
 +    blocks.fill(PLANKS_DARK_OAK, world(61, -61, 39), world(50, -61, 60), FillOperation.REPLACE) 
 +    blocks.fill(PLANKS_SPRUCE, world(72, -55, 39), world(50, -55, 60), FillOperation.REPLACE) 
 + 
 +    #Eingang 
 +    blocks.fill(AIR, world(49, -60, 49), world(49, -59, 50), FillOperation.REPLACE) 
 +    blocks.fill(IRON_DOOR_ITEM, world(49, -60, 49), world(49, -59, 50), FillOperation.REPLACE) 
 +    blocks.fill(DARK_OAK_PRESSURE_PLATE, world(50, -60, 49), world(50, -60, 50), FillOperation.REPLACE) 
 +    blocks.fill(SPRUCE_PRESSURE_PLATE, world(48, -60, 49), world(48, -60, 50), FillOperation.REPLACE) 
 +     
 +    #Wände 
 +    blocks.fill(CYAN_CONCRETE, world(50, -60, 45), world(55, -56, 45), FillOperation.REPLACE) 
 +    blocks.fill(CYAN_CONCRETE, world(52, -60, 39), world(52, -56, 42), FillOperation.REPLACE) 
 +    blocks.fill(CYAN_CONCRETE, world(61, -60, 60), world(61, -50, 39), FillOperation.REPLACE) 
 + 
 +    #Wohnzimmer Couch 
 +    blocks.fill(blocks.block_with_data(NETHER_BRICK_STAIRS, 3), world(51, -60, 54), world(54, -60, 54), FillOperation.REPLACE) 
 +    blocks.place(blocks.block_with_data(NETHER_BRICK_STAIRS, 1), world(51, -60, 55)) 
 +    blocks.place(blocks.block_with_data(NETHER_BRICK_STAIRS, 0), world(54, -60, 55)) 
 + 
 +    blocks.fill(blocks.block_with_data(NETHER_BRICK_STAIRS, 2), world(51, -60, 59), world(54, -60, 59), FillOperation.REPLACE) 
 +    blocks.place(blocks.block_with_data(NETHER_BRICK_STAIRS, 1), world(51, -60, 58)) 
 +    blocks.place(blocks.block_with_data(NETHER_BRICK_STAIRS, 0), world(54, -60, 58)) 
 + 
 +    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 6), world(52, -60, 56)) 
 +    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 5), world(53, -60, 56)) 
 +    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 7), world(53, -60, 57)) 
 +    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 4), world(52, -60, 57)) 
 + 
 +    #Wohnzimmer Aquarium 
 +    blocks.fill(blocks.block_with_data(STONE_BRICK_STAIRS, 3), world(56, -60, 51), world(59, -60, 51), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(GLASS_PANE, 3), world(56, -59, 51), world(59, -56, 51), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(STONE_BRICK_STAIRS, 2), world(56, -60, 48), world(59, -60, 48), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(GLASS_PANE, 2), world(56, -59, 48), world(59, -56, 48), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(STONE_BRICK_STAIRS, 1), world(59, -60, 48), world(59, -60, 51), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(GLASS_PANE, 1), world(59, -59, 48), world(59, -56, 51), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(STONE_BRICK_STAIRS, 0), world(56, -60, 48), world(56, -60, 51), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(GLASS_PANE, 0), world(56, -59, 48), world(56, -56, 51), FillOperation.REPLACE) 
 +    blocks.fill(WATER, world(57, -60, 49), world(58, -56, 50), FillOperation.REPLACE) 
 + 
 +    mobs.spawn(TROPICAL_FISH, world(57, -59, 49)) 
 +    mobs.spawn(TROPICAL_FISH, world(57, -58, 49)) 
 +    mobs.spawn(TROPICAL_FISH, world(57, -57, 49)) 
 + 
 +    #Mini Zoo 
 +    blocks.fill(GRASS, world(50, -54, 60), world(54, -54, 46), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(GLASS_PANE, 2), world(50, -53, 60), world(54, -50, 46), FillOperation.REPLACE) 
 +    blocks.fill(AIR, world(50, -53, 60), world(53, -50, 47), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_TRAPDOOR, 8), world(55, -54, 60), world(55, -54, 46), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_TRAPDOOR, 11), world(54, -54, 45), world(53, -54, 45), FillOperation.REPLACE) 
 + 
 +    mobs.spawn(LLAMA, world(52, -53, 54)) 
 +    mobs.spawn(MUSHROOM_COW, world(50, -53, 56)) 
 +    mobs.spawn(MUSHROOM_COW, world(52, -53, 54)) 
 +    mobs.spawn(OCELOT, world(51, -53, 55)) 
 +    mobs.spawn(OCELOT, world(52, -53, 56)) 
 +    mobs.spawn(OCELOT, world(51, -53, 52)) 
 +    
 +    #Treppen 
 +    blocks.fill(GRASS, world(53, -60, 39), world(53, -60, 42), FillOperation.REPLACE) 
 +    blocks.place(POPPY, world(53, -59, 39)) 
 +    blocks.place(ALLIUM, world(53, -59, 40)) 
 +    blocks.place(YELLOW_FLOWER, world(53, -59, 41)) 
 +    blocks.place(LILY_OF_THE_VALLEY, world(53, -59, 42)) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_TRAPDOOR, 8), world(54, -60, 39), world(54, -60, 42), FillOperation.REPLACE) 
 +    blocks.fill(AIR, world(50, -55, 44), world(51, -55, 40), FillOperation.REPLACE) 
 +    blocks.fill(SPRUCE_FENCE, world(50, -54, 45), world(51, -54, 45), FillOperation.REPLACE) 
 +    blocks.fill(SPRUCE_FENCE, world(52, -54, 45), world(52, -54, 40), FillOperation.REPLACE) 
 +    blocks.fill(PLANKS_DARK_OAK, world(50, -60, 39), world(51, -56, 40), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_WOOD_STAIRS, 3), world(51, -55, 40), world(50, -55, 40), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_WOOD_STAIRS, 3), world(51, -56, 41), world(50, -56, 41), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_WOOD_STAIRS, 3), world(51, -57, 42), world(50, -57, 42), FillOperation.REPLACE) 
 +    blocks.fill(PLANKS_DARK_OAK, world(50, -58, 44), world(51, -58, 43), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_WOOD_STAIRS, 1), world(52, -58, 43), world(52, -58, 44), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_WOOD_STAIRS, 1), world(53, -59, 43), world(53, -59, 44), FillOperation.REPLACE) 
 +    blocks.fill(blocks.block_with_data(DARK_OAK_WOOD_STAIRS, 1), world(54, -60, 43), world(54, -60, 44), FillOperation.REPLACE) 
 + 
 +    #Lichtquellen 
 +    blocks.fill(GLASS_PANE, world(59, -59, 61), world(51, -57, 61), FillOperation.REPLACE) 
 +    blocks.fill(GLASS_PANE, world(54, -59, 38), world(59, -57, 38), FillOperation.REPLACE) 
 +    blocks.fill(GLASS_PANE, world(51, -53, 38), world(59, -51, 38), FillOperation.REPLACE) 
 +    blocks.fill(GLASS_PANE, world(51, -53, 61), world(59, -51, 61), FillOperation.REPLACE) 
 +    blocks.fill(GLASS_PANE, world(49, -53, 59), world(49, -51, 46), FillOperation.REPLACE) 
 +    blocks.place(GLOWSTONE, world(53, -56, 39)) 
 +    blocks.place(GLOWSTONE, world(60, -56, 39)) 
 +    blocks.place(GLOWSTONE, world(60, -56, 60)) 
 +    blocks.place(GLOWSTONE, world(50, -56, 46)) 
 +    blocks.place(GLOWSTONE, world(50, -56, 60)) 
 +    blocks.place(GLOWSTONE, world(50, -50, 39)) 
 +    blocks.place(GLOWSTONE, world(50, -50, 60)) 
 +    blocks.place(GLOWSTONE, world(60, -50, 39)) 
 +    blocks.place(GLOWSTONE, world(60, -50, 60)) 
 +</code> 
 + 
 +Code für den Raum:
 <code> <code>
 def room(): def room():
-    #foundation +    #Fundament 
-    blocks.fill(GREEN_CONCRETE, world(50, -61, 50), world(60, -56, 60), FillOperation.REPLACE) +    blocks.fill(GREEN_CONCRETE, world(62, -55, 50), world(72, -50, 60), FillOperation.REPLACE) 
-    blocks.fill(PLANKS_SPRUCE, world(50, -61, 50), world(60, -61, 60), FillOperation.REPLACE) +    blocks.fill(PLANKS_SPRUCE, world(62, -55, 50), world(72, -55, 60), FillOperation.REPLACE) 
-    blocks.fill(AIR, world(51, -60, 51), world(59, -57, 59), FillOperation.REPLACE)+    blocks.fill(AIR, world(63, -54, 51), world(71, -51, 59), FillOperation.REPLACE)
  
-    #light sources +    #Lichtquellen 
-    blocks.fill(GLASS_PANE, world(58, -59, 60), world(57, -58, 60), FillOperation.REPLACE) +    blocks.fill(AIR, world(70, -53, 61), world(69, -52, 61), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(54, -56, 54), world(56, -56, 56), FillOperation.REPLACE)+    blocks.fill(AIR, world(73, -53, 55), world(73, -52, 52), FillOperation.REPLACE) 
 +    blocks.fill(GLASS_PANE, world(70, -53, 60), world(69, -52, 60), FillOperation.REPLACE) 
 +    blocks.fill(GLASS_PANE, world(72, -53, 55), world(72, -52, 52), FillOperation.REPLACE) 
 +    blocks.fill(SEA_LANTERN, world(66, -50, 54), world(68, -50, 56), FillOperation.REPLACE)
  
-    #entry way +    #Eingang 
-    blocks.fill(AIR, world(50, -60, 55), world(50, -59, 55), FillOperation.REPLACE) +    blocks.fill(AIR, world(62, -54, 55), world(61, -53, 55), FillOperation.REPLACE) 
-    blocks.fill(IRON_DOOR_ITEM, world(50, -60, 55), world(50, -59, 55), FillOperation.REPLACE) +    blocks.fill(IRON_DOOR_ITEM, world(62, -54, 55), world(62, -53, 55), FillOperation.REPLACE) 
-    blocks.place(SPRUCE_PRESSURE_PLATE, world(49, -60, 55)) +    blocks.place(SPRUCE_PRESSURE_PLATE, world(61, -54, 55)) 
-    blocks.place(SPRUCE_PRESSURE_PLATE, world(51, -60, 55))+    blocks.place(SPRUCE_PRESSURE_PLATE, world(63, -54, 55))
  
-    #sleeping corner +    #Schlafplatz 
-    blocks.place(BED_ITEM, world(58, -60, 59)) +    blocks.place(BED_ITEM, world(70, -54, 59)) 
-    blocks.place(BED_ITEM, world(57, -60, 59)) +    blocks.place(BED_ITEM, world(69, -54, 59)) 
-    blocks.place(CHEST, world(59, -60, 59)) +    blocks.place(CHEST, world(71, -54, 59)) 
-    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 6), world(56, -60, 59))+    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 6), world(68, -54, 59))
  
-    #couch +    #Couch 
-    blocks.fill(DARK_PRISMARINE_STAIRS, world(59, -6052), world(59, -6053), FillOperation.REPLACE) +    blocks.fill(DARK_PRISMARINE_STAIRS, world(71, -5453), world(71, -5454), FillOperation.REPLACE) 
-    blocks.fill(blocks.block_with_data(DARK_PRISMARINE_STAIRS, 2), world(58, -60, 54), world(59, -60, 54), FillOperation.REPLACE) +    blocks.fill(blocks.block_with_data(DARK_PRISMARINE_STAIRS, 2), world(70, -54, 55), world(71, -54, 55), FillOperation.REPLACE) 
-    blocks.fill(blocks.block_with_data(DARK_PRISMARINE_STAIRS, 3), world(59, -6051), world(58, -6051), FillOperation.REPLACE)+    blocks.fill(blocks.block_with_data(DARK_PRISMARINE_STAIRS, 3), world(71, -5452), world(70, -5452), FillOperation.REPLACE)
  
-    #aquarium +    #Aquarium 
-    blocks.fill(PLANKS_DARK_OAK, world(54, -60, 58), world(51, -60, 59), FillOperation.REPLACE)  +    blocks.fill(PLANKS_DARK_OAK, world(66, -54, 58), world(63, -54, 59), FillOperation.REPLACE) 
-    blocks.fill(GLASS_PANE, world(54, -59, 58), world(51, -57, 59), FillOperation.REPLACE)     +    blocks.fill(GLASS_PANE, world(66, -53, 58), world(63, -51, 59), FillOperation.REPLACE) 
-    blocks.fill(WATER, world(53, -60, 59), world(51, -57, 59), FillOperation.REPLACE)  +    blocks.fill(WATER, world(65, -54, 59), world(63, -51, 59), FillOperation.REPLACE) 
-    mobs.spawn(AXOLOTL, world(53, -58, 59)) +    mobs.spawn(AXOLOTL, world(65, -52, 59)) 
-    mobs.spawn(AXOLOTL, world(53, -58, 59))+    mobs.spawn(AXOLOTL, world(65, -52, 59))
          
-    #desk +    #Tisch 
-    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 5), world(52, -60, 51)) +    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 5), world(64, -54, 51)) 
-    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 7), world(53, -60, 51)) +    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 7), world(65, -54, 51)) 
-    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 4), world(54, -60, 51))+    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 4), world(66, -54, 51))
  
-    #chair +    #Stuhl 
-    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 2), world(53, -60, 52)) +    blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 2), world(65, -54, 52)) 
-    blocks.place(blocks.block_with_data(BIRCH_TRAPDOOR, 8), world(54, -60, 52)) +    blocks.place(blocks.block_with_data(BIRCH_TRAPDOOR, 8), world(66, -54, 52)) 
-    blocks.place(blocks.block_with_data(BIRCH_TRAPDOOR, 9), world(52, -60, 52)) +    blocks.place(blocks.block_with_data(BIRCH_TRAPDOOR, 9), world(64, -54, 52)) 
-    </code> + </code> 
-     + 
-Badezimmer:+Code für Badezimmer:
 <code> <code>
 def bathfoundation(): def bathfoundation():
-    blocks.fill((AIR), world(50, -60, 80), world(60, -50, 90), FillOperation.REPLACE) +    blocks.fill((AIR), world(62, -54, 80), world(72, -44, 90), FillOperation.REPLACE) 
-    blocks.fill((BLOCK_OF_QUARTZ), world(50, -61, 49), world(60, -56, 39), FillOperation.REPLACE) +    blocks.fill((BLOCK_OF_QUARTZ), world(62, -50, 49), world(72, -55, 39), FillOperation.REPLACE) 
-    blocks.fill((AIR), world(51, -60, 48), world(59, -57, 40), FillOperation.REPLACE) +    blocks.fill((AIR), world(63, -54, 48), world(71, -51, 40), FillOperation.REPLACE) 
-    blocks.fill((AIR), world(56, -60, 50), world(56, -59, 49), FillOperation.REPLACE)+    blocks.fill((AIR), world(68, -54, 50), world(68, -53, 49), FillOperation.REPLACE)
  
 def bathroomdoor(): def bathroomdoor():
-    blocks.place(blocks.block_with_data(IRON_DOOR, 3), world(56, -60, 49)) +    blocks.place(blocks.block_with_data(IRON_DOOR, 3), world(68, -54, 49)) 
-    blocks.place(SPRUCE_PRESSURE_PLATE, world(56, -60, 50)) +    blocks.place(SPRUCE_PRESSURE_PLATE, world(68, -54, 50)) 
-    blocks.place(STONE_PRESSURE_PLATE, world(56, -60, 48))+    blocks.place(STONE_PRESSURE_PLATE, world(68, -54, 48)) 
  
 def bathroomlights(): def bathroomlights():
-    blocks.fill(SEA_LANTERN, world(52, -56, 40), world(53, -56, 40), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(64, -50, 40), world(65, -50, 40), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(57, -56, 40), world(58, -56, 40), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(69, -50, 40), world(70, -50, 40), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(52, -56, 43), world(53, -56, 43), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(64, -50, 43), world(65, -50, 43), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(57, -56, 43), world(58, -56, 43), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(69, -50, 43), world(70, -50, 43), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(52, -56, 45), world(53, -56, 45), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(64, -50, 45), world(65, -50, 45), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(57, -56, 45), world(58, -56, 45), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(69, -50, 45), world(70, -50, 45), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(52, -56, 48), world(53, -56, 48), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(64, -50, 48), world(65, -50, 48), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(57, -56, 48), world(58, -56, 48), FillOperation.REPLACE)+    blocks.fill(SEA_LANTERN, world(69, -50, 48), world(70, -50, 48), FillOperation.REPLACE)
  
-    blocks.fill(SEA_LANTERN, world(51, -56, 41), world(51, -56, 42), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(63, -50, 41), world(63, -50, 42), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(51, -56, 46), world(51, -56, 47), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(63, -50, 46), world(63, -50, 47), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(54, -56, 41), world(54, -56, 42), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(66, -50, 41), world(66, -50, 42), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(54, -56, 46), world(54, -56, 47), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(66, -50, 46), world(66, -50, 47), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(56, -56, 41), world(56, -56, 42), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(68, -50, 41), world(68, -50, 42), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(56, -56, 46), world(56, -56, 47), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(68, -50, 46), world(68, -50, 47), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(59, -56, 41), world(59, -56, 42), FillOperation.REPLACE) +    blocks.fill(SEA_LANTERN, world(71, -50, 41), world(71, -50, 42), FillOperation.REPLACE) 
-    blocks.fill(SEA_LANTERN, world(59, -56, 46), world(59, -56, 47), FillOperation.REPLACE)+    blocks.fill(SEA_LANTERN, world(71, -50, 46), world(71, -50, 47), FillOperation.REPLACE)
  
 def bathfurniture(): def bathfurniture():
-    #bathtib +    #Badewanne 
-    blocks.fill(blocks.block_with_data(QUARTZ_STAIRS, 3), world(51, -60, 43), world(54, -60, 43), FillOperation.REPLACE) +    blocks.fill(blocks.block_with_data(QUARTZ_STAIRS, 3), world(63, -54, 43), world(66, -54, 43), FillOperation.REPLACE) 
-    blocks.fill(blocks.block_with_data(QUARTZ_STAIRS, 1), world(54, -60, 40), world(54, -60, 43), FillOperation.REPLACE) +    blocks.fill(blocks.block_with_data(QUARTZ_STAIRS, 1), world(66, -54, 40), world(66, -54, 43), FillOperation.REPLACE) 
-    blocks.fill(WATER, world(51, -60, 40), world(53, -60, 42), FillOperation.REPLACE)+    blocks.fill(WATER, world(63, -54, 40), world(65, -54, 42), FillOperation.REPLACE)
  
-    #sink +    #Lavabo 
-    blocks.place(BLOCK_OF_QUARTZ, world(56, -60, 40)) +    blocks.place(BLOCK_OF_QUARTZ, world(68, -54, 40)) 
-    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 2), world(57, -60, 40)) +    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 2), world(69, -54, 40)) 
-    blocks.place(BLOCK_OF_QUARTZ, world(58, -60, 40)) +    blocks.place(BLOCK_OF_QUARTZ, world(70, -54, 40)) 
-    blocks.place(TRIPWIRE_HOOK, world(57, -59, 40))+    blocks.place(TRIPWIRE_HOOK, world(69, -53, 40))
  
-    #toilet +    #WC 
-    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 4), world(51, -60, 46)) +    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 4), world(63, -54, 46)) 
-    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 5), world(52, -60, 46)) +    blocks.place(blocks.block_with_data(QUARTZ_STAIRS, 5), world(64, -54, 46)) 
-    blocks.place(BLOCK_OF_QUARTZ, world(51, -59, 46)) +    blocks.place(BLOCK_OF_QUARTZ, world(63, -53, 46)) 
-    blocks.place(DARK_OAK_TRAPDOOR, world(52, -59, 46))+    blocks.place(DARK_OAK_TRAPDOOR, world(64, -53, 46))
  
-    #plants +    #Pflanzen 
-    blocks.fill(blocks.block_with_data(DARK_OAK_WOOD_STAIRS, 4), world(59, -59, 44), world(59, -59, 45), FillOperation.REPLACE) +    blocks.fill(blocks.block_with_data(DARK_OAK_WOOD_STAIRS, 4), world(71, -53, 44), world(71, -53, 45), FillOperation.REPLACE) 
-    blocks.place(FLOWER_POT, world(59, -58, 45)) +    blocks.place(FLOWER_POT, world(71, -52, 45)) 
-    blocks.place(FLOWERING_AZALEA, world(59, -58, 44))+    blocks.place(FLOWERING_AZALEA, world(71, -52, 44))
  
 def bathroom(): def bathroom():
Zeile 109: Zeile 220:
     bathroomlights()     bathroomlights()
     bathfurniture()     bathfurniture()
-</code> +     
- + </code>
-Swimmingpool:+
  
 +Code fürs Schwimmbad:
 <code> <code>
 def pool(): def pool():
-    blocks.fill(BLUE_CONCRETE, world(62, -61, 40), world(72, -56, 60), FillOperation.REPLACE)+    blocks.fill(BLUE_CONCRETE, world(62, -61, 39), world(72, -56, 60), FillOperation.REPLACE)
     blocks.fill(BLOCK_OF_QUARTZ, world(62, -61, 40), world(72, -64, 60), FillOperation.REPLACE)     blocks.fill(BLOCK_OF_QUARTZ, world(62, -61, 40), world(72, -64, 60), FillOperation.REPLACE)
     blocks.fill(AIR, world(63, -60, 41), world(71, -57, 59), FillOperation.REPLACE)     blocks.fill(AIR, world(63, -60, 41), world(71, -57, 59), FillOperation.REPLACE)
Zeile 124: Zeile 235:
     blocks.fill(SEA_LANTERN, world(63, -56, 54), world(71, -56, 56), FillOperation.REPLACE)     blocks.fill(SEA_LANTERN, world(63, -56, 54), world(71, -56, 56), FillOperation.REPLACE)
     blocks.fill(SEA_LANTERN, world(63, -56, 44), world(71, -56, 46), FillOperation.REPLACE)     blocks.fill(SEA_LANTERN, world(63, -56, 44), world(71, -56, 46), FillOperation.REPLACE)
 +    blocks.fill(AIR, world(73, -57, 41), world(73, -59, 59), FillOperation.REPLACE)
     blocks.fill(GLASS_PANE, world(72, -57, 41), world(72, -59, 59), FillOperation.REPLACE)     blocks.fill(GLASS_PANE, world(72, -57, 41), world(72, -59, 59), FillOperation.REPLACE)
-    blocks.fill(AIR, world(62, -60, 57), world(62, -58, 57), FillOperation.REPLACE) 
  
-    #Pool furniture+    #Tür 
 +    blocks.fill(AIR, world(62, -60, 57), world(61, -59, 57), FillOperation.REPLACE) 
 +    blocks.fill(IRON_DOOR_ITEM, world(62, -60, 57), world(62, -60, 57), FillOperation.REPLACE) 
 +    blocks.place(SPRUCE_PRESSURE_PLATE, world(61, -60, 57)) 
 +    blocks.place(STONE_PRESSURE_PLATE, world(63, -60, 57)) 
 + 
 +    #Pool Möbel
     blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 5), world(64, -60, 47))     blocks.place(blocks.block_with_data(BIRCH_WOOD_STAIRS, 5), world(64, -60, 47))
     blocks.place(blocks.block_with_data(BIRCH_WOOD_SLAB, 8), world(65, -60, 47))     blocks.place(blocks.block_with_data(BIRCH_WOOD_SLAB, 8), world(65, -60, 47))
Zeile 138: Zeile 255:
 </code> </code>
  
-Code für Villa  +Code für Villa (2): 
 +<code>
 player.teleport(world(-2, -60, 20)) player.teleport(world(-2, -60, 20))
 agent.teleport_to_player() agent.teleport_to_player()
Zeile 521: Zeile 638:
  
 blocks.fill(WATER, world(-17, -62, 11), world(-2, -63, 1)) blocks.fill(WATER, world(-17, -62, 11), world(-2, -63, 1))
 +</code>
  
  • gf2/projekte/minecraft/2d2gruppe5.1675447064.txt.gz
  • Zuletzt geändert: 2023/02/03 18:57
  • von huerlimannd