BEFORE YOU USE THIS TOOL, PLEASE READ THE FOLLOWING: WE AS CONTRIBUTORS ARE NOT RESPONSIBLE FOR ANY DAMAGE OR LOSS CAUSED BY THIS APP. USE AN ALT ACCOUNT, JUST IN CASE THERE IS AN ISSUE WITH THIS METHOD.
This is a project for minecraft bedrock that allows you to join servers via the in game friends tab. Allowing console players to connect to servers.
Go into test/index.js and change:
- All refrences to tailville.xyz to whatever you want
- ip: to your server ip (GeyserMC has to be installed on java!!!)
- port: to your server's port (You probably won't have to change it)
Then do node test
and follow the steps in terminal to start the tool.
Here's a graph of stuff to change:
import { Session } from "friend-connect";
import auth from "prismarine-auth";
const { Authflow, Titles } = auth;
const token = await new Authflow("friend-connect", "./", { //change friend-connect to whatever
authTitle: Titles.MinecraftNintendoSwitch,
deviceType: "Nintendo",
}).getXboxToken();
new Session(
{
hostName: "friend-connect", //change to whatever
worldName: "Fun Fact: friend-connect was revealed 7/7/2022", //change to what you want the MOTD to be, basically
version: "1.19.2",
protocol: 527,
players: 0,
maxPlayers: 20,
ip: "", // put your server ip / domain here
port: 19132,
},
token
);
- Add a way to fetch the version and protocol of the server on session Update.
- Add automatically querying the player numbers from the server on session Update.
- Add the ability to provide an array of strings to be chosen from for the hostName and worldName that is rotated through on session Update.
- Check if the user owns any games if so send an error telling them to use an alt account.
- Add an option to disable auto friending.
- Make a user friendly way to use this tool like a discord bot or something.
- Add a cli tool maybe.
This project is a js port of the rtm516/MCXboxBroadcast from java.
Friend Connect adds a key feature that makes the friending automated.
I worked with rtm516 to figure out the uri and headers for finding the followers of an xbox profile.