Skip to content

Instantly share code, notes, and snippets.

@jmeline
Forked from noahcoad/readme.md
Created November 3, 2020 20:30
Show Gist options
  • Select an option

  • Save jmeline/9901b4e758201cf036d75a064133dcd7 to your computer and use it in GitHub Desktop.

Select an option

Save jmeline/9901b4e758201cf036d75a064133dcd7 to your computer and use it in GitHub Desktop.

Revisions

  1. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,17 @@
    <!--
    Posted at https://gist.github.com/noahcoad/fc9d3984a5d4d61648269c0a9477c622
    Locally at ~/code/py/learn/minecraft_py/gist/fc9d3984a5d4d61648269c0a9477c622
    Screen capture: https://screencast.com/t/KVRBNQjM
    -->

    # Code Minecraft with Python on Mac OSX

    Here's a step-by-step to get started scripting Minecraft with Python on Mac OSX

    ## Overview
    There was a special build of Minecraft for the [Raspberry Pi](https://www.raspberrypi.org/) called [Minecraft Pi](https://minecraft.net/en-us/edition/pi/) that had a Python interface and library. You could code in Python to manipulate your Minecraft world! But you'd have to code on a Raspberry Pi computer. However thanks to using the [RaspberryJuice](https://dev.bukkit.org/projects/raspberryjuice) plugin with a [Spigot](https://www.spigotmc.org/) server, you can do this locally on a Mac. Probably in Linux or Windows too, but I'll leave that up to you.

    <!-- https://screencast.com/t/KVRBNQjM -->

    Here we have a rainbow created by the [rainbox script](https://www.dropbox.com/s/k29ms42nzvgehjk/rainbow.py?dl=0).
    ![rainbow](https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png)

  2. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -55,11 +55,11 @@ Connect, look around you, and you'll see the rainbow!

    Want a first challenge? try making the rainbow thicker =)

    ## Optional
    * set up to run automatically, https://github.com/Ahtenus/minecraft-init
    * see more examples!
    ## Also
    * Set up to run automatically, https://github.com/Ahtenus/minecraft-init
    * See more examples!
    * https://www.101computing.net/minecraft-python-challenges/
    * https://www.stuffaboutcode.com/p/minecraft.html
    * See commands implemented at https://dev.bukkit.org/projects/raspberryjuice
    * See minecraft pi protocal at https://wiki.vg/Minecraft_Pi_Protocol
    * See the list of commands implemented at https://dev.bukkit.org/projects/raspberryjuice
    * See the Minecraft Pi protocal at https://wiki.vg/Minecraft_Pi_Protocol
    * "stop" at server prompt will close the server
  3. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -59,7 +59,7 @@ Want a first challenge? try making the rainbow thicker =)
    * set up to run automatically, https://github.com/Ahtenus/minecraft-init
    * see more examples!
    * https://www.101computing.net/minecraft-python-challenges/
    * https://www.stuffaboutcode.com/p/minecraft.html
    * https://www.stuffaboutcode.com/p/minecraft.html
    * See commands implemented at https://dev.bukkit.org/projects/raspberryjuice
    * See minecraft pi protocal at https://wiki.vg/Minecraft_Pi_Protocol
    * "stop" at server prompt will close the server
  4. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,8 @@ Here we have a rainbow created by the [rainbox script](https://www.dropbox.com/s
    python2 rainbow.py

    ## You're Running!
    Start minecraft making sure the version matches (1.13.1 in this case), go into multiplayer mode, add a server with address: localhost
    Start minecraft making sure the version matches (1.13.1 in this case), go into multiplayer mode, add a server with address: `localhost`

    Connect, look around you, and you'll see the rainbow!

    Want a first challenge? try making the rainbow thicker =)
  5. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,11 @@
    Here's a step-by-step to get started scripting Minecraft with Python on Mac OSX

    ## Overview
    There was a special build of Minecraft for the [Raspberry Pi](https://www.raspberrypi.org/) called [Minecraft Pi](https://minecraft.net/en-us/edition/pi/) that had a Python interface and library built. You'd have to code on a Raspberry Pi to use that. However thanks to using the [RaspberryJuice](https://dev.bukkit.org/projects/raspberryjuice) plugin with a [Spigot](https://www.spigotmc.org/) server, you can do this locally on a Mac. Probably in Linux or Windows too, but I'll leave that up to you.
    There was a special build of Minecraft for the [Raspberry Pi](https://www.raspberrypi.org/) called [Minecraft Pi](https://minecraft.net/en-us/edition/pi/) that had a Python interface and library. You could code in Python to manipulate your Minecraft world! But you'd have to code on a Raspberry Pi computer. However thanks to using the [RaspberryJuice](https://dev.bukkit.org/projects/raspberryjuice) plugin with a [Spigot](https://www.spigotmc.org/) server, you can do this locally on a Mac. Probably in Linux or Windows too, but I'll leave that up to you.

    <!-- https://screencast.com/t/KVRBNQjM -->

    Here we have a rainbow created by the [rainbox script](https://www.dropbox.com/s/k29ms42nzvgehjk/rainbow.py?dl=0).
    ![rainbow](https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png)

    ## Step-by-step
  6. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ There was a special build of Minecraft for the [Raspberry Pi](https://www.raspbe

    <!-- https://screencast.com/t/KVRBNQjM -->

    <img src="https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png" style="max-width: 600px;">
    ![rainbow](https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png)

    ## Step-by-step

  7. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ There was a special build of Minecraft for the [Raspberry Pi](https://www.raspbe

    <!-- https://screencast.com/t/KVRBNQjM -->

    <img src="https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png" width="200">
    <img src="https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png" style="max-width: 600px;">

    ## Step-by-step

  8. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ There was a special build of Minecraft for the [Raspberry Pi](https://www.raspbe

    <!-- https://screencast.com/t/KVRBNQjM -->

    ![rainbox](https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png | width=200)
    <img src="https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png" width="200">

    ## Step-by-step

  9. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,10 @@ Here's a step-by-step to get started scripting Minecraft with Python on Mac OSX
    ## Overview
    There was a special build of Minecraft for the [Raspberry Pi](https://www.raspberrypi.org/) called [Minecraft Pi](https://minecraft.net/en-us/edition/pi/) that had a Python interface and library built. You'd have to code on a Raspberry Pi to use that. However thanks to using the [RaspberryJuice](https://dev.bukkit.org/projects/raspberryjuice) plugin with a [Spigot](https://www.spigotmc.org/) server, you can do this locally on a Mac. Probably in Linux or Windows too, but I'll leave that up to you.

    <!-- https://screencast.com/t/KVRBNQjM -->

    ![rainbox](https://content.screencast.com/users/NoahCoad/folders/Jing/media/b6e388d6-e9c5-4941-9dac-afdf6949f30a/00000130.png | width=200)

    ## Step-by-step

    # guide for Minecraft v1.13.1 server
  10. @noahcoad noahcoad revised this gist Oct 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Code Minecraft with Python on Mac OX
    # Code Minecraft with Python on Mac OSX

    Here's a step-by-step to get started scripting Minecraft with Python on Mac OSX

  11. @noahcoad noahcoad created this gist Oct 13, 2018.
    59 changes: 59 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,59 @@
    # Code Minecraft with Python on Mac OX

    Here's a step-by-step to get started scripting Minecraft with Python on Mac OSX

    ## Overview
    There was a special build of Minecraft for the [Raspberry Pi](https://www.raspberrypi.org/) called [Minecraft Pi](https://minecraft.net/en-us/edition/pi/) that had a Python interface and library built. You'd have to code on a Raspberry Pi to use that. However thanks to using the [RaspberryJuice](https://dev.bukkit.org/projects/raspberryjuice) plugin with a [Spigot](https://www.spigotmc.org/) server, you can do this locally on a Mac. Probably in Linux or Windows too, but I'll leave that up to you.

    ## Step-by-step

    # guide for Minecraft v1.13.1 server
    # update minecraft server and spigot links for latest versions
    # get started
    mkdir minecraft_py; cd minecraft_py; mkdir spigot; cd spigot
    # download minecraft server from https://minecraft.net/en-us/download/server/
    wget https://launcher.mojang.com/v1/objects/fe123682e9cb30031eae351764f653500b7396c9/server.jar
    # download spigot server from https://getbukkit.org/download/spigot
    wget -O spigot.jar https://cdn.getbukkit.org/spigot/spigot-1.13.1.jar
    # agree to eula
    echo eula=true > eula.txt
    # get RaspberryJuice from https://dev.bukkit.org/projects/raspberryjuice
    mkdir plugins; cd plugins
    wget -O raspberryjuice-1.11.jar https://dev.bukkit.org/projects/raspberryjuice/files/2496319/download
    # get the mcpi libraries from https://github.com/zhuowei/RaspberryJuice
    cd ../..
    git clone https://github.com/zhuowei/RaspberryJuice.git
    mkdir py
    cp -r RaspberryJuice/src/main/resources/mcpi/api/python/modded/mcpi py/
    # download an example python script from https://www.dropbox.com/s/k29ms42nzvgehjk/rainbow.py?dl=0
    # alternatively see example here https://dev.bukkit.org/projects/raspberryjuice
    cd py
    wget -O rainbow.py https://www.dropbox.com/s/k29ms42nzvgehjk/rainbow.py\?dl\=1
    # run spigot
    cd ../spigot; java -jar spigot.jar
    # in a new terminal under the minecraft_py/py folder
    python2 rainbow.py

    ## You're Running!
    Start minecraft making sure the version matches (1.13.1 in this case), go into multiplayer mode, add a server with address: localhost
    Connect, look around you, and you'll see the rainbow!

    Want a first challenge? try making the rainbow thicker =)

    ## Optional
    * set up to run automatically, https://github.com/Ahtenus/minecraft-init
    * see more examples!
    * https://www.101computing.net/minecraft-python-challenges/
    * https://www.stuffaboutcode.com/p/minecraft.html
    * See commands implemented at https://dev.bukkit.org/projects/raspberryjuice
    * See minecraft pi protocal at https://wiki.vg/Minecraft_Pi_Protocol
    * "stop" at server prompt will close the server