====== Noemi ====== **Code für Öffnen der Tür am Ende** found = False def on_item_interacted(): global found player.say("Goldapfel gefunden huhuiii") found = True player.on_item_interacted(GOLDEN_APPLE, on_item_interacted) gefallen = False def on_travelled_walk(): global gefallen x = player.position().get_value(Axis.X) y = player.position().get_value(Axis.Y) z = player.position().get_value(Axis.Z) player.say(str(x)+str(y)+str(z)) player.say(gefallen) if (x == -73) and (y==20) and (z==-22) and found==True: blocks.place(AIR,world(-73,20,-23)) blocks.place(AIR,world(-73,21,-23)) if (-81z>-18) and gefallen: gefallen = False player.execute("spawnpoint @s -74 2 -16") player.say ("Du bist leider gestroben") reparieren2() player.execute("kill @s") if (x==-76 and y==20 and z ==-15): blocks.fill(AIR,pos(-1,-1,-1),pos(1,-1,1)) gefallen = True if (x==-70 and y==20 and z ==2): blocks.fill(AIR,pos(-1,-1,-1),pos(1,-1,1)) gefallen = True if (x==-74 and y==20 and z ==6): blocks.fill(AIR,pos(-1,-1,-1),pos(1,-1,1)) gefallen = True if (x==-70 and y==20 and z ==-7): blocks.fill(AIR,pos(-1,-1,-1),pos(1,-1,1)) gefallen = True if (x==-75 and y==20 and z == 1): blocks.fill(AIR,pos(-1,-1,-1),pos(1,-1,1)) gefallen = True if (x==-73 and y==20 and z ==-2): blocks.fill(AIR,pos(-1,-1,-1),pos(1,-1,1)) gefallen = True if (x==-70 and y==20 and z ==-15): blocks.fill(AIR,pos(-1,-1,-1),pos(1,-1,1)) gefallen = True player.on_travelled(WALK, on_travelled_walk) def reparieren(): blocks.fill(WHITE_STAINED_GLASS,world(-68,19,7),world(-77,19,-18)) def reparieren2(): blocks.fill(WHITE_STAINED_GLASS,world(-68,19,7),world(-77,19,-18)) player.on_chat("rep", reparieren) [[archiv:gf:gf2021_2022:2d1:noemicarina|zurück]]