If you're going to be at a CoderDojoTC event in the near future, we can get your environment up and running for you.
If you will not be attending CoderDojoTC or you want to get your environment sorted out ahead of time, here is a general guide for getting things set up:
####Set up the CraftBukkit server
- Follow these instructions for setting up an environment without a Raspberry PI.
- They will direct you here to set up the server.
- Make sure you download the 1.6.4 jar file, as the api and scripts included in this repository are compatible with the 1.6.4 client and server.
- If you download the latest client (launcher), you'll need to set the version back to 1.6.4 by clicking on Edit Profile and selecting release 1.6.4 from the Use version drop-down.
- Once you have the server up and running, you can download any number of fun plugins here. To install a plugin, download the jar file, move it to the server's plugins folder, and restart the server.
- We highly recommend installing the AlwaysDay plugin
####Python editor In the CoderDojoTC sessions, we use IDLE to run the Python scripts.
IDLE comes bundled with Python. If your machine does not already have IDLE, download and install Python 2.7 for your machine here.
####Running the scripts
- If you haven't done so already, start the CraftBukkit server by double clicking on the start.command file. A Terminal or DOS window will open and you'll see server log text accumulate there. When the server is done loading, you will see something like this:
[INFO] Done (1.599s)! For help, type "help" or "?"
If there are errors in the server log, make sure you are connected to the internet and make sure you have installed Java as part of the server setup instructions above. These are the two most common errors we see during server startup. - Launch the Minecraft client if you haven't already, login, click Play, and join your server (localhost:25565). (If you do not already have a Minecraft login, you can get that here.)
- Open the script you'd like to run in IDLE or another text editor or development environment.
- Make any modifications you'd like to make to the script.
- Save the script.
- If you're using IDLE, hit F5 or select Run Module from the Run menu. Otherwise, you can run the script from the command line (Terminal or DOS) by changing to the directory the script is contained in and typing
python
followed by the name of the script you'd like to run. - While the script is running, you should see more server logs accumulate in the server Terminal or DOS window.
- When the script completes, return to your Minecraft world to see the results.
####Tips and tricks
- If you accidentally create a 1-million-block-radius solid sphere of TNT and your server freezes, you may at any time abandon the world you have created and start over by stopping the server, deleting the world and world_the_end directories, and restarting the server.
- You may type in any Minecraft Commands directly at the server prompt in the Terminal or DOS window where your server is running.