Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| gf2:projekte:2024:minecraft:2d1gruppe3 [2025/04/06 20:38] – raemysi | gf2:projekte:2024:minecraft:2d1gruppe3 [2025/04/07 13:32] (aktuell) – raemysi | ||
|---|---|---|---|
| Zeile 710: | Zeile 710: | ||
| player.on_chat(" | player.on_chat(" | ||
| - | 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 (139< | ||
| - | mobs.give(mobs.target(NEAREST_PLAYER), | ||
| - | loops.forever(on_forever) | ||
| #Icestrecke | #Icestrecke | ||
| - | def on_forever(): | + | def Ice(): |
| x = player.position().get_value(Axis.X) | x = player.position().get_value(Axis.X) | ||
| y = player.position().get_value(Axis.Y) | y = player.position().get_value(Axis.Y) | ||
| Zeile 724: | Zeile 717: | ||
| if (139< | if (139< | ||
| mobs.give(mobs.target(NEAREST_PLAYER), | mobs.give(mobs.target(NEAREST_PLAYER), | ||
| - | loops.forever(on_forever) | + | loops.forever(Ice) |
| def on_on_chat(): | def on_on_chat(): | ||
| Zeile 747: | Zeile 740: | ||
| #Elytrapart | #Elytrapart | ||
| - | def on_forever(): | + | def Elytra(): |
| x = player.position().get_value(Axis.X) | x = player.position().get_value(Axis.X) | ||
| y = player.position().get_value(Axis.Y) | y = player.position().get_value(Axis.Y) | ||
| Zeile 754: | Zeile 747: | ||
| player.execute("/ | player.execute("/ | ||
| player.execute("/ | player.execute("/ | ||
| - | loops.forever(on_forever) | + | loops.forever(Elytra) |
| def Rampe(): | def Rampe(): | ||
| Zeile 783: | Zeile 776: | ||
| #Ziel | #Ziel | ||
| - | def on_forever(): | + | def Ziel(): |
| x = player.position().get_value(Axis.X) | x = player.position().get_value(Axis.X) | ||
| y = player.position().get_value(Axis.Y) | y = player.position().get_value(Axis.Y) | ||
| Zeile 789: | Zeile 782: | ||
| if (419< | if (419< | ||
| player.teleport(world(0, | player.teleport(world(0, | ||
| - | loops.forever(on_forever) | + | loops.forever(Ziel) |
| Zeile 801: | Zeile 794: | ||
| gameplay.title(mobs.target(NEAREST_PLAYER), | gameplay.title(mobs.target(NEAREST_PLAYER), | ||
| loops.forever(WOW) | 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, | ||
| + | |||
| + | Für die Spieler: | ||
| + | </ | ||
| + | <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< | ||
| + | gameplay.title(mobs.target(NEAREST_PLAYER), | ||
| + | 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< | ||
| + | player.teleport(world(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< | ||
| + | player.execute("/ | ||
| + | player.execute("/ | ||
| + | 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< | ||
| + | mobs.give(mobs.target(NEAREST_PLAYER), | ||
| + | loops.forever(Ice) | ||
| + | |||
| + | def on_travelled_swim_lava(): | ||
| + | mobs.apply_effect(FIRE_RESISTANCE, | ||
| + | mobs.apply_effect(REGENERATION, | ||
| + | player.teleport(world(100, | ||
| + | player.tell(mobs.target(NEAREST_PLAYER), | ||
| + | player.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< | ||
| + | | ||
| + | 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< | ||
| + | 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) | ||
| + | |||
| + | </ | ||