gf2:projekte:2023:minecraft:2d2gruppe8

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:2023:minecraft:2d2gruppe8 [2024/01/23 13:14] kollyagf2:projekte:2023:minecraft:2d2gruppe8 [2024/02/02 10:29] (aktuell) lehmannr
Zeile 25: Zeile 25:
  
 Codes die wir brauchen für das Spiel: Codes die wir brauchen für das Spiel:
 +<sxh python>
 anzahlPunkte = 0 anzahlPunkte = 0
 player.teleport(world(-17, 63, -46)) player.teleport(world(-17, 63, -46))
Zeile 73: Zeile 73:
     anzahlPunkte = anzahlPunkte + 3     anzahlPunkte = anzahlPunkte + 3
     player.execute("give @s diamond 3 5")     player.execute("give @s diamond 3 5")
-    player.say("Punkte aktuell: " + ("" + str(anzahl Punkte)))    +    player.say("Punkte aktuell: " + ("" + str(anzahlPunkte)))    
     testPunkteDOS()     testPunkteDOS()
-    mobs.on_mob_killed(CHICKEN, on_mob_killed_chicken)+ 
 +mobs.on_mob_killed(CHICKEN, on_mob_killed_chicken)
  
 def on_mob_killed_sheep(): def on_mob_killed_sheep():
Zeile 82: Zeile 83:
     anzahlPunkte = anzahlPunkte + 5     anzahlPunkte = anzahlPunkte + 5
     player.execute("give @s diamond 5 ")     player.execute("give @s diamond 5 ")
-    player.say("Punkte aktuell: " + ("" + str(anzahl Punkte)))    +    player.say("Punkte aktuell: " + ("" + str(anzahlPunkte)))    
     testPunkteDOS()     testPunkteDOS()
-    mobs.on_mob_killed(SHEEP, on_mob_killed_sheep)+mobs.on_mob_killed(SHEEP, on_mob_killed_sheep)
  
 def on_mob_killed_cow(): def on_mob_killed_cow():
Zeile 91: Zeile 92:
     anzahlPunkte = anzahlPunkte + 8     anzahlPunkte = anzahlPunkte + 8
     player.execute("give @s diamond 8 ")     player.execute("give @s diamond 8 ")
-    player.say("Punkte aktuell: " + ("" + str(anzahl Punkte)))    +    player.say("Punkte aktuell: " + ("" + str(anzahlPunkte)))    
     testPunkteDOS()     testPunkteDOS()
-    mobs.on_mob_killed(COW, on_mob_killed_cow)+ 
 +mobs.on_mob_killed(COW, on_mob_killed_cow)
  
 def on_mob_killed(): def on_mob_killed():
Zeile 100: Zeile 102:
     anzahlPunkte = anzahlPunkte + 7     anzahlPunkte = anzahlPunkte + 7
     player.execute("give @s diamond 7 ")     player.execute("give @s diamond 7 ")
-    player.say("Punkte aktuell: " + ("" + str(anzahl Punkte)))    +    player.say("Punkte aktuell: " + ("" + str(anzahlPunkte)))    
     testPunkteTRES()     testPunkteTRES()
-    mobs.on_mob_killed(mobs.monster(ZOMBIE), on_mob_killed)+  
 +mobs.on_mob_killed(mobs.monster(ZOMBIE), on_mob_killed)
  
 def on_mob_killed_salmon(): def on_mob_killed_salmon():
Zeile 109: Zeile 112:
     anzahlPunkte = anzahlPunkte + 4     anzahlPunkte = anzahlPunkte + 4
     player.execute("give @s diamond 4")     player.execute("give @s diamond 4")
-    player.say("Punkte aktuell: " + ("" + str(anzahl Punkte)))+    player.say("Punkte aktuell: " + ("" + str(anzahlPunkte)))
     testPunkteUNO()     testPunkteUNO()
-    mobs.on_mob_killed(SALMON, on_mob_killed_salmon) 
  
 +mobs.on_mob_killed(SALMON, on_mob_killed_salmon)
  
 +</sxh>
  • gf2/projekte/2023/minecraft/2d2gruppe8.1706012072.txt.gz
  • Zuletzt geändert: 2024/01/23 13:14
  • von kollya