#macos setup

175 messages · Page 1 of 1 (latest)

daring plank
#

what part are you getting stuck on?

#

are you having trouble setting up a basic server minecraft server on macos or is it specifically trouble getting the geyser plugin to work on macos?

hollow edge
daring plank
glossy needle
glossy needle
hollow edge
hollow edge
#

any helps is appreciated

daring plank
# hollow edge like through a vc?

anything is fine, just figured i'd give you the time to check if using another launcher would be easier. I have no experience with that, but I can help you get started on running the server through the terminal

#

if you navigate to whatever folder you have your minecraft server in through the terminal, you just need to run the .jar file, this should start up the server for the first time. once it has finished initializing there should be a plugins folder

#

you should get something like this on first run, you just need to open the eula.txt that is created in the same folder, in this case, it would be in the folder minecraft-macos

#

when running ls you can see that there is more than just the .jar file that we had put in there originally

hollow edge
#

this is where im at currewntly

daring plank
# hollow edge

i see the confusion, you're trying to run the file directly, but you need to do java -jar paper-1.21.11-92.jar nogui

#

also is there a reason that you are setting up your server in /Library/Java ? it might be simplier to setup a folder in your home directory something like ~/minecraft-server

hollow edge
#

how would i do that? im relatively new to doing such things

daring plank
#

ok no worries

#

let first start by installing homebrew, this will let us install java through the terminal

#

you just want to paste /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" into your terminal and once its installed let me know

hollow edge
#

is it supposed to take some time cause i get this and then unable to type anything

daring plank
#

yea, so it doesn't show you what you type, but you are typing in that. you just need to type your password into the terminal

#

the password for your mac specifically

hollow edge
daring plank
#

cool it should be installing

#

when its done, just type brew install openjdk into your terminal, this will install the latest java version

hollow edge
#

how will i know once its done?

daring plank
#

it should give you access to type in the terminal again

hollow edge
#

its saying its installing the command line tools for xcode

daring plank
#

yea, that is ok, its needed to be able to install anything through homebrew

hollow edge
#

is this when i should use the command

daring plank
#

no, its still installing, just wait till it shows you the prompt again like tym@Leclerc-16 ~ %

#

oh yea

#

now you can use it

hollow edge
#

it says comand not found brew

daring plank
#

but yea, just copy paste those commands into your terminal before you try running brew

hollow edge
daring plank
#

we just need to tell your computer where the command 'brew' is after installing

hollow edge
#

idk if it did anything so i js said it twice

daring plank
#

ok try using brew help

hollow edge
daring plank
#

nice! its installed, now just type brew install openjdk

#

this will install the latest java version

#

once you get that installed i'll walk you through moving your server to your home directory

hollow edge
daring plank
#

ok try running java -version

hollow edge
daring plank
#

ok try running this

hollow edge
#

i dont think anything happened?

daring plank
#

and once you run it, close your terminal and open a new one, it needs to load the new edits

hollow edge
#

should i still close it after nothing has happened?

daring plank
#

yea, there shouldn't be any response from the terminal after running the command

hollow edge
#

ok i opened a new terminal, what should i do now?

daring plank
#

try running java -version again

hollow edge
daring plank
#

nice! its installed

#

ok lets move your minecraft server

hollow edge
#

how should i go abt that

daring plank
#

first we will make a new folder in the home directory with mkdir ~/minecraft-server

hollow edge
daring plank
#

then if you do mv /Library/Java/Extensions/untitled\ folder/paper-1.21.11-92.jar ~/minecraft-server

#

this will move the file to the new folder that you made

hollow edge
daring plank
#

ok now do cd ~/minecraft-server

hollow edge
daring plank
#

ok, now do java -jar paper-1.21.11-92.jar nogui

hollow edge
#

its saying its downloading mojang, shall i js wait now?

daring plank
#

ok now you want to go to finder and navigate to the minecraft-server folder

#

there should be a file in there called eula.txt, you just need to change it from false to true

hollow edge
daring plank
#

looks good, just save the file and rerun the last command

hollow edge
daring plank
#

nice! you got your server up and running

#

launch minecraft and see if you can join

#

go to multiplayer and then direct connection, for the ip use localhost

hollow edge
#

okay i was able to join

daring plank
#

nice!

#

if you go to that minecraft-server folder then you should see a plugins folder

#

you can add geyser and whatever other plugins you want into that folder

hollow edge
#

okay i see it and opened it

daring plank
#

you just need to restart the server to get the plugins to load

hollow edge
#

ok so i put the plugins in and reopened the game

daring plank
#

in that terminal window that you running the minecraft server you can enter stop to stop the server. just make sure that when you are changing plugins that the server is off because it can cause some weird corruption issues if you move a file while its running

hollow edge
#

okay i used the command

daring plank
#

yea so you should be able to just put the plugins in the plugins folder

hollow edge
#

like this?

daring plank
#

to run the server again you just need to run the command java -jar paper-1.21.11-92.jar nogui

daring plank
hollow edge
daring plank
#

nice, you should be able to join the server on your phone or whatever bedrock client you wanted to

#

you just need to figure out what your local network ip is

hollow edge
#

so will i have to redo the said commands whenver i wished for someone to join, or is it like permanently they can join, and what if im using a realm does that change anything?

daring plank
#

it mostly depends on how you want to have it setup. im not sure if you're on a desktop or laptop

hollow edge
#

i am on a laptop

daring plank
#

if you wanted you could just leave the server running all the time and that way your friends can join whenever or you can just run it when you and your friends want to play

#

but if you're on a laptop, i would not recommend running it all the time because its going to kill your battery life

hollow edge
#

i constantly keep it on the charger, will it cancel it out from dying

daring plank
#

oh ok then yea, just run it whenever

#

the next thing that you're going to have to figure out is how to port forward on your router

hollow edge
#

okay so rn im in the realm i wanna use to have people join in and play together cause they will be on bedrock and me on java, how do i go about letting them join and such/

daring plank
#

port forwarding allows the server to be accessible people outside of your local network

hollow edge
#

do i do that in terminal or how?

daring plank
hollow edge
#

so does that cause me to not use a realm to connect with bedrock?

daring plank
#

so with the setup that we just did, it runs a java server that allows bedrock players to connect to said java server.

hollow edge
#

i saw this

daring plank
#

yea, that sounds like a really complicated setup

#

he also suggests just downloading the world

hollow edge
#

would that allow them to join anytime or no

#

and if i were to download it, how do i do that

daring plank
daring plank
hollow edge
#

i feel like the user implied it does? but idk cause he vrought up the fact its always on

#

i more or less was able to download it but now it says its a single player world

daring plank
#

yea im not really sure. it might be worth looking into a hosting service if you want to keep it running all the time because it really would simplify the setup

#

or just googling around some more

#

i'll try to help you out some more, but i just don't have any experience with these things myself so i don't feel super confident giving more advice

hollow edge
#

i appreciate all the advice even given now, i found a site that offers to host the server, but again backtracking to having bedrock players, how do i enable them to join and such cause ik im supposed to get a number or smth that they put in to join

daring plank
#

yea no problem, when you setup that server with a host you can put the plugins in the plugins folder like we did. i think the only thing that you should look out for is that the hosting platform allows you to set another port for the server because the geyser plugin uses the bedrock port 19132 instead of the usual java port 25565

hollow edge
#

so if i wanted to say rn start up a multiplayer server, and want to enable it where people join, do i even create a multiplayer in the first place since it asks me to create a server address?

#

i appreciate all ur help and i apologize for any hinderence i have put on u,im js like completely lost in this area

daring plank
#

you mean like the server ip that you give people to join the server that we just made or when you set one up on a hosting site

hollow edge
#

the one we js made

daring plank
#

ok so you're going to have to port forward before you can give your friends the address unless you guys are all on the same wifi

#

im guessing you are in different houses?

hollow edge
#

yes, so how do i go about port forwarding

daring plank
#

do you know what kind of router you have?

hollow edge
#

like provider, or like the physical thing

daring plank
#

the physical thing

#

sometimes people get a different one than the one the provider gave them

hollow edge
#

oh ok, well i can go to my router but what would i be looking for

daring plank
#

if you go to the physical router on the back or the bottom theres gonna be like a bunch of information like a website and a password and like an admin login or something like that

hollow edge
#

okay ill go to it now

daring plank
#

it might look something like this https://192.168.1.1/

#

usually something like this

hollow edge
#

i found it saying network name and then the password

#

but nothing containing http

daring plank
#

ok can you go to your wifi settings in macos?

#

if you click the ... then click network settings

#

you should see something like this

#

your numbers will be different

hollow edge
#

oh yes i found it

#

what do i do now

daring plank
#

type the router ip address into your web browser

hollow edge
#

what now

daring plank
#

did it load a webpage?

hollow edge
#

it more or less js looks like what pops up after any normal search, like a reddit forum and other articles/sites

daring plank
#

oh like a normal google search?

hollow edge
#

yes

daring plank
#

ah

#

this is what i used to learn how to port foward

#

you just need to figure out what router specifically you have so that this page can walk you through doing it

hollow edge
#

ah ty, i think i get the jist of everything and from here on out i can work it all out on my own, ive taken up a considerable anmount of time already and u helped me with the part i had the most trouble on

#

i appreciate u so much

daring plank
#

sorry its just that the process is different for each router so its not super obvious how to walk you through those steps

hollow edge
#

its fine i understand, u were a tremoundous help

daring plank
#

@ me or send me a pm if you need some more help