# Untitled

unknown
python
a year ago
1.6 kB
3
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)) # sciana :(

# podstawowy klocek - baza 10x10x10
blocks.fill(STONE, pos(10, -1, 0), pos(20, 10, 10))
blocks.fill(AIR, pos(11, 0, 1), pos(19, 9, 9))

# 2 wersja
# baza na 20 szeroka, 20 dluga, 10 wysoka
blocks.fill(57, pos(-10,-1, 15), pos(10,10,35), FillOperation.HOLLOW)

```