Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # After starting the program get the player's coordinates which will be used in the entire project
- # We will only update the Z coordinate of the player to be able to correctly add stages
- position=player.position()
- x=position.get_value(Axis.X)
- y=position.get_value(Axis.Y)
- z=position.get_value(Axis.Z)
- #function creating the first fragment of the course
- def course():
- #create the shape of the course from bedrock
- blocks.fill(BEDROCK, world(x-10,y-1,z-2),world(x+10,y+10,z+35),FillOperation.HOLLOW)
- #the line lauching stage 1
- blocks.fill(SEA_LANTERN, world(x-9,y-1,z+3),world(x+9,y-1,z+5))
- #gameplay.set_game_mode(SURVIVAL, mobs.target(NEAREST_PLAYER))
- player.on_chat("start", course)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement