Advertisement
adaxx11

Untitled

May 8th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. def etap4():
  2. #projektujemy skok wiary
  3. builder.move(DOWN, 30)
  4. builder.face(SOUTH)
  5. builder.move(FORWARD, 6)
  6. #budujemy studnię z wodą
  7. builder.mark()
  8. builder.shift(2, 2, 2)
  9. builder.fill(BRICKS)
  10. builder.shift(-1, 0, -1)
  11. builder.place(WATER)
  12. builder.move(FORWARD, 4)
  13. builder.set_origin()
  14. #pętla tworząca schody spieralne kończy swoje dziłanie kiedy gracz stanie na ostatniej platformie
  15. while not (blocks.test_for_block(SEA_LANTERN, pos(0, -1, 0))):
  16. builder.teleport_to_origin()
  17. builder.face(SOUTH)
  18. #budowanie schodów w każdej chwili może być przerwane kiedy gracz stanie na ostatniej platformie
  19. for i in range(30):
  20. if not blocks.test_for_block(SEA_LANTERN, pos(0, -1, 0)):
  21. builder.place(POLISHED_GRANITE)
  22. builder.move(FORWARD, 1)
  23. builder.move(UP, 1)
  24. builder.turn(RIGHT_TURN)
  25. else:
  26. break
  27. builder.mark()
  28. builder.shift(-2, 0, 2)
  29. builder.fill(SEA_LANTERN)
  30. builder.teleport_to_origin()
  31. builder.face(SOUTH)
  32. #podmieniamy schody na blok magmy
  33. for i in range(30):
  34. if not blocks.test_for_block(SEA_LANTERN, pos(0, -1, 0)):
  35. builder.place(MAGMA_BLOCK)
  36. builder.move(FORWARD, 1)
  37. builder.move(UP, 1)
  38. builder.turn(RIGHT_TURN)
  39. loops.pause(1000)
  40. else:
  41. break
  42. #gracz otrzymuje perłe kresu, która posłuży do teleportacji
  43. mobs.give(mobs.target(NEAREST_PLAYER), ENDER_PEARL, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement