1
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from mcpi.minecraft import Minecraft as minecraft
|
||||
from mcpi.vec3 import Vec3
|
||||
mc = minecraft.create()
|
||||
import mcpi.block as block
|
||||
import minecraftstuff
|
||||
@@ -27,7 +28,7 @@ def delArena1(pos):
|
||||
mc.setBlocks(pos.x, pos.y + 1, pos.z,pos.x + ARENAX, pos.y + ARENAY, pos.z + ARENAZ, block.AIR.id)
|
||||
|
||||
def theWall(arenaPos, wallZPos):
|
||||
wallPos = mc.Vec3(arenaPos.x, arenaPos.y + 1, arenaPos.z + wallZPos)
|
||||
wallPos = Vec3(arenaPos.x, arenaPos.y + 1, arenaPos.z + wallZPos)
|
||||
wallBlocks = []
|
||||
for x in range(0, ARENAX + 1):
|
||||
for y in range(1, ARENAY):
|
||||
@@ -43,7 +44,7 @@ def theRiver(arenaPos, riverZPos):
|
||||
BRIDGEWIDTH = 2
|
||||
mc.setBlocks(arenaPos.x, arenaPos.y - 2, arenaPos.z + riverZPos,arenaPos.x + ARENAX, arenaPos.y,arenaPos.z + riverZPos + RIVERWIDTH - 1, block.AIR.id)
|
||||
mc.setBlocks(arenaPos.x, arenaPos.y - 2, arenaPos.z + riverZPos,arenaPos.x + ARENAX, arenaPos.y - 2,arenaPos.z + riverZPos + RIVERWIDTH - 1, block.WATER.id)
|
||||
bridgePos = mc.Vec3(arenaPos.x, arenaPos.y, arenaPos.z + riverZPos + 1)
|
||||
bridgePos = Vec3(arenaPos.x, arenaPos.y, arenaPos.z + riverZPos + 1)
|
||||
bridgeBlocks = []
|
||||
for x in range(0, BRIDGEWIDTH):
|
||||
for z in range(0, RIVERWIDTH - 2):
|
||||
@@ -67,7 +68,7 @@ def theHoles(arenaPos, holesZPos):
|
||||
for count in range(0,HOLES):
|
||||
x = random.randint(arenaPos.x, arenaPos.x + ARENAX)
|
||||
z = random.randint(arenaPos.z + holesZPos,arenaPos.z + holesZPos + HOLESWIDTH)
|
||||
holes.append(mc.Vec3(x, arenaPos.y, z))
|
||||
holes.append(Vec3(x, arenaPos.y, z))
|
||||
for hole in holes:
|
||||
mc.setBlock(hole.x, hole.y, hole.z, block.WOOL.id, 15)
|
||||
time.sleep(0.25)
|
||||
|
||||
Reference in New Issue
Block a user