Git Product home page Git Product logo

lesson-logs's Introduction

Introduction

Several high school students recently expressed interest in learning to code and I agreed to help by working on an interesting intial project. This page will log project activities in case others wish to follow along.

Prepare your environment

Those working on the project with me are currently all using a Mac so my instructions assume that is what you have. I will happy entertain pull requests for content aimed at helping Linux or Windows users.

1. If you don't have a http://github.com account, please create one.

2. Create a project using https://pages.github.com.

We will be creating a website which will be your project log. The goal here is to track instructions for what we will be doing together so that others can benefit from the work you are doing. If done right, someone will be able to go to your site, following the instructions and reproduce your project. If you can explain what you are learning to others, then it will be clear that you have actually learned it. And by sharing your work with the world you will become part of a community of makers who will build on what you do and from whom you will in turn learn even more.

Come up with a nice title and create a first entry with today's date and which captures what we are doing below.

3. Install VSCode. We will be using this for editing code. Once you have installed it, you will also want to configure VSCode to start from the command line. If something goes wrong with this second step, don't worry about it. We can look at it together when we do our first Zoom session.

4. Install homebrew. We will be using this to make installing other development tools you'll need on your mac much easier.

5. Install Python 3.

$ brew install python3
$ python3 -V

6. Install the mcpi python library.

pip3 install mcpi

Create a Minecraft Server w/ Spigot and the Raspberry Juice Library

This step we will skip for now. I have done this for you and will email credentials to the server. Later we will come back and do this together.

Write you first program to test the plugin and connectivity.

1. Create a new file with VSCode called mcpi-test.py and insert the content below.

from mcpi.minecraft import Minecraft

mchost = "" # replace this with the ip address I send via email
mc = Minecraft.create(mchost, 4711)
mc.postToChat("Hello Minecraft World")

2. Login to the Minecraft server created in the previous section and once you have done so, run the program you just saved.

$ python3 mcpi-test.py

lesson-logs's People

Contributors

jpshackelford avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.