{"id":13512259,"url":"https://github.com/fogleman/Minecraft","last_synced_at":"2025-03-30T22:32:21.430Z","repository":{"id":2343562,"uuid":"3305986","full_name":"fogleman/Minecraft","owner":"fogleman","description":"Simple Minecraft-inspired program using Python and Pyglet","archived":false,"fork":false,"pushed_at":"2023-06-10T17:18:28.000Z","size":69,"stargazers_count":5323,"open_issues_count":75,"forks_count":1259,"subscribers_count":245,"default_branch":"master","last_synced_at":"2025-03-27T19:11:34.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"gitlab-org/gitlab-ce","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fogleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2012-01-30T15:28:39.000Z","updated_at":"2025-03-27T17:33:17.000Z","dependencies_parsed_at":"2023-07-05T16:15:18.099Z","dependency_job_id":null,"html_url":"https://github.com/fogleman/Minecraft","commit_stats":{"total_commits":47,"total_committers":17,"mean_commits":2.764705882352941,"dds":0.7021276595744681,"last_synced_commit":"65c759c1f43798278e13f6c1a0e038aeeac77656"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FMinecraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FMinecraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FMinecraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FMinecraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogleman","download_url":"https://codeload.github.com/fogleman/Minecraft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390884,"owners_count":20769475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T03:01:39.070Z","updated_at":"2025-03-30T22:32:18.287Z","avatar_url":"https://github.com/fogleman.png","language":"Python","funding_links":[],"categories":["Python","Sandbox","Native"],"sub_categories":["Sandbox"],"readme":"# Minecraft\n\nSimple Minecraft-inspired demo written in Python and Pyglet.\n\nhttp://www.youtube.com/watch?v=kC3lwK631X8\n\n**Like this project?**\n\nYou might also like my other Minecraft clone written in C using modern OpenGL (GL shader language). It performs better, has better terrain generation and saves state to a sqlite database. See here:\n\nhttps://github.com/fogleman/Craft\n\n## Goals and Vision\n\nI would like to see this project turn into an educational tool. Kids love Minecraft and Python is a great first language.\nThis is a good opportunity to get children excited about programming.\n\nThe code should become well commented and more easily configurable. It should be easy to make some simple changes\nand see the results quickly.\n\nI think it would be great to turn the project into more of a library / API... a Python package that you import and then\nuse / configure to setup a world and run it. Something along these lines...\n\n\n```python\nimport mc\n\nworld = mc.World(...)\nworld.set_block(x, y, z, mc.DIRT)\nmc.run(world)\n```\n\nThe API could contain functionality for the following:\n\n- Easily configurable parameters like gravity, jump velocity, walking speed, etc.\n- Hooks for terrain generation.\n\n## How to Run\n\n```shell\npip install pyglet\ngit clone https://github.com/fogleman/Minecraft.git\ncd Minecraft\npython main.py\n```\n\n### Mac\n\nOn Mac OS X, you may have an issue with running Pyglet in 64-bit mode. Try running Python in 32-bit mode first:\n\n```shell\narch -i386 python main.py\n```\n\nIf that doesn't work, set Python to run in 32-bit mode by default:\n\n```shell\ndefaults write com.apple.versioner.python Prefer-32-Bit -bool yes \n```\n\nThis assumes you are using the OS X default Python.  Works on Lion 10.7 with the default Python 2.7, and may work on other versions too.  Please raise an issue if not.\n    \nOr try Pyglet 1.2 alpha, which supports 64-bit mode:  \n\n```shell\npip install https://pyglet.googlecode.com/files/pyglet-1.2alpha1.tar.gz \n```\n\n### If you don't have pip or git\n\nFor pip:\n\n- Mac or Linux: install with `sudo easy_install pip` (Mac or Linux) - or (Linux) find a package called something like 'python-pip' in your package manager.\n- Windows: [install Distribute then Pip](http://stackoverflow.com/a/12476379/992887) using the linked .MSI installers.\n\nFor git:\n\n- Mac: install [Homebrew](http://mxcl.github.com/homebrew/) first, then `brew install git`.\n- Windows or Linux: see [Installing Git](http://git-scm.com/book/en/Getting-Started-Installing-Git) from the _Pro Git_ book.\n\nSee the [wiki](https://github.com/fogleman/Minecraft/wiki) for this project to install Python, and other tips.\n\n## How to Play\n\n### Moving\n\n- W: forward\n- S: back\n- A: strafe left\n- D: strafe right\n- Mouse: look around\n- Space: jump\n- Tab: toggle flying mode\n\n### Building\n\n- Selecting type of block to create:\n    - 1: brick\n    - 2: grass\n    - 3: sand\n- Mouse left-click: remove block\n- Mouse right-click: create block\n\n### Quitting\n\n- ESC: release mouse, then close window\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2FMinecraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogleman%2FMinecraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2FMinecraft/lists"}