# Untitled

unknown
python
2 years ago
1.3 kB
1
Indexable
Never
```# Tworzenie bloków i brył w MINECRAFT
# POZYCJE
# - względne(gracza) -> pos(0,0,0)
# - bezwzględne(na świecie) -> world(x,y,z)

# stworz wieże (na 3 bloczki wysoka) z bloczkow glowstone (89)
# wieza glowstone 3 na prawo 3 wysoka
blocks.place(89, pos(3, 0, 0))
blocks.place(89, pos(3, 1, 0))
blocks.place(89, pos(3, 2, 0))
blocks.place(89, pos(3, 3, 0))

# wieza glowstone(89) 3 na lewo 3 wysoka
blocks.place(89, pos(-3, 0, 0))
blocks.place(89, pos(-3, 1, 0))
blocks.place(89, pos(-3, 2, 0))
blocks.place(89, pos(-3, 3, 0))

# wieza glowstone(89) 3 z przodu i 3 wysoka
blocks.place(89, pos(0, 0, 3))
blocks.place(89, pos(0, 1, 3))
blocks.place(89, pos(0, 2, 3))
blocks.place(89, pos(0, 3, 3))

# wypelnianie przestrzeni bloczkami
blocks.fill(89, pos(0, 0, 5), pos(0, 25, 5))

# schody na 10 długie(lewo/prawo //do przodu/ do tylu) i 10 do gory
# 2 opcje, blocks.place/blocks.fill
# PLACE
blocks.place(89, pos(0,0,1))
blocks.place(89, pos(0,1,2))
blocks.place(89, pos(0,2,3))
blocks.place(89, pos(0,3,4))
blocks.place(89, pos(0,4,5))
blocks.place(89, pos(0,5,6))
blocks.place(89, pos(0,6,7))
blocks.place(89, pos(0,7,8))
blocks.place(89, pos(0,8,9))
blocks.place(89, pos(0,9,10))
blocks.place(89, pos(0,10,11))

#BLOCKS FILL
blocks.fill(89, pos(0,0,-1),pos(0,10,10))

```