Untitled

 avatar
unknown
python
2 years ago
491 B
2
Indexable
def piramida():
    blocks.fill(TNT, pos(-5, 2, -5), pos(5, 2, 5)) # 1. poziom
    blocks.fill(TNT, pos(-4, 3, -4), pos(4, 3, 4)) # 2. poziom
    blocks.fill(TNT, pos(-3, 4, -3), pos(3, 2, 3)) # 3. poziom
    blocks.fill(TNT, pos(-2, 5, -2), pos(2, 5, 2)) # 4. poziom
    blocks.fill(TNT, pos(-1, 6, -1), pos(1, 6, 1)) # 5. poziom
    blocks.fill(TNT, pos(0, 7, 0), pos(0, 7, 0)) # 6. poziom
# przypisanie do czatu 
player.on_chat('tnt',piramida) # po wpisaniu w czat 'tnt' wybuduje piramide