Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
838 B
9
Indexable
Never
def etap3(z):
    player.say("ETAP 3")
    #dodajemy jednolity segment  
    blocks.fill(BEDROCK, world(x-10,y-1,z-2),world(x+10,y+10,z+30),FillOperation.HOLLOW)
 
    #czyścimy poziome linie  
    blocks.fill(BEDROCK, world(x-10,y-1,z-5),world(x+10,y-1,z+5))
    #dodajemy przegrodę za graczem  
    blocks.fill(BEDROCK, world(x-10,y,z-3),world(x+10,y+10,z-1))
    #dodajemy pod koniec linię, która uruchomi kolejny etap
    blocks.fill(COBBLESTONE, world(x-9,y-1,z+25),world(x+9,y-1,z+27))
    #przeszkody etapu 3  
    blocks.fill(DIAMOND_BLOCK, world(x-9,y-1,z+3),world(x+9,y-1,z+20))
    while True:
        if blocks.test_for_block(DIAMOND_BLOCK, pos(0, -1, 0)):
            for i in range(11):
        
                mobs.spawn(PRIMED_TNT, randpos(world(x-8,y+3,z+3), world(x+8,y+3,z+20)))
            break