Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def etap4():
- #projektujemy skok wiary
- builder.move(DOWN, 30)
- builder.face(SOUTH)
- builder.move(FORWARD, 6)
- #budujemy studnię z wodą
- builder.mark()
- builder.shift(2, 2, 2)
- builder.fill(BRICKS)
- builder.shift(-1, 0, -1)
- builder.place(WATER)
- builder.move(FORWARD, 4)
- builder.set_origin()
- #pętla tworząca schody spieralne kończy swoje dziłanie kiedy gracz stanie na ostatniej platformie
- while not (blocks.test_for_block(SEA_LANTERN, pos(0, -1, 0))):
- builder.teleport_to_origin()
- builder.face(SOUTH)
- #budowanie schodów w każdej chwili może być przerwane kiedy gracz stanie na ostatniej platformie
- for i in range(30):
- if not blocks.test_for_block(SEA_LANTERN, pos(0, -1, 0)):
- builder.place(POLISHED_GRANITE)
- builder.move(FORWARD, 1)
- builder.move(UP, 1)
- builder.turn(RIGHT_TURN)
- else:
- break
- builder.mark()
- builder.shift(-2, 0, 2)
- builder.fill(SEA_LANTERN)
- builder.teleport_to_origin()
- builder.face(SOUTH)
- #podmieniamy schody na blok magmy
- for i in range(30):
- if not blocks.test_for_block(SEA_LANTERN, pos(0, -1, 0)):
- builder.place(MAGMA_BLOCK)
- builder.move(FORWARD, 1)
- builder.move(UP, 1)
- builder.turn(RIGHT_TURN)
- loops.pause(1000)
- else:
- break
- #gracz otrzymuje perłe kresu, która posłuży do teleportacji
- mobs.give(mobs.target(NEAREST_PLAYER), ENDER_PEARL, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement