IMPORTANT: THIS IS ONLY FOR THE PRE-CONFIGURED MACHINES PROVIDED FOR THE STUDENTS AT THE OSCON KIDS DAY. IF YOU ARE LEARNING AT HOME, TRY THESE INSTRUCTIONS TO SET UP A LOCAL CANARYMOD MINECRAFT SERVER AT HOME.
First we’ll open the Eclipse folder and run Eclipse. We’re going to use a special version of the Minecraft launcher so you don’t have to login. Normally, you’d just start Minecraft at home.
It will ask you what workspace to use. Just press OK to use the one it suggests.
Once we’ve got Eclipse open, we’re going to set a user name and launch Minecraft. This won’t be your regular user name. It’s just whatever name you want to use for today’s session.
Make sure to click the down arrow, not the right-facing arrow. The right-facing arrow will start Minecraft. If you do that accidentally, it’s okay. We can just close it and try again.
We’re going to click the “Arguments” tab, and in the “Program Arguments” box, we’ll type
--username= and then the user name you want to use. Pick something you can remember, because we’ll need it in a couple of minutes. Don’t put spaces anywhere in that.
Down at the bottom of that panel, there’s a run button. Click it and launch Minecraft.
Now, we need to launch the server. This is a preconfigured server that you’ll be able to download and run at home using my instructions for setting up a local CanaryMod Minecraft Server with ScriptCraft. “Local” means you’re running it on your computer instead of a server somewhere on the Internet.
Let’s open the “CM1.2.1” folder on the desktop. Inside it, double-click the “start.bat” file. Some of these workshop machines may have extensions hidden and it’ll just say “start.”
It’ll take a minute to start up, then we’ll add your user name as an operator. This is because we don’t want just anyone being able to run code on your server. Type in
op, then a space, then your user name, then hit enter.
NOW WE CAN CONNECT MINECRAFT TO THE SERVER
In Minecraft, select Multiplayer mode.
On the next screen, click the “Direct Connect” button.
On the next screen, enter a server address of “localhost”.
Let’s test everything
Our security configuration on the server for this class means only operators can break blocks. So look down and break a block on the ground. If it breaks, you’re set. If not, let’s go back and check your steps.