Advertisement
drakon-firestone

Untitled

Oct 25th, 2024
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. def etap1(z):
  2. player.say("ETAP 1")
  3. #tworzymy nowy segment toru
  4. blocks.fill(BEDROCK, world(x-10,y-1,z-2),world(x+10,y+10,z+35), FillOperation.HOLLOW)
  5. blocks.fill(GOLD_BLOCK, world(x-9,y-1,z+25),world(x+9,y-1,z+27))
  6. #przeszkody I etapu
  7. blocks.fill(IRON_BARS, world(x-9,y-1,z+3),world(x+9,y-1,z+20))
  8. blocks.fill(LAVA, world(x-9,y-2,z+3),world(x+9,y-2,z+20))
  9. while True:
  10. if blocks.test_for_block(IRON_BARS, pos(0, -1, 0)):
  11. mobs.give(mobs.target(NEAREST_PLAYER), DIAMOND_AXE, 1)
  12. for i in range(6):
  13. mobs.spawn(CREEPER, randpos(world(x-8,y+1,z+3), world(x+8,y+1,z+20)))
  14.  
  15. #break kończy pętlę, która ją zawiera.
  16. #sterowanie programem przechodzi do instrukcji bezpośrednio po treści pętli.
  17.  
  18. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement