gf2:projekte:2024:minecraft:2d1gruppe3

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:2024:minecraft:2d1gruppe3 [2025/03/31 14:04] raemysigf2:projekte:2024:minecraft:2d1gruppe3 [2025/04/07 13:32] (aktuell) raemysi
Zeile 9: Zeile 9:
 1. Runningtrack 1. Runningtrack
 2. Boot auf Eis 2. Boot auf Eis
-3. Schwimmen 
 4. Elytra 4. Elytra
  
Zeile 19: Zeile 18:
 24.03.: 4 Abschnitte im Runningtrack: Wüste, Honig, Schnee, Nether, 200m lang. 24.03.: 4 Abschnitte im Runningtrack: Wüste, Honig, Schnee, Nether, 200m lang.
 Wüste: Kakteen (outside), Pyramide (inside) Wüste: Kakteen (outside), Pyramide (inside)
-Honig: Bienen 
 Schnee: Pouder-Snow, Iglu Schnee: Pouder-Snow, Iglu
 Nether: Portal (in/out), Lava Magma Nether: Portal (in/out), Lava Magma
Zeile 27: Zeile 25:
   * Boot auf Eis    * Boot auf Eis 
   * Boot bekommt man aus einer Chest    * Boot bekommt man aus einer Chest 
-  * sehr viele Kurven wo man fast runterfliegen kann  +  * sehr viele Kurven die extrem nerven können  
-  * wenn man runterfliegt dann stirbt man. +  * Man kann nicht sterben, nur gehindert werden 
-24.03.: 200m lang+
  
 Schwimmen: Schwimmen:
Zeile 38: Zeile 36:
 Elytra: Elytra:
  
-  * Ringe Parkour, man muss durch die Ringe fliegen, bekommt immer neue Raketen beim durchfliegen eines Ringes+  * Man muss durch zwei Löcher in zwei Wänden fliegen mit nur einer Rakete um ins Ziel zu gelangen.
  
-Offene Ideen: Mehrere Runden, Checkpoints+Offene Ideen: Mehrere Runden, Checkpoints - wurde weggestrichen
  
  
Zeile 139: Zeile 137:
      
   <code python>   <code python>
- #Simon+ #Hier ist der richtige Code
    
 def on_forever(): def on_forever():
Zeile 603: Zeile 601:
 player.on_chat("start", on_on_chat) player.on_chat("start", on_on_chat)
  
 +def on_travelled_swim_lava():
 +    mobs.apply_effect(FIRE_RESISTANCE, mobs.target(NEAREST_PLAYER), 2, 255)
 +    mobs.apply_effect(REGENERATION, mobs.target(NEAREST_PLAYER), 2, 255)
 +    player.teleport(world(100, -59, 0))
 +    player.tell(mobs.target(NEAREST_PLAYER), "Pass auf wo du hinfällst!")
 +player.on_travelled(SWIM_LAVA, on_travelled_swim_lava)
 +
 +#Lavapart
 def on_travelled_swim_lava(): def on_travelled_swim_lava():
     mobs.apply_effect(FIRE_RESISTANCE, mobs.target(NEAREST_PLAYER), 2, 255)     mobs.apply_effect(FIRE_RESISTANCE, mobs.target(NEAREST_PLAYER), 2, 255)
Zeile 613: Zeile 619:
 def on_on_chat(): def on_on_chat():
     # boden     # boden
 +      blocks.fill(GLASS, world(150, -60, -7), world(91, -55, -7), FillOperation.HOLLOW) 
 +      blocks.fill(GLASS, world(150, -60, 7), world(91, -55, 7), FillOperation.HOLLOW)
       blocks.fill(NETHERRACK,       blocks.fill(NETHERRACK,
           world(101, -61, -6),           world(101, -61, -6),
Zeile 702: Zeile 709:
                      
 player.on_chat("start", on_on_chat) player.on_chat("start", on_on_chat)
 +
 +#Icestrecke
 +def Ice():
 +        x = player.position().get_value(Axis.X)
 +        y = player.position().get_value(Axis.Y)
 +        z = player.position().get_value(Axis.Z)
 +        if (139<x<150) and (-66<y<2) and (-7<z<7):
 +          mobs.give(mobs.target(NEAREST_PLAYER), BOAT, 1)                  
 +loops.forever(Ice)
 +
 +def on_on_chat():
 +    blocks.fill(ICE, world(151, -61, -6), world(250, -61, 6), FillOperation.HOLLOW)
 +    blocks.fill(GLASS_PANE, world(151, -60, -7), world(251, -55, -7), FillOperation.HOLLOW)
 +    blocks.fill(GLASS_PANE, world(151, -60, 7), world(251, -55, 7), FillOperation.HOLLOW)
 +    blocks.fill(SNOW, world(161, -60, -6), world(161, -59, 0), FillOperation.REPLACE)
 +    blocks.fill(SNOW, world(165, -60, 6), world(165, -59, 0), FillOperation.REPLACE)
 +    blocks.fill(SNOW, world(157, -60, 6), world(157, -59, 0), FillOperation.REPLACE)
 +    for i in range(10):
 +            a=randint(180, 200)
 +            b=-60
 +            c=randint(-6, 6)
 +            blocks.fill(ICE, world(a, b, c), world(a, b, c), FillOperation.HOLLOW)
 +
 +    for i in range(20):
 +            a=randint(200, 240)
 +            b=-60
 +            c=randint(-6, 6)
 +            blocks.fill(SNOW, world(a, b, c), world(a, b, c), FillOperation.HOLLOW)
 +player.on_chat("Start", on_on_chat)
 +
 +#Elytrapart
 +def Elytra():
 +    x = player.position().get_value(Axis.X)
 +    y = player.position().get_value(Axis.Y)
 +    z = player.position().get_value(Axis.Z)
 +    if ((244<x<254) and (-62<y<-55) and (-7<z<7)):
 +        player.execute("/give @s ELYTRA 1"
 +        player.execute("/give @s FIREWORK_ROCKET 1"       
 +loops.forever(Elytra)
 +
 +def Rampe():
 +    blocks.fill(LIGHT_BLUE_WOOL, world(255, -60, -6), world(257, -58, 6), FillOperation.REPLACE)
 +    blocks.fill(AIR, world(255, -59, -6), world(155, -50, 6), FillOperation.REPLACE)
 +    blocks.fill(AIR, world(256, -58, -6), world(156, -58, 6), FillOperation.REPLACE)
 +
 +Rampe()
 +
 +def wände():
 +    blocks.fill(LIGHT_BLUE_WOOL, world(326, -60, -7), world(326, -20, 7), FillOperation.REPLACE)
 +    blocks.fill(AIR, world(326, -39, -5), world(326, -37, -6), FillOperation.REPLACE)
 +    blocks.fill(AIR, world(326, -60, 0), world(326, -59, 0), FillOperation.REPLACE)
 +    blocks.fill(LIGHT_BLUE_WOOL, world(390, -60, -7), world(390, -20, 7), FillOperation.REPLACE)
 +    blocks.fill(AIR, world(390, -51, 3), world(390, -49, 4), FillOperation.REPLACE)
 +    blocks.fill(AIR, world(390, -60, 0), world(390, -59, 0), FillOperation.REPLACE)
 +wände()
 +
 +def sicherung():
 +    blocks.fill(GLASS, world(251, -60, 7), world(351, -20, 7), FillOperation.HOLLOW)
 +    blocks.fill(GLASS, world(251, -60, -7), world(351, -20, -7), FillOperation.HOLLOW)
 +    blocks.fill(GLASS, world(352, -60, 7), world(425, -20, 7), FillOperation.HOLLOW)
 +    blocks.fill(GLASS, world(352, -60, -7), world(425, -20, -7), FillOperation.HOLLOW)
 +    blocks.fill(GLASS, world(425, -60, 7), world(425, -20, -7), FillOperation.HOLLOW)
 +    blocks.fill(GLASS, world(251, -20, -7), world(351, -20, 7), FillOperation.HOLLOW)
 +    blocks.fill(GLASS, world(352, -20, 7), world(425, -20, -7), FillOperation.HOLLOW)
 +sicherung() 
 +
 +#Ziel
 +def Ziel():
 +        x = player.position().get_value(Axis.X)
 +        y = player.position().get_value(Axis.Y)
 +        z = player.position().get_value(Axis.Z)
 +        if (419<x<426) and (-66<y<-20) and (-7<z<7):
 +          player.teleport(world(0, 0, 0))
 +loops.forever(Ziel)
 +
 +
 +blocks.fill(GLASS, world(5, 0, -5), world(-5, 0, 5), FillOperation.REPLACE)
 +
 +def WOW():
 +        x = player.position().get_value(Axis.X)
 +        y = player.position().get_value(Axis.Y)
 +        z = player.position().get_value(Axis.Z)
 +        if (x==0) and (-3<y<10) and (-1<z<1):
 +            gameplay.title(mobs.target(NEAREST_PLAYER), "You did it!", ""   
 +loops.forever(WOW)
 +(/ code)
 +
 +Anleitung:
 +Alle Infinite Loops müssen die Spieler auf ihrem Laptop einfügen. Der rest wird von einem Gamemaster bei seinem Laptop eingefügt. Man muss jedoch die verschiedenen Abteile einzelt Laden (Sand+Iglu, Lava, Eisstrecke, Elytra) damit es funktioniert, da die strecke zu gross ist um sie mit einem Code aufzubauen. Sobald man dann Start in den Chat schreibt und das Sand+Iglu Programm offen hat, wird nach einiger zeit die Glaskugel gelöscht und die spieler können spass haben. Das ganze muss auf einer flat-world erstellt werden. Wer als als erstes im Ziel ist hat gewonnen, doch in unseren Augen ist jeder ein Sieger und somit gewinnen alle ;)
 +
 +Für die Spieler:
 +</code> 
 +<code python>
 +
 +
 +        
 +loops.forever(on_forever)
 +
 +def WOW():
 +        x = player.position().get_value(Axis.X)
 +        y = player.position().get_value(Axis.Y)
 +        z = player.position().get_value(Axis.Z)
 +        if (x==0) and (-3<y<10) and (-1<z<1):
 +            gameplay.title(mobs.target(NEAREST_PLAYER), "You did it!", ""   
 +loops.forever(WOW)
 +
 +def Ziel():
 +        x = player.position().get_value(Axis.X)
 +        y = player.position().get_value(Axis.Y)
 +        z = player.position().get_value(Axis.Z)
 +        if (419<x<426) and (-66<y<-20) and (-7<z<7):
 +          player.teleport(world(0, 0, 0))
 +loops.forever(Ziel)
 +
 +def Elytra():
 +    x = player.position().get_value(Axis.X)
 +    y = player.position().get_value(Axis.Y)
 +    z = player.position().get_value(Axis.Z)
 +    if ((244<x<254) and (-62<y<-55) and (-7<z<7)):
 +        player.execute("/give @s ELYTRA 1"
 +        player.execute("/give @s FIREWORK_ROCKET 1"       
 +loops.forever(Elytra)
 +
 +def Ice():
 +        x = player.position().get_value(Axis.X)
 +        y = player.position().get_value(Axis.Y)
 +        z = player.position().get_value(Axis.Z)
 +        if (139<x<150) and (-66<y<2) and (-7<z<7):
 +          mobs.give(mobs.target(NEAREST_PLAYER), BOAT, 1)                  
 +loops.forever(Ice)
 +
 +def on_travelled_swim_lava():
 +    mobs.apply_effect(FIRE_RESISTANCE, mobs.target(NEAREST_PLAYER), 2, 255)
 +    mobs.apply_effect(REGENERATION, mobs.target(NEAREST_PLAYER), 2, 255)
 +    player.teleport(world(100, -59, 0))
 +    player.tell(mobs.target(NEAREST_PLAYER), "Pass auf wo du hinfällst!")
 +player.on_travelled(SWIM_LAVA, on_travelled_swim_lava)
 +
 +def slow():
 +        x = player.position().get_value(Axis.X)
 +        y = player.position().get_value(Axis.Y)
 +        z = player.position().get_value(Axis.Z)
 +        if (32<x<62) and (-66<y<2) and (-7<z<7):
 +           player.execute("/effect @s slowness 20 3"
 +loops.forever(slow)
 +
 +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 (-1<x<10) and (-66<y<2) and (-7<z<7):
 +                blocks.fill(COBWEB,
 +                world(4, -60, -6,),
 +                world(5, -59, 6),
 +                FillOperation.HOLLOW)
 +
 +                blocks.fill(COBWEB,
 +                world(24, -60, -6,),
 +                world(25, -59, 6),
 +                FillOperation.HOLLOW)
 +loops.forever(on_forever)
 + 
 +</code>
  • gf2/projekte/2024/minecraft/2d1gruppe3.1743422681.txt.gz
  • Zuletzt geändert: 2025/03/31 14:04
  • von raemysi