View difference between Paste ID: 7maU7G8V and QtqcgDTQ
SHOW: | | - or go back to the newest paste.
1
# After starting the program get the player's coordinates which will be used in the entire project
2
# We will only update the Z coordinate of the player to be able to correctly add stages
3
position=player.position()
4
x=position.get_value(Axis.X)
5
y=position.get_value(Axis.Y)
6
z=position.get_value(Axis.Z) 
7
8
#function creating the first fragment of the course
9
def course():
10
    
11
    #create the shape of the course from bedrock
12
    blocks.fill(BEDROCK, world(x-10,y-1,z-2),world(x+10,y+10,z+35),FillOperation.HOLLOW)
13
    #the line lauching stage 1
14
    blocks.fill(SEA_LANTERN, world(x-9,y-1,z+3),world(x+9,y-1,z+5))
15
    #gameplay.set_game_mode(SURVIVAL, mobs.target(NEAREST_PLAYER))
16
   
17
player.on_chat("start", course)