Raspberry jam minecraft

Raspberry jam minecraft

Raspberry Jam Mod — a Mod Forge Minecraft 1.8+ mod implementing most of Raspberry Juice/Pi API

To install for single-player and LAN use (as well as for client-side use with a server):

  1. Set up a Minecraft profile of the correct Minecraft version and run it once.
  2. Install the lastest version of Minecraft Forge for your precise Minecraft version (http://files.minecraftforge.net/)
  3. Put the contents of mods.zip in your .minecraft/mods folder (there will be a number of subfolders like 1.8, 1.8.9, etc.—they should all go there).
  4. Put the sample scripts in in your .minecraft/mcpipy directory.
  5. Install Python if you need to. On Windows, steps 3-5 can be automated by using the .exe installer.

To install on a server:

  1. Download a Forge installer from http://files.minecraftforge.net/
  2. Run and it point it to a directory where you want your server to be, select «Server», and it will download and install a Minecraft server.
  3. Create a mods/ folder in the server directory and put RaspberryJamMod.jar for your server version there.
  4. Put some sample scripts in a mcpipy/ subdirectory of the same folder as your minecraft server. Make sure to include all mcpipy/mcpi.
  5. If your server is open outside your LAN make a passwords.dat file and place it in your server directory, and make sure each of your users has a .minecraft/mcpipy/mcpi/security.py file that matches it. See SECURITY.md for more information.
  6. Instead of running minecraft_server_X.Y.jar to start the server, run the forge jar.

On a server, /py launches a script in the server’s mcpipy/ directory, while /lpy launches a script in the client’s .minecraft/mcpipy/ directory. Note that /lpy only works if the client has the mod installed (otherwise, the user has to submit script for curation and inclusion on the server, or launch them manually outside of Minecraft, making sure their script contains the server IP; this is automagically handled if the script is launched via /lpy.

Источник

Minecraft Forums

Raspberry Jam Mod — most Raspberry Pi/Juice protocol

    li» data-page-inline=»False» data-scroll-inline=»False»>

  • Tree Puncher
  • Join Date: 1/19/2015
  • Posts: 35
  • Member Details

The Raspberry Jam Mod, for Forge and Minecraft 1.8-1.11.2 (1.9-1.11.2 is recommended), implements most of the Raspberry Pi Minecraft protocol.

The protocol lets you run python scripts to draw stuff in Minecraft. A nice introduction is here.

The scripts I’ve tested run without modification on my Windows system with the mod. Of course, you need python (or go or Haskell, all of which have libraries for the protocol, I believe).

Previously, doing this required either buying or emulating a Raspberry Pi, or setting up a Bukkit server with the Raspberry Juice plugin. But for playing around in single-player, running your own server is overkill.

I am completely new to Minecraft modding, and indeed know almost nothing about Minecraft. Writing this mod over the last two days was literally the most time I’ve ever spent with Minecraft. I probably screwed up in multiple ways. I did this for my daughter, to encourage her learning python. [Edit: Well, this was true when I first released the mod in 2015. Now the mod has gone through many, many revisions.]

Here is the mod and the source code. Installation and usage instructions are here.

(Yes, the chess game basically works: you can play against the computer or watch the computer play against itself.)

Источник

Minecraft Forums

Raspberry Jam Mod — most Raspberry Pi/Juice protocol

    li» data-page-inline=»False» data-scroll-inline=»False»>

  • Stuck at Home
  • Location: 1n ur k1tchn, st33l1ng ur c00k13
  • Join Date: 12/19/2013
  • Posts: 432
  • Member Details

  • Tree Puncher
  • Join Date: 1/19/2015
  • Posts: 35
  • Member Details

Version 0.28 released:

— New command: /nightvision toggles night vision
— Unofficial and unsupported API to set block light level: block.setLightLevel(blockId, level) (level is a float between 0 and 1); unsupported APIs may be removed and their functionality may leave something to be desired
— text.py module for drawing large text banners
— various optimizations and bug fixes
— improved pypy support in script and mod (set python interpreter in mod config)

  • Tree Puncher
  • Join Date: 1/19/2015
  • Posts: 35
  • Member Details

Version 0.30 released:

— Minecraft.setBlockWithNBT, Minecraft.setBlocksWithNBT, Minecraft.getBlockWithNBT

— new vehicle.py script: if you run it very near something that looks like a vehicle (or a house, or a statue), it will make that vehicle move along with you

  • Tree Puncher
  • Join Date: 1/19/2015
  • Posts: 35
  • Member Details

I just released version 0.40 of Raspberry Jam Mod. For those who don’t know, this is a mod for Minecraft 1.8 to support the Juice/Pi Python API on single-player Minecraft (also works with LAN sessions) without running a modded server.

In addition to general beta-quality code for the base Juice/Pi API, it includes experimental code (which may disappear if I am not happy with it) for three new major features:
1. Client-only «read-only» mode: use scripts on the client without the server supporting it
2. Multiple world support: use scripts in the Nether and the End
3. Server-side modding: use scripts server-side

These are all major features, but very technical. I will be happy to answer questions.

1. Client-only «read-only» mode: What if you want to debug a script that generates some large structures but don’t want to mess up the world you’d like to place the structures in while debugging? Or what if you want to run a python script while you’re connected to a server not under your control?

So, I made a client-only read-only mode for Raspberry Jam Mod. From the Minecraft menu, if you choose «Mods», then «Raspberry Jam Mod», and then set Client-only read-only mode to «True».

If you use this mode, then any Python scripts you run will run on the client side and make no changes on the server side (except maybe to the player position). You can, however, call getBlock() and setBlock() to your heart’s content. So you can create giant structures while in a world controlled by a server that you don’t own. Because the structures are only on your client-side, other players won’t see them, and they won’t be saved. If you try to mine blocks from these structures, you will fail (and may end up mining the «real blocks» the server knows about).

There are two provisos. First, the usual /py command for running scripts doesn’t work. You need /lpy. («l» for «local») Second, scripts will be disconnected if you switch worlds.

The main thing I want to use this for is to have my kids run the scan.py script to capture buildings that they’ve built in a server we don’t control, and then copy the buildings to a local world.

2. Multiple worlds: When I was teaching programming using Raspberry Jam Mod, it was unfortunate that python scripts didn’t work in the Nether (they also don’t work in the Nether using Juice) as occasionally students ended up there.

After thinking long and hard, I decided that the easiest way to make many (but not all) scripts work not just in the Overworld but in the Nether and The End is to extend the coordinate system to include the Nether and the End all within a single coordinate system, by imagining the worlds as stacked one over the other.

Specifically, the spawn position in the Overworld is at Python coordinates (0,0,0). The spawn position in the Nether is, however, at (0,-2000,0). The spawn position in The End is at (0,-4000,0). (This should extend if you’re using a server with more worlds.) So if you’re in the End and you call getPos(), you get a position with a y-coordinate somewhere around -4000. setBlock() works across all the worlds (though it may not work if the world hasn’t been initialized yet). In theory, you should be able to take a magic bridge right through a portal from one world to another.

The major limitation is that getHeight() currently only works in the Overworld. But because Raspberry Jam Mod’s getBlock() implementation is quite speedy, you can write your own getHeight() alternative to work in the other worlds. Another limitation is that setPos() won’t move you across worlds.

If you don’t like the solution, just don’t use the large negative coordinates. It won’t affect existing scripts.

3. Server-side modding: While Raspberry Jam Mod was designed to fill the niche of a mod for single-player Minecraft supporting the Python API, I can imagine wanting to run it in a server situation. To do that, you need to install Forge for 1.8 and the Mod both on the server and the client side. And everything should then just work, with scripts being run on the server side. This is basically how Juice works, except that you need Forge+RJM on the client side as well (due to Forge limitations) and you can use the standard Minecraft server instead of Bukkit, etc., though with Forge.

And I made an Instructable on how to use scripts with Raspberry Jam Mod to draw fractals!

Источник

arpruss/raspberryjammod

Use Git or checkout with SVN using the web URL.

Work fast with our official CLI. Learn more.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Raspberry Jam Mod — a Mod Forge Minecraft 1.8+ mod implementing most of Raspberry Juice/Pi API

To install for single-player and LAN use (as well as for client-side use with a server):

  1. Set up a Minecraft profile of the correct Minecraft version and run it once.
  2. Install the lastest version of Minecraft Forge for your precise Minecraft version (http://files.minecraftforge.net/)
  3. Put the contents of mods.zip in your .minecraft/mods folder (there will be a number of subfolders like 1.8, 1.8.9, etc.—they should all go there).
  4. Put the sample scripts in in your .minecraft/mcpipy directory.
  5. Install Python if you need to. On Windows, steps 3-5 can be automated by using the .exe installer.

To install on a server:

  1. Download a Forge installer from http://files.minecraftforge.net/
  2. Run and it point it to a directory where you want your server to be, select «Server», and it will download and install a Minecraft server.
  3. Create a mods/ folder in the server directory and put RaspberryJamMod.jar for your server version there.
  4. Put some sample scripts in a mcpipy/ subdirectory of the same folder as your minecraft server. Make sure to include all mcpipy/mcpi.
  5. If your server is open outside your LAN make a passwords.dat file and place it in your server directory, and make sure each of your users has a .minecraft/mcpipy/mcpi/security.py file that matches it. See SECURITY.md for more information.
  6. Instead of running minecraft_server_X.Y.jar to start the server, run the forge jar.

On a server, /py launches a script in the server’s mcpipy/ directory, while /lpy launches a script in the client’s .minecraft/mcpipy/ directory. Note that /lpy only works if the client has the mod installed (otherwise, the user has to submit script for curation and inclusion on the server, or launch them manually outside of Minecraft, making sure their script contains the server IP; this is automagically handled if the script is launched via /lpy.

About

Raspberry Jam Mod — a Mod Forge Minecraft mod implementing most of Raspberry Juice/Pi API

Источник

Alexander Pruss’s Blog

Friday, January 23, 2015

Minecraft and python: Raspberry Jam Mod

I have a special interest in programming education for children, mainly because I have children and because so much of the fun I had as a child was from programming. Not too long ago, I came across the fact that on the Raspberry PI, you can control things in Minecraft with simple python code—in particular, you can procedurally generate objects. This is very attractive because my kids of course are really into Minecraft. But we don’t have a PI, and while they’re cheap, they need an HDMI display device and we don’t have one. It turns out that there are plugins (e.g., Raspberry Juice for Bukkit) for Minecraft servers that implement (most of) the PI’s protocol, but it seems overkill to run a private server just to do this.

So this January I made a mod for Minecraft 1.8 and Forge that implements most of the Raspberry PI protocol and works with most of the python scripts that work with Minecraft PI Edition. For instance, here’s a spiral and a glass torus with water inside.

To install, you’ll need python, Minecraft 1.8, Minecraft Forge, my Raspberry Jam Mod and the Minecraft PI Python package. Then:

  1. Install Forge for 1.8.
  2. Create a Minecraft profile that uses it.
  3. Create a mods subdirectory to your Minecraft directory (%appdata%\.minecraft on Windows, I believe).
  4. Put my mod in the mods directory.
  5. Create an mcpipy subdirectory to your Minecraft directory.
  6. Put the contents of the Minecraft PI Python package into the mcpipy directory.
  7. Create a Minecraft profile that uses the 1.8 Forge.
  8. Run Minecraft and create a world.
  9. Run python scripts via commandline or straight in Minecraft via /py scriptname. E.g., /py nt7s_sphere will draw a sphere.

9 comments:

If anybody wants more sample scripts, here are some, including my donut, Klein bottle and Mobius strip scripts.

My Windows installer now has full support for Python 3.

Thanks a million! Yours is the best API I’ve found so far for supporting multiplayer minigames (getting player names, iDs, etc.) All of the example projects are awesome too! I am attempting to teach Python with Minecraft in my high school programming class this year. I hope this gets my students more involved. Thanks for all your hard work!

You’re very welcome. I have been working with someone who has a Minecraft server for homeschooling families, and so I’ve been improving multiplayer security and support.

This is a nice mod :). You are very talented man.

PS: If you are searching for next gen graphiccards, follow my blog: http://www.grafikkarten-bewertung.de

Thanks, but the newest desktop we own is well over a dozen years old, and no doubt can’t take any current graphic card. :-) And the laptops we have at home don’t have replaceable graphic cards either.

I was looking at starting a YouTube series using this mod and maybe some of the sample scripts (and whatever I can come up with on my own). Is that OK?

Источник

Adblock
detector