A project that seeks to recreate every old Minecraft version in Python using Pyglet and Cython.
Project description
Minecraft: Python Edition
Minecraft: Python Edition is a project that strives to recreate each and every old Minecraft version in Python 3 using the Pyglet multimedia library and Cython for performance.
The project is currently working on the Indev versions of Minecraft. The latest version is Indev 0.31 20100129 as released on January 29, 2010.
This version adds functional crafting, sticks, the "Steve" and "Black Steve" MD3 mobs, and rudimentary smelting to the game. This is the first version where items must be gathered and crafted yourself, as opposed to them being provided in the chests at spawn.
Features from previous Indev versions include the Indev mossy cobblestone spawn house, NBT level file saving, most tools, torches, advanced liquid spread, TNT explosives, and passive MD3 mobs.
To easily install this version of Minecraft: Python Edition, just run python -m pip install minecraft-python==0.31.20100129
.
You can learn more about this version on the Minecraft wiki.
Organization
This project's commits represent the Python versions of each Minecraft Java game version.
You can view source code changes between game versions by checking the commit history or comparing branches.
To play any version, specify it in the pip install
command as demonstrated below.
General Usage
Pyglet, Cython, Pillow, PyOgg, NumPy, and nbtlib are required dependencies which can easily be installed with pip. Use the versions specified in requirements.txt
.
wxPython is an optional dependency for the level file picker, but if you don't have it then Tkinter is used instead.
For audio to work you will either need PyOgg which is recommended, or FFmpeg which has to be installed on your system. GStreamer is also supported on Linux through the gst-python library. PyOgg requires that your system have one of the Opus, FLAC, or Vorbis codecs. OpenAL is required and comes bundled with the source on Windows.
For a manual Cython source build, run python setup.py build_ext --inplace
.
Run python -m mc.net.minecraft.client.Minecraft
to launch the game. Minecraft: Python Edition should be compatible with any modern platform that supports OpenGL and Cython.
Run with the argument -fullscreen
to open the window in fullscreen mode (or press F11 in-game).
The argument -creative
will force the game to be in creative mode.
Gameplay
All controls are as you would expect for the game and they can be configured in the options menu. Press I to open your inventory, B to craft (I to exit the crafting screen), F5 to toggle rain and F7 to take a cool isometric screenshot.
Smelting is unique in early Indev: to get iron or gold ingots, light the dropped ores on fire or throw them in lava.
The Indev level generator is customizable and you can choose between the Inland, Island, Floating, and Flat level types. You can specify the world theme as Normal or Hell (lava and dirt instead of water and grass), world size, and world shape (Square, Long, Deep).
Levels can be saved to a single .mclevel NBT file in the pause menu. The level files are perfectly compatible with Java and vice versa.
The only mobs around are the Steves and Black Steves, which don't drop anything when killed. Apples will restore health.
An isometric screenshot of a normal Island map generated by the game, showing the MD3 mobs.
Additional Notes
The mc.resources
directory contains all of the textures and sounds that this version uses. However,
the textures are only there for convenience, as all of the texture buffers are already preloaded
in the mc.Resources
module.
This would have been much more challenging to work on without the great tools provided by RetroMCP-Java.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for minecraft_python-0.31.20100129.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6ce09ded4e75f1d8c12984771426265b071a274a2359da81221b5a703a81932 |
|
MD5 | 07b71f693780d03b81773abfa89ce375 |
|
BLAKE2b-256 | c3d01502459b6b0a4bd64c39dcacb0c0429dbd344c092ad8a552687895348301 |
Hashes for minecraft_python-0.31.20100129-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91f83db119240165f89d00ab9ca48ea5d0dc762fdeefa6abcb2d51adac67a5b9 |
|
MD5 | 30c4e3a32c80d56a64612cc8ad30e4ba |
|
BLAKE2b-256 | 1e4a9c220fca0de78c375e4648c5a5f7fb95fd4ad35f6a06460e1c6ecc11d6c6 |
Hashes for minecraft_python-0.31.20100129-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14f8cd1fd4e3076dfa51d3e6d0a0aacc8e2a31126b6ce02b2ad2dc446bec9117 |
|
MD5 | ceda8f679a01fdca450df29b339af6f1 |
|
BLAKE2b-256 | 800cf38efda469c22bec0575a6ce0f7e1298121d4909563faac1068f02470786 |
Hashes for minecraft_python-0.31.20100129-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 182c7a3a450f0df8093c7fadec4cbd70a31c49d1ac7d7ede6778ca32fe56a96a |
|
MD5 | cc814d9684d4497ea027e2fe2c6f53e2 |
|
BLAKE2b-256 | a1c8ea92b1a627c6fd41626bb7b0e0dd6399947070e8b53de0b28d657ac7c5f8 |
Hashes for minecraft_python-0.31.20100129-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27cc93091a008665bc2237a8ed8eb314e3d2c51a460e3a7199bc473ad4eaeeee |
|
MD5 | 8868b529007794810864d1fd0ac0e775 |
|
BLAKE2b-256 | 4c2b62c4e0e68f0e6cfa99c2527d725c176e2c7ecf0e46f894386082b03ab79e |
Hashes for minecraft_python-0.31.20100129-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84a382e828b8f2fb7e38dfbbb3592c543a45aa3db2ac17504965e3446d4cfb5 |
|
MD5 | 5d2d0ac4c4d85597a606bafa0f5287ec |
|
BLAKE2b-256 | 88f261fa5a25a6db7c5747f52f69d1d673ecfc06ccc6510a852d963c0ad3e711 |
Hashes for minecraft_python-0.31.20100129-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b19893984e8ca7e94b89688ddccb0b3e9095ec26a6976d9bf2ced2eb86191cf5 |
|
MD5 | 7346bfc68c4a5c36a30369979d0cd95c |
|
BLAKE2b-256 | c8a69086c23b957dde5e565c10b4fbfb850e711fa32dcebf64f3ad8e462164b8 |
Hashes for minecraft_python-0.31.20100129-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61c7724022b1f60f47fab7aa341ab28726379fc1fa17bdef1273b5800427cd6 |
|
MD5 | 588bd592ebbe4c114f050649db0b1755 |
|
BLAKE2b-256 | 5ad4fc20fd9a9dc9cbabbcce5cf0f81a590291eac4d0c3399776565c9572b673 |
Hashes for minecraft_python-0.31.20100129-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 128cca1742ca3ac2203d90af0f4a47a49ad96a41c670d006fdeaf5d7bba2e75f |
|
MD5 | cf93c7e6cd897b6bb68213bb52ec3fd7 |
|
BLAKE2b-256 | 48cbe871fe37754c1fe5e8202a436fd46d6b19041100b778830cfea34bc19620 |
Hashes for minecraft_python-0.31.20100129-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4189fb9984ba652a801d677634d718ca5352f7e2f75444c6d37b84c12094680b |
|
MD5 | 031372588a754e2e4c9d1ab0c43838b2 |
|
BLAKE2b-256 | f1b4dd811dc44166c479424b91154f64967f6a35bbd85785daf01635cc1e6bbf |
Hashes for minecraft_python-0.31.20100129-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6f293b6ade7be89f4321cbcfd71df50cd93ed1bfcea626e18554d301257861e |
|
MD5 | 5be5a87c746788b8c4832ad6197141a8 |
|
BLAKE2b-256 | 1df797c1a7d3f250ea0038f62445bdb0be8f7a4fc799845a9757cef691f9386f |
Hashes for minecraft_python-0.31.20100129-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3affcf490ef1bd8225bc2d1b3d16c3b1557a360ea1dbcf3e7bdf88b8e78229dd |
|
MD5 | ee21f1788383a637c00bcca664dd3197 |
|
BLAKE2b-256 | 608c21506cecd5ffabedb7b659cb29a00715785152e0eff58429be8c3e34fe63 |
Hashes for minecraft_python-0.31.20100129-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52bc7156c0067967144fd589dc5330a161d4dafb1e1c3fb4222f92dbf9a08e1d |
|
MD5 | a6b0abc1d071f9616934d0025271e761 |
|
BLAKE2b-256 | 494f78003e4d10edd88917904aac49f100d978933d395dafe5a9c1b6d01e3b22 |
Hashes for minecraft_python-0.31.20100129-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0db1ce4c0e6c2f8bc8e4167afd7c43767d07bc2a8705315f5b37f6f112528797 |
|
MD5 | 4eb9c3edfc9d58fc5a8c8450496542ab |
|
BLAKE2b-256 | e6dff4386e798dcdec343c7f92a47cd9fbf1d0c9c51928e922394c183f5820ba |
Hashes for minecraft_python-0.31.20100129-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e480f321c9833c9ea66f998a726cc0dd2af5c9e1f79da8c713730da4c42adbca |
|
MD5 | 731771934e02fb754bfeb0af34b64d1b |
|
BLAKE2b-256 | 8b872f59184fb40320ae2d3fdd143bf7e946a93054259987872862fa94bf9265 |
Hashes for minecraft_python-0.31.20100129-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4974bc5be82d63a71be8c980f7c2ae1a84026a7709abf76949a18fe2ad9086ae |
|
MD5 | d9c5c2ac6d6a50e7662ea1e935481bcf |
|
BLAKE2b-256 | fd2995956684eef70a20687eaf7bc79f88d102183a32bff7fd01ab9b0f89f7f7 |
Hashes for minecraft_python-0.31.20100129-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6605e5f5dff6f871fc5b6b57d3a9a11d427c9eef443a3ba3e69426a88434be6 |
|
MD5 | c93c6f914261e8acf1c378a40c392b04 |
|
BLAKE2b-256 | fc33064d7409ac952125f5c55db63211aef3cf1c1cb4fc580a13123fe5e09dbe |
Hashes for minecraft_python-0.31.20100129-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f67826b31d04327d66e5634f04ab29ef09f62016a965606708e0db5cf313ac86 |
|
MD5 | ccff1ffae40dbb213e469204d482f8b0 |
|
BLAKE2b-256 | ceb2bc7d430a8d09de9dab373a44ad869c26b5daacbf986805f41a99a1441615 |
Hashes for minecraft_python-0.31.20100129-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5c51645541a212d072724d75c668e59f925c3ddc7d94c14f753f611c28cbe82 |
|
MD5 | 2d98e1efe868c592618620caf019cc89 |
|
BLAKE2b-256 | 9804198f3e43171127f980c6ad12bbfd08ee1d368e558cadde3e6042538b6476 |
Hashes for minecraft_python-0.31.20100129-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85a5eb9c3db70afa588b833735e2d4732981cb4905c82d21732b2c83fffc1a71 |
|
MD5 | dcadd0e6615f022c7ac0be4ba948ba2a |
|
BLAKE2b-256 | c41a7021296cf44944f914b0ecd8af3c94280fe2460b81e1593477cb212c243c |
Hashes for minecraft_python-0.31.20100129-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28211ff6666d41a94ea3039026b0cecbfad2a2b07f6f494dcb7dc06b8be3c5d5 |
|
MD5 | 212a02d7693268314ec2d8734cfc08ce |
|
BLAKE2b-256 | 2e33021d11af1621aa29d2f00b6c06ea2f6fdd1675746ee0d9a08375ac0191bf |
Hashes for minecraft_python-0.31.20100129-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 679e30f19c32a18e8e5329db9a6f7bee358f32cfb20cbb71a70811d3bf1f3dae |
|
MD5 | c25414b4ab0c961d6b8f0f48be6ed140 |
|
BLAKE2b-256 | 3c7c2fc4fef4b705d33a08073aa08697c59cd0100a0630a9a935a71773761b08 |
Hashes for minecraft_python-0.31.20100129-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2f7ac2daddcd29c8d23e66e51ff0fdbf4e3754dbd44e086d926c8fc413eeb59 |
|
MD5 | 3e2cd0a8c19c278f2f2d24f715270a5b |
|
BLAKE2b-256 | 5dbb58fa81ace88938e48bffb5edcde666229e175c5bd8c837f6f35be51e1c8f |
Hashes for minecraft_python-0.31.20100129-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e73af83c11797774a2c022f4e6857e27f62296ac41ff00388009b44954be02f |
|
MD5 | 4d6922b90b2b102aefe14d75bb95a715 |
|
BLAKE2b-256 | 8cc003ba2bf6f8d0c8367816914148eb55993578ab19a84903e8c653b1723302 |
Hashes for minecraft_python-0.31.20100129-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3ae1f35e7f68e2665b48a14b91d9044dfd5f9d4a48c9e6f49a79d9a4e842915 |
|
MD5 | bd7a12b8cae5856af0071e0a93bbc018 |
|
BLAKE2b-256 | c6dc48dc5a62b693ae640a57904b0acd4bc0902dee67201e7f5c137f79b12d3d |
Hashes for minecraft_python-0.31.20100129-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82501a51686fe61797b97c83543cc43d9ca7c89276302e7248c60395350ab7c0 |
|
MD5 | 4b21632410755ed8a17a682f36ea4c6d |
|
BLAKE2b-256 | 7e9397f86fa9b2c63ee95dd4fdfda40c0fa861adc3c3027c93fc03272d980852 |
Hashes for minecraft_python-0.31.20100129-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4723a6b57be21acd3eff31ef9031a992ca77d47bd168f03d122ff1a3da78c50 |
|
MD5 | 50bfb6bd389499cdd90a7cc6b72e306d |
|
BLAKE2b-256 | 4e5bec44e3b5439f1dedceda869b8d5e6e557d5d59df7230f6acef5cd62d7980 |
Hashes for minecraft_python-0.31.20100129-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a2d9bae958f657549ece0cf4cd5350ce8f464389215fdff91895a243b834c69 |
|
MD5 | 12e33be14ce40c48146218d3fdaa9938 |
|
BLAKE2b-256 | f1c286a6e9907f3cc0f1d26df10bfbff6e1655fe3f5fdfde8cfbe5cda84327f6 |
Hashes for minecraft_python-0.31.20100129-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf3b4f1b7f2b1e4b4eb79c16c541718e9671cfc667f1213630436afabfc0b53 |
|
MD5 | 02dde115f462f265cb9c92af5efdbe3f |
|
BLAKE2b-256 | 58626626f891c1a86d3c6519ea812ae4e42630e8b439a0b031c3b1e8d37872d8 |
Hashes for minecraft_python-0.31.20100129-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6264f928640c69b50d2f1eab9ddc1408a17132323131480b59bed0d104d38ddc |
|
MD5 | dea83a60f3b13086acdc3d55dff97d03 |
|
BLAKE2b-256 | c00f8bacecbeb049bc4f3fca519b4aa2d0f7f7a7966975b8af40ee85c2f58cac |
Hashes for minecraft_python-0.31.20100129-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 725e49c81f815d5e01111a302ef6c9c741001119d8d96f875b53dde3a7325c90 |
|
MD5 | c2fe08fa61466b450242ae641626013c |
|
BLAKE2b-256 | 6c2b12dc304d8494d329fe545182d46af8aeec19190c33fce1a95d64f803dcb6 |
Hashes for minecraft_python-0.31.20100129-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f83d439627e82df2663a6e90477668aced383527c00d50a534bcd990b518483a |
|
MD5 | cee42036ae4bb38e6717c622d4f49bad |
|
BLAKE2b-256 | 1d91489c6144b4ff43fd8230eff665b2283d89c414182190f46e62e76f74350b |
Hashes for minecraft_python-0.31.20100129-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf8b1c53c388f09c38eed1f2a8f46356acf49484775f872df82c86288383fb4f |
|
MD5 | 5bcace2a6dd8b65ed3d3ee2427f85395 |
|
BLAKE2b-256 | c5326494afc5c2dec8f029a6c1ade538dd3dc7a2751a59dbc90d5eae31aac1b6 |
Hashes for minecraft_python-0.31.20100129-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8816ec257880f722254f306ccf2c22a07f488034c73d2f8b825b0817d21fe83c |
|
MD5 | 9b06a5ff639f1cfeaa082a3f531dbae4 |
|
BLAKE2b-256 | 729e79b767a77f319812b5309f50cbdd79917813a17476c217ea787329159240 |
Hashes for minecraft_python-0.31.20100129-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0854e152e7c16af4ed7b3a11bb13d3f66f3d5f7f5bb34b6428ec14d87fdf7495 |
|
MD5 | 2c592d2fffc97162c1a332001c502bc6 |
|
BLAKE2b-256 | 3fa9176fae7dfcf356fa61b1d5af3e6f633161edc503cd6a65a4bef36cd7aad8 |
Hashes for minecraft_python-0.31.20100129-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56eac65e8a635d1551d9fa099df5963a79ab2f3b93d9ffb8c2e457267468f862 |
|
MD5 | 22d4866ecfca69f0ed4a02383ad01a88 |
|
BLAKE2b-256 | 46918a4aaa42e75ed834eb26ecbae59cc59d09094858fc27a9f93c6e229447ad |
Hashes for minecraft_python-0.31.20100129-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aa46f412ecbfae1951e8bb4d53093cd2f9539fd13fdb668051cce4d398a48bb |
|
MD5 | baa07089c0f96623a94064182f2890e5 |
|
BLAKE2b-256 | ec522594dbc5e4c8d3f0099deb93a9f905ea20822467be283c3bfe54c913375d |
Hashes for minecraft_python-0.31.20100129-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1ed081a64a80b8e10cec40fd103ef0bebad703b8c92a01fbfe523e849910bb6 |
|
MD5 | b894d1a4dbc2c32a6dbe651c9093c9cf |
|
BLAKE2b-256 | 9ed0e389ff449a5ed4436efc0a88a6dc280c617d9ab0bc06f3505d6af3ae0176 |