Dies ist eine alte Version des Dokuments!
h = 6 gl = 28 gb = 28 gx = -417 gy = 160 gz = 1336 gh = 7
x = 1 y = 1 z = 1 l = 1 b = 1
material = [AIR, WHITE_CONCRETE, LOG_DARK_OAK, NETHER_BRICK_FENCE, DARK_PRISMARINE_STAIRS, DARK_PRISMARINE, DARK_PRISMARINE_SLAB, BARREL, PLANKS_DARK_OAK, STONE_BRICK_STAIRS, GOLD_BLOCK]
# Open cave def caveEnter():
blocks.fill(AIR,world(-274, 88, 1269),world(-274, 93, 1267), FillOperation.REPLACE)
player.on_item_interacted(BONE, caveEnter)
# Open geode def geode():
y = 11
y2 = 16
z = 1356
for index in range(9):
blocks.fill(AIR,
world(-117, y, z),
world(-120, y2, z),
FillOperation.REPLACE)
y = y - 1
y2 = y2 - 1
z = z + 1
player.execute("effect @s night_vision 90 1 true")
player.execute("effect @s water_breathing 90 1 true")
player.on_item_interacted(HEART_OF_THE_SEA, geode)
# activate temple def templeA():
player.execute("effect @s blindness 1 10 true")
player.teleport(world(-403, 97, 1433))
player.execute("playsound mob.enderdragon.growl @s ~ ~ ~ 1")
# stair
stair()
temple()
player.on_item_interacted(ENDER_EYE, templeA)
# stair def stair():
w = 4
xs = -401
zs = 1430
ys = 97
ys2 = 94
for i in range(63):
blocks.fill(blocks.block_with_data ((material[9]), 3), world(xs, ys, zs), world(xs-w, ys, zs))
blocks.fill(STONE_BRICKS, world(xs, ys-1, zs), world(xs-w, ys-3, zs), FillOperation.REPLACE)
zs = zs-1
ys = ys+1
ys2 = ys2+1
# 1st Floor def floor1(l, h, b, x, y, z):
# Wall, Floor blocks.fill(material[1], world(x, y, z), world(x+l, y+h, z+b), FillOperation.HOLLOW) blocks.fill(material[7], world(x, y, z), world(x+l, y, z+b), FillOperation.REPLACE)
# Pillars
# along x axis
for i in range(5):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x, y, z+b), world(x, y+h, z+b), FillOperation.REPLACE)
x = x+7
x = x-7
# along z axis
for i in range(5):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x-l, y, z), world(x-l, y+h, z), FillOperation.REPLACE)
z = z+7
z = z-7
x = gx z = gz
# Window
# along x axis
blocks.fill(material[3], world(x+2, y+2, z), world(x+2, y+3, z), FillOperation.REPLACE)
x = x+2
for i in range(4):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b), FillOperation.REPLACE)
x = x+3
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b), FillOperation.REPLACE)
x = x+4
x = x-2
# along z axis
blocks.fill(material[3], world(x, y+2, z+2), world(x, y+3, z+2), FillOperation.REPLACE)
z = z+2
for i in range(4):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z), FillOperation.REPLACE)
z = z+3
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z), FillOperation.REPLACE)
z = z+4
z = z-2
x = gx
z = gz
# Tür blocks.fill(material[0], world(x+12, y, z+b), world(x+16, y+5, z+b), FillOperation.REPLACE)
# Roof blocks.fill(material[8], world(x-3, y+5, z-3), world(x+l+3, y+5, z+b+3), FillOperation.REPLACE) blocks.fill(material[6], world(x-2, y+6, z-2), world(x+l+2, y+6, z+b+2), FillOperation.REPLACE) blocks.fill(material[5], world(x-1, y+6, z-1), world(x+l+1, y+6, z+b+1), FillOperation.REPLACE) blocks.fill(material[6], world(x, y+7, z), world(x+l, y+7, z+b), FillOperation.REPLACE)
# 2nd Floor def floor2(l, h, b, x, y, z):
# Wall, Floor
blocks.fill(material[1], world(x+1, y, z+1), world(x+l+1, y+h, z+b+1), FillOperation.HOLLOW)
blocks.fill(material[7], world(x+1, y, z+1), world(x+l+1, y, z+b+1), FillOperation.REPLACE)
x = x+1
z = z+1
# Pillar
# along x axis
for i in range(3):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x, y, z+b), world(x, y+h, z+b), FillOperation.REPLACE)
x = x+13
x = x-13
# along z axis
for i in range(3):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x-l, y, z), world(x-l, y+h, z), FillOperation.REPLACE)
z = z+13
z = z-13
x = gx+1
z = gz+1
# Window
# along x axis
blocks.fill(material[3], world(x+2, y+2, z), world(x+2, y+3, z), FillOperation.REPLACE)
x = x+2
for i in range(4):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b), FillOperation.REPLACE)
x = x+3
x = x+1
for i in range(4):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b), FillOperation.REPLACE)
x = x+3
x = x-1
# along z axis
blocks.fill(material[3], world(x, y+2, z+2), world(x, y+3, z+2), FillOperation.REPLACE)
z = z+2
for i in range(4):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z), FillOperation.REPLACE)
z = z+3
z = z+1
for i in range(4):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z), FillOperation.REPLACE)
z = z+3
x = gx
z = gz
# Roof
blocks.fill(material[8], world(x-2, y+5, z-2), world(x+30, y+5, z+30), FillOperation.REPLACE)
blocks.fill(material[6], world(x-1, y+6, z-1), world(x+29, y+6, z+29), FillOperation.REPLACE)
blocks.fill(material[5], world(x, y+6, z), world(x+28, y+6, z+28), FillOperation.REPLACE)
blocks.fill(material[6], world(x+1, y+7, z+1), world(x+27, y+7, z+27), FillOperation.REPLACE)
# 3rd Floor def floor3(l, h, b, x, y, z):
# Wall, Floor
blocks.fill(material[1], world(x+2, y, z+2), world(x+l+2, y+h, z+b+2), FillOperation.HOLLOW)
blocks.fill(material[7], world(x+2, y, z+2), world(x+l+2, y, z+b+2), FillOperation.REPLACE)
x = x+2
z = z+2
# Pillar
# along x axis
for i in range(5):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x, y, z+b), world(x, y+h, z+b), FillOperation.REPLACE)
x = x+6
x = x-6
# along z axis
for i in range(5):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x-l, y, z), world(x-l, y+h, z), FillOperation.REPLACE)
z = z+6
x = gx+4
z = gz+2
# Window
# along x axis
for i in range(4):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b), FillOperation.REPLACE)
x = x+2
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b), FillOperation.REPLACE)
x = x+4
x = x-2
z = z+2
# along z axis
for i in range(4):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z), FillOperation.REPLACE)
z = z+2
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z), FillOperation.REPLACE)
z = z+4
z = z-2
x = x-2
x = gx
z = gz
# Roof
blocks.fill(material[8], world(x-1, y+5, z-1), world(x+29, y+5, z+29), FillOperation.REPLACE)
blocks.fill(material[6], world(x, y+6, z), world(x+28, y+6, z+28), FillOperation.REPLACE)
blocks.fill(material[5], world(x+1, y+6, z+1), world(x+27, y+6, z+27), FillOperation.REPLACE)
blocks.fill(material[6], world(x+2, y+7, z+2), world(x+26, y+7, z+26), FillOperation.REPLACE)
# 4th Floor def floor4(l, h, b, x, y, z):
# Wall, Floor
blocks.fill(material[1], world(x+3, y, z+3), world(x+l+3, y+h, z+b+3), FillOperation.HOLLOW)
blocks.fill(material[7], world(x+3, y, z+3), world(x+l+3, y, z+b+3), FillOperation.REPLACE)
x = x+3
z = z+3
# Pillar
for i in range(3):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x, y, z+b), world(x, y+h, z+b), FillOperation.REPLACE)
x = x+11
x = x-11
z = z+11
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x-l, y, z), world(x-l, y+h, z), FillOperation.REPLACE)
x = gx+5
z = gz+3
# Window
# along x axis
for i in range(2):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z))
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b))
x = x+2
x = x+1
for i in range(2):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z))
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b))
x = x+2
x = x+2
for i in range(2):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z))
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b))
x = x+2
x = x+1
for i in range(2):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z))
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b))
x = x+2
z = z+2
# along z axis
for i in range(2):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z))
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z))
z = z+2
z = z+1
for i in range(2):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z))
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z))
z = z+2
z = z+2
for i in range(2):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z))
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z))
z = z+2
z = z+1
for i in range(2):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z))
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z))
z = z+2
x = gx
z = gz
# Roof
blocks.fill(material[8], world(x-1, y+5, z), world(x+28, y+5, z+28), FillOperation.REPLACE)
blocks.fill(material[6], world(x, y+6, z+1), world(x+27, y+6, z+27), FillOperation.REPLACE)
blocks.fill(material[5], world(x+2, y+6, z+2), world(x+26, y+6, z+26), FillOperation.REPLACE)
blocks.fill(material[6], world(x+3, y+7, z+3), world(x+25, y+7, z+25), FillOperation.REPLACE)
def floor5(l, h, b, x, y, z):
# Wall, Floor
blocks.fill(material[1], world(x+4, y, z+4), world(x+l+4, y+h, z+b+4), FillOperation.HOLLOW)
blocks.fill(material[7], world(x+4, y, z+4), world(x+l+4, y, z+b+4), FillOperation.REPLACE)
x = x+4
z = z+4
# Pillar
# along x axis
for i in range(3):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x, y, z+b), world(x, y+h, z+b), FillOperation.REPLACE)
x = x+10
x = x-10
# along z axis
for i in range(3):
blocks.fill(material[2], world(x, y, z), world(x, y+h, z), FillOperation.REPLACE)
blocks.fill(material[2], world(x-l, y, z), world(x-l, y+h, z), FillOperation.REPLACE)
z = z+10
z = z-10
x = gx+4
z = gz+4
# Window
# along x axis
x = x+2
for i in range(3):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b), FillOperation.REPLACE)
x = x+3
x = x+1
for i in range(3):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x, y+2, z+b), world(x, y+3, z+b), FillOperation.REPLACE)
x = x+3
x = x-1
# along z axis
z = z+2
for i in range(3):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z), FillOperation.REPLACE)
z = z+3
z = z+1
for i in range(3):
blocks.fill(material[3], world(x, y+2, z), world(x, y+3, z), FillOperation.REPLACE)
blocks.fill(material[3], world(x-l, y+2, z), world(x-l, y+3, z), FillOperation.REPLACE)
z = z+3
x = gx
z = gz
# Roof
blocks.fill(material[8], world(x+1, y+5, z+1), world(x+27, y+5, z+27), FillOperation.REPLACE)
blocks.fill(material[6], world(x+2, y+6, z+2), world(x+26, y+6, z+26), FillOperation.REPLACE)
blocks.fill(material[5], world(x+3, y+6, z+3), world(x+25, y+6, z+25), FillOperation.REPLACE)
blocks.fill(material[6], world(x+4, y+7, z+4), world(x+24, y+7, z+24), FillOperation.REPLACE)
# Temple roof def roof(l, h, b, x, y , z):
z = z+7
x = x+5
# white stuff
for i in range(8):
blocks.fill((material[1]), world(x, y+h, z), world(x, y+h, z+b-1),FillOperation.REPLACE)
blocks.fill((material[1]), world(x+l, y+h, z), world(x+l, y+h, z+b-1),FillOperation.REPLACE)
b = b-2
z = z+1
h = h+1
h = 0
b = 16
z = gz+6
# green stuff
for i in range(9):
blocks.fill((material[5]), world(x-1, y+h, z), world(x+l+1, y+h, z),FillOperation.REPLACE)
z = z+b
blocks.fill((material[5]), world(x-1, y+h, z), world(x+l+1, y+h, z),FillOperation.REPLACE)
z = z-b
b = b-2
z = z+1
h = h+1
z = gz+6
h = h-1
b = 16
# pillars & top blocks.fill((material[2]), world(x, y, z+(b/2)), world(x, y+h, z+(b/2)),FillOperation.REPLACE) blocks.fill((material[2]), world(x+l, y, z+(b/2)), world(x+l, y+h, z+(b/2)),FillOperation.REPLACE) blocks.fill((material[8]), world(x-1, y+h, z+(b/2)), world(x+l+1, y+h+1, z+(b/2)),FillOperation.REPLACE) blocks.fill((material[0]), world(x, y+h+1, z+(b/2)), world(x+l, y+h+1, z+(b/2)),FillOperation.REPLACE)
def interior1(l, h, b, x, y, z):
blocks.fill((material[0]), world(x+12, y+1, z), world(x+16, y+7, z-5),FillOperation.REPLACE)
for i in range (7):
blocks.fill(blocks.block_with_data (material[9], 3), world(x+12, y+h, z), world(x+16, y+h, z),FillOperation.REPLACE)
h = h+1
z = z-1
z = z+7
h = h-7
y = y+7
def interior2():
interior1(7, 1, 7, gx, gy, gz+21) interior1(7, 1, 7, gx, gy+gh, gz+21) interior1(7, 1, 7, gx, gy+(gh*2), gz+21) interior1(7, 1, 7, gx, gy+(gh*3), gz+21) interior1(7, 1, 7, gx, gy+(gh*4), gz+21) interior1(7, 1, 7, gx, gy+(gh*5), gz+21) interior1(7, 1, 7, gx, gy+(gh*6), gz+21) interior1(7, 1, 7, gx, gy+(gh*7), gz+21)
def interior3(l, h, b, x, y, z):
blocks.fill((material[10]), world(x+6, y, z+6), world(x+l+6, y+h, z+b+6),FillOperation.REPLACE) blocks.fill((material[0]), world(x+12, y, z+13), world(x+16, y+h, z+19),FillOperation.REPLACE)
def temple():
floor1(gl, 5, gb, gx, gy, gz) floor2(gl-2, 5, gb-2, gx, gy+gh, gz) floor2(gl-2, 5, gb-2, gx, gy+(gh*2), gz) floor2(gl-2, 5, gb-2, gx, gy+(gh*3), gz) floor3(gl-4, 5, gb-4, gx, gy+(gh*4), gz) floor3(gl-4, 5, gb-4, gx, gy+(gh*5), gz) floor4(gl-6, 5, gb-6, gx, gy+(gh*6), gz) floor4(gl-6, 5, gb-6, gx, gy+(gh*7), gz) floor5(gl-8, 5, gb-8, gx, gy+(gh*8), gz) roof(18, 0, 15, gx, gy+(gh*9), gz) interior2() interior3(gl-12, 4, gb-12, gx, gy+(gh*8), gz)