{"repo":"neumond/python-computer-craft","free":true,"listed":false,"github":"https://github.com/neumond/python-computer-craft","clone":"git clone https://github.com/neumond/python-computer-craft.git","description":"Pythonization of ComputerCraft Minecraft mod. Write Python instead Lua!","language":"Python","stars":82,"topics":["minecraft","computercraft","python"],"license":"MIT","category":"dev-tools","readme_excerpt":"Pythonized CC Tweaked (ComputerCraft) API Warning : CPython can't build safe sandboxes for arbitrary untrusted code (read more). Never use code in this repo if you don't trust your players! 1. Before you start Minecraft, enable localhost in mod server config In case of singleplayer it's located inside your saves folder. In case of multiplayer check your server folder. Edit computercraft-server.toml 2. Install & start python language server 3. Start Minecraft, open up any computer and type: Now you have python REPL in computercraft! To quit REPL type exit() and press enter. To run any program: py is short Lua program that interacts with the server. cc module contains almost everything as is in ComputerCraft documentation: Opening a file: Waiting for event ( os.captureEvent instead os.pullEvent ): Using modems: Using parallel: Importing in-game files as modules: More examples can be found in this repository: examples/ and tests/cc programs/","default_branch":null,"files":null,"tree":[],"storefront":"/r/neumond","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/neumond/python-computer-craft/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}