Minescript

Minescript

391 Downloads

minescript.py - player_position method

Squizzy opened this issue ยท 0 comments

commented

def player_position seems incomplete. CallAsyncScriptFunc is called with incorrect arguments.

Is it originally intended as something of the form:

def player_position(done_callback=None) -> List[float]:

  if not done_callback:
    return CallScriptFunction("player_position")
  else:
    # CallAsyncScriptFunction("player_position", done_callback)
    async def callsf():
      return await CallScriptFunction("player_position")
    
    return done_callback(callsf())