Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def inventory():
- player.execute("/clear")
- mobs.give(mobs.target(NEAREST_PLAYER), DIAMOND_PICKAXE, 1)
- mobs.give(mobs.target(NEAREST_PLAYER), DIAMOND_SWORD, 1)
- mobs.give(mobs.target(NEAREST_PLAYER), DIAMOND_CHESTPLATE, 1)
- mobs.give(mobs.target(NEAREST_PLAYER), DIAMOND_HELMET, 1)
- mobs.give(mobs.target(NEAREST_PLAYER), DIAMOND_LEGGINGS, 1)
- mobs.give(mobs.target(NEAREST_PLAYER), DIAMOND_BOOTS, 1)
- mobs.give(mobs.target(NEAREST_PLAYER), BOW, 1)
- mobs.give(mobs.target(NEAREST_PLAYER), ARROW, 64)
- mobs.give(mobs.target(NEAREST_PLAYER), TRIDENT, 1)
- def runda(x,y,z,runda):
- mobs.apply_effect(SPEED, mobs.target(NEAREST_PLAYER),20)
- mobs.apply_effect(REGENERATION, mobs.target(NEAREST_PLAYER),20)
- mobs.apply_effect(STRENGTH, mobs.target(NEAREST_PLAYER),20)
- blocks.print(str(runda), SEA_LANTERN, world(x+5,y+10,z+45), WEST)
- for i in range(runda):
- mobs.spawn(ZOMBIE, randpos(world(x+5,y+5,z+5), world(x+35,y+5,z+35)))
- loops.pause(1000)
- for i in range(runda):
- mobs.spawn(SKELETON, randpos(world(x+5,y+5,z+5), world(x+35,y+5,z+35)))
- loops.pause(1000)
- for i in range(runda):
- mobs.spawn(BLAZE, randpos(world(x+5,y+5,z+5), world(x+35,y+5,z+35)))
- loops.pause(1000)
- for i in range(runda):
- mobs.spawn(CREEPER, randpos(world(x+5,y+5,z+5), world(x+35,y+5,z+35)))
- loops.pause(1000)
- for i in range(runda):
- mobs.spawn(GHAST, randpos(world(x+5,y+5,z+5), world(x+35,y+5,z+35)))
- loops.pause(30000)
- #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))
- inventory()
- blocks.print("ROUND", SEA_LANTERN, world(x+35,y+10,z+45), WEST)
- gameplay.set_game_mode(SURVIVAL, mobs.target(NEAREST_PLAYER))
- runda(x,y,z,1)
- runda(x,y,z,2)
- runda(x,y,z,3)
- player.on_chat("arena", arenaBuilder)
- def after_death():
- gameplay.set_game_mode(CREATIVE, mobs.target(NEAREST_PLAYER))
- player.on_died(after_death)
Add Comment
Please, Sign In to add comment