Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with the bot #219

Closed
Sasha20028 opened this issue Jun 4, 2022 · 8 comments
Closed

Help with the bot #219

Sasha20028 opened this issue Jun 4, 2022 · 8 comments

Comments

@Sasha20028
Copy link

Hi! There are a couple of questions:

  1. Is it possible to create a bot that can walk on coordinates?

  2. Can I replace the name of the bot device? Usually writes Windows 10, I want something of my own. I have seen many places that this can be changed.

@extremeheat
Copy link
Member

  1. Yes - but without mineflayer, this will be complex as you need to write your own movement code & logic. Integration in mineflayer #116
  2. In offline mode, yes, you can change username with "username" option. In online mode, the username is always the Xbox gamertag.

@frizib

This comment was marked as off-topic.

@Sasha20028
Copy link
Author

Is there a code example using "mineflayer"?

The essence of the connection is clear, but I don't understand how to make the code without errors:(

@Sasha20028
Copy link
Author

Sasha20028 commented Jun 7, 2022

Changing the "AuthTitle" did not help to remove the Windows 10 label.
image

@LucienHH
Copy link
Contributor

LucienHH commented Jun 7, 2022

You'd need to modify the DeviceOS in the payload found here.

DeviceOS: client.session?.deviceOS || 7,

Possible values:

{
  "0": "Undefined",
  "1": "Android",
  "2": "IOS",
  "3": "OSX",
  "4": "FireOS",
  "5": "GearVR",
  "6": "Hololens",
  "7": "Win10",
  "8": "Win32",
  "9": "Dedicated",
  "10": "TVOS",
  "11": "Orbis",
  "12": "NintendoSwitch",
  "13": "Xbox",
  "14": "WindowsPhone"
}
const client = createClient(...)

client.session = {
  deviceOS: /* 1-14 */
}

@Sasha20028
Copy link
Author

Can you help with 1 question?
Example of moving by coordinates.

@LucienHH
Copy link
Contributor

LucienHH commented Jun 7, 2022

As extremeheat mentioned you can move the client but it's a very complex task that will be much simpler to execute once Mineflayer integration is complete. You can check the progress here #116

@Sasha20028
Copy link
Author

OK, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants