Skip to content

hashbangstudio/Perl-Minecraft-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perl-Minecraft-Examples

A set of examples showing the usage of the Perl API and Minecraft-Pi

To use these examples first you need to have Minecraft installed:

If you have a recently updated version of Raspbian you can install Minecraft-Pi from the repositories.

  1. Open LXTerminal by double clicking on the icon on the desktop or click on : Start Menu > Accessories > LXTerminal
  2. Type the following commands and press enter after each one:
  • sudo apt-get update
  • sudo apt-get install minecraft-pi
  1. You should now see a minecraft shortcut icon on the desktop. Double click on this to start minecraft pi

Alternatively you can start minecraft from the terminal:

  1. Open LXTerminal by double clicking on the icon on the desktop or click on : Start Menu > Accessories > LXTerminal
  2. type minecraft-pi and press enter. Note if you wish to start minecraft in the background you need to type minecraft-pi &

If you have an older version of Raspbian you need to do the following:

  1. Go to http://pi.minecraft.net
  2. Click on Downloads in the menu bar
  3. Click on the download link
  1. Unzip/Uncompress this file by navigating to it in the File Manager and right clicking on it and click on Extract here
  2. Go into the newly created folder mcpi
  3. Double click on the file minecraft-pi and choose Execute
  4. This will have opened up Minecraft, you need to start a game and create a new world

Now that Minecraft is running and you are in the world you can run the examples. All examples can be run from the command line in LXTerminal.

##Running the Examples in LXTerminal

  1. Open LXTerminal by double clicking on the icon on the desktop or click on : Start Menu > Accessories > LXTerminal

  2. Navigate to the folder where these examples are, assuming you have uncompressed the zip folder or cloned the repository in your home folder : cd Perl-Minecraft-Examples

  3. Type: perl filename.pl and press enter (where filename is the examples to try)

  4. Where the script expects arguments you supply those after the filename. For example: perl 02-sendArgsMessageToChat.pl "This is a message"

  5. Have fun in Minecraft!

About

A set of examples showing the usage of the Perl API and Minecraft-Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages