Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #function responsible for creating the arena
- def arenaBuilder():
- #setting the time to night
- gameplay.time_set(DayTime.NIGHT)
- #getting the current coordinates of the player with a slight offset so the arena isn't built on the player
- position=positions.add(player.position(), pos(10, 0, 0))
- x=position.get_value(Axis.X)
- y=position.get_value(Axis.Y)
- z=position.get_value(Axis.Z)
- #creating the arena
- blocks.fill(STONE_BRICKS, world(x,y,z),world(x+40,y+4,z+40))
- #putting diamond blocks in the corners which are beacon blocks need so it lets out a beam of light
- blocks.fill(DIAMOND_BLOCK, world(x,y+4,z),world(x+2,y+4,z+2))
- blocks.fill(DIAMOND_BLOCK, world(x+38,y+4,z),world(x+40,y+4,z+2))
- blocks.fill(DIAMOND_BLOCK, world(x,y+4,z+38),world(x+2,y+4,z+40))
- blocks.fill(DIAMOND_BLOCK, world(x+38,y+4,z+38),world(x+40,y+4,z+40))
- #adding beacon blocks
- blocks.place(BEACON, world(x+1,y+5,z+1))
- blocks.place(BEACON, world(x+39,y+5,z+1))
- blocks.place(BEACON, world(x+1,y+5,z+39))
- blocks.place(BEACON, world(x+39,y+5,z+39))
- #creating stairs
- for i in range(15,21):
- shapes.line(STONE_BRICK_STAIRS, world(x-4,y,z+i), world(x,y+4,z+i))
- player.on_chat("arena", arenaBuilder)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement