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