File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2727logger .setLevel (logging .DEBUG )
2828
2929# Set the following values:
30- USERNAME = ''
30+ USERNAME = 'spockbot '
3131PASSWORD = ''
3232SERVER = 'localhost'
3333
3737 'username' : USERNAME ,
3838 'password' : PASSWORD ,
3939 },
40+ # xxx
41+ 'auth' : {'online_mode' : bool (PASSWORD )},
4042}
4143
4244# Load the plugins.
Original file line number Diff line number Diff line change @@ -100,13 +100,11 @@ def periodic_event_handler(self):
100100
101101 # Place a block in front of the player
102102 self .interact .place_block (self .clientinfo .position
103- + Vector3 (- 1 , - 1 , 0 ))
103+ + Vector3 (- 1 , 0 , - 1 ))
104104
105105 # Read a block under the player
106- block_pos = self .clientinfo .position
107- block_id , meta = self .world .get_block (block_pos .x ,
108- block_pos .y ,
109- block_pos .z )
106+ block_pos = self .clientinfo .position .floor ()
107+ block_id , meta = self .world .get_block (* block_pos )
110108 block_at = blocks .get_block (block_id , meta )
111109 self .chat .chat ('Found block %s at %s' % (block_at .display_name ,
112110 block_pos ))
You can’t perform that action at this time.
0 commit comments